Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Tile Safari windows via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Tile Safari windows via AppleScript
Authored by: Frederico on Dec 29, '06 03:54:20PM

use:

do shell script "defaults read ~/Library/Preferences/com.apple.dock | grep orientation"

Beware, however, that the orientation flag is never (at least under 10.2 and earlier) generated until the user changes the default location of the Dock from 'bottom' at least once. Thus, be sure to error check for a null result of the above code snippet, and assume that null is default (bottom).



[ Reply to This | # ]