Need Some Help? Have a Tip to Share?

Email me at MacTipper@gmail.com, or, leave a comment!

Subscribe To Our FREE RSS Feed!

Don't miss out on any posts from the Concise MacTipper Blog.

Sunday, October 25, 2009

Automatically Zoom Applications Using Terminal

This method of zooming essentially tells the application that you have a different screensize than you do. To do this, we'll scale the application up or down. This can be convenient for two things:

1) If your real screen size is too small for an application (e.g. Lingon.app on 800x600), you can scale the application down so that it will fit onto your screen.
2) If you can't see an application, you can scale it up so that you can.

Here are screenshots of AppleScript Editor (the worst looking application so far):



To enable this for any application you open, run the following command:

defaults write -g AppleDisplayScaleFactor 2.0


The "2.0" is the scale coefficient. So, in this case, that code will scale up new applications to two times their size. Just change the 2.0 coefficient to the scale size you desire. To make applications appear smaller, use the form of "0.x".

Once you run that Terminal command, any application you open will be zoomed to the factor you specified. To disable, simply set the zoom coefficient to "1.0" and relaunch the affected applications.

------


To set this for specific apps is a bit more complicated. The simplest method is probably this:

Enter "defaults domains" into a new Terminal window. This will return a comma-separated list of every domain on your Mac. Hit Cmd-F and search for the name of the application you want the domain for. The domain will look something like, "com.developer.appname". Copy this to your clipboard and run the following command replacing "app_domain" with the domain you copied. If the domain contains spaces, make sure that you single quote the domain:

defaults write 'app_domain' AppleDisplayScaleFactor 1.75



[via]

0 comments:

Post a Comment