Re: Dock position and size
Re: Dock position and size
- Subject: Re: Dock position and size
- From: KOENIG Yvan <email@hidden>
- Date: Fri, 12 Jan 2007 14:49:08 +0100
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:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden