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


Click here to return to the 'Reading property list items with System Events' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Reading property list items with System Events
Authored by: anoved on Dec 30, '06 07:19:17PM

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, dockSide should end up with the value of the orientation property. Just an alternative to do shell script.



[ Reply to This | # ]