Re: dock position
Re: dock position
- Subject: Re: dock position
- From: Shane Stanley <email@hidden>
- Date: Mon, 27 Oct 2014 12:38:02 +1100
On 27 Oct 2014, at 12:29 pm, 2551 <email@hidden> wrote:
set x to screen edge as text if x is not "left" then
Change that to:
set x to screen edge if x is not left then
Don't coerce enumerators to text; the result you get can vary, depending on whether you're in a script editor, in which case the terminology is loaded and the term is coerced, or a running script, in which case the four-letter code is coerced.
It happens to work here because the four-letter code for left is the same as coercing the term left to a string, but it's not a good thing to rely on. |
_______________________________________________
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