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: Paul Berkowitz <email@hidden>
- Date: Thu, 29 Oct 2009 11:25:46 -0700
- Thread-topic: Trouble with dock preferences of System Events
On 10/29/09 11:15 AM, I wrote:
> Here's the reason: the raw code for 'location' property of dock preferences
> is «property dplo» . But when you type 'location of dock preferences' and
> compile, it actually compiles as «class loca», which is another 'location' -
> an element of 'network preferences object' class also in the System Events
> dictionary.
>
When a class and a property have the same keyword (here 'location') the
class takes priority, which is why this is happening. (There are other cases
where the class and property have the same raw code, and then you can
resolve this problem by inserting 'its' before the property in a 'tell'
block syntax, but that naturally doesn't work when it's a different raw
code, as here. The script will still compile, substituting the wrong raw
code of the class, not the property, and then errors on execution, even if
using a tell block and 'its'.)
> It's a terminology conflict - a bug, and undoubtedly why the
> enumeration/property has been changed in OS 10.6 to 'screen edge'.
--
Paul Berkowitz
_______________________________________________
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