|
|
Tile Safari windows via AppleScript
The location of the dock is stored as the string "left" "right" or "bottom" in ~/Library/Preferences/com.apple.dock.plist. If someone can please let me know how to get the plist stored as a string, it will be very simple to account for left-side docks...
reading preferences with 'defaults'
The location of the dock is stored as the string "left" "right" or "bottom" in ~/Library/Preferences/com.apple.dock.plist. If someone can please let me know how to get the plist stored as a string, it will be very simple to account for left-side docks... Here's one way: set dockSide to do shell script "defaults read ~/Library/Preferences/com.apple.dock orientation" Now I think you can read and write preference defaults directly in AppleScript Studio (XCode), but
Tile Safari windows via AppleScript
use:
Reading property list items with System Events
Just for the sake of reference, here is another way to read a property list preference item with plain AppleScript: tell application "System Events" set dockProps to property list file "~/Library/Preferences/com.apple.dock.plist" set dockSide to the value of the property list item "orientation" of dockProps end tell Again, |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|