Re: Trouble with dock preferences of System Events
Re: Trouble with dock preferences of System Events
- Subject: Re: Trouble with dock preferences of System Events
- From: Axel Luttgens <email@hidden>
- Date: Thu, 29 Oct 2009 11:05:21 +0100
Le 29 oct. 2009 à 09:37, Steven Audette a écrit :
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.
Hello Steven,
Not sure how you concluded that "location" is a relevant property.
Perhaps a matter of OS version? I'm here with 10.6.1, and "location"
doesn't appear amongst the dock preferences properties.
Anyway, when in doubt and when a class has a "properties" property, it
often proves useful to make use of it.
For example, I get here:
tell application "System Events"
tell dock preferences
properties
end tell
end tell
--> {minimize effect:genie, magnification size:1.0, dock size:
0.190909087658, autohide:false, animate:false, magnification:false,
screen edge:right, class:dock preferences object}
HTH,
Axel _______________________________________________
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