• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dock position and size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Dock position and size
      • From: Luther Fuller <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>)

  • Prev by Date: Re: Dock position and size
  • Next by Date: Re: Dock position and size
  • Previous by thread: Re: Dock position and size
  • Next by thread: Re: Dock position and size
  • Index(es):
    • Date
    • Thread