• 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: dock position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: dock position
      • From: 2551 <email@hidden>
References: 
 >dock position (From: 2551 <email@hidden>)
 >Re: dock position (From: Shane Stanley <email@hidden>)
 >Re: dock position (From: 2551 <email@hidden>)

  • Prev by Date: Re: dock position
  • Next by Date: Re: dock position
  • Previous by thread: Re: dock position
  • Next by thread: Re: dock position
  • Index(es):
    • Date
    • Thread