Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dock position and size




Le 12 janv. 07 à 14:38:56, Luther Fuller a écrit :


On Jan 12, 2007, at 6:45 AM, KOENIG Yvan wrote:

I ran it under 10.4.8 and got this report:

tell current application
do shell script "defaults read com.apple.dock orientation"
"2007-01-12 10:42:38.293 defaults[514]
The domain/default pair of (com.apple.dock, orientation) does not exist"

If you change the orientation of the Dock from the default, there WILL exist an 'orientation' key in the com.apple.dock.plist preference file. It will have a value of 'left', 'middle' or 'right'. You can create this key by reading, modifying, then writing the contents of the preference file.


OK, so a correct script would be:

try
set dockPosition to do shell script "defaults read com.apple.dock orientation"
on error
set dockPosition to "bottom"
end try

Yvan KOENIG
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Dock position and size (From: Barry Wainwright <email@hidden>)
 >Re: Dock position and size (From: KOENIG Yvan <email@hidden>)
 >Re: Dock position and size (From: Luther Fuller <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.