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

Trouble with dock preferences of System Events


  • Subject: Trouble with dock preferences of System Events
  • From: Steven Audette <email@hidden>
  • Date: Thu, 29 Oct 2009 02:37:08 -0600

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
_______________________________________________
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: Luther Fuller <email@hidden>
    • Re: Trouble with dock preferences of System Events
      • From: Felix Peregrino <email@hidden>
    • Re: Trouble with dock preferences of System Events
      • From: Axel Luttgens <email@hidden>
    • Re: Trouble with dock preferences of System Events
      • From: Brian Christmas <email@hidden>
  • Prev by Date: Re: Unzip multiple items Applescript-terminal syntax help!
  • Next by Date: Trouble with appearance preferences of System Events
  • Previous by thread: Re: Unzip multiple items Applescript-terminal syntax help!
  • Next by thread: Re: Trouble with dock preferences of System Events
  • Index(es):
    • Date
    • Thread