• 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: Trouble with dock preferences of System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with dock preferences of System Events


  • Subject: Re: Trouble with dock preferences of System Events
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 29 Oct 2009 20:51:14 +1100


On 29/10/2009, at 7:37 PM, Steven Audette wrote:

Hello,

I can see in the System Events dictionary that "location" is one of dock preferences properties, so I try this code:

tell application "System Events"
tell dock preferences
set foo to location
end tell
end tell

This example always returns the constant "location", rather then the actual location {bottom, left, right}

If I instead try:

tell application "System Events"
tell dock preferences
set foo to location of properties
end tell
end tell

I get the error, "Can't make location of properties of dock preferences into type reference".

Any help is greatly appreciated.

Regards,
Steve

G'day Steve

try this....

tell application "System Events"
set p to properties
set foo to screen edge of dock preferences of p
end tell
 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Trouble with dock preferences of System Events
      • From: Michelle Steiner <email@hidden>
References: 
 >Trouble with dock preferences of System Events (From: Steven Audette <email@hidden>)

  • Prev by Date: Re: Unzip multiple items Applescript-terminal syntax help!
  • Next by Date: Re: Trouble with dock preferences of System Events
  • Previous by thread: Trouble with dock preferences of System Events
  • Next by thread: Re: Trouble with dock preferences of System Events
  • Index(es):
    • Date
    • Thread