• 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: Script Editor Crashing.....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Editor Crashing.....


  • Subject: Re: Script Editor Crashing.....
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 16 Mar 2016 10:50:30 +1100

On 16 Mar 2016, at 6:05 AM, Stockly, Ed <email@hidden> wrote:
>
> But it doesn't do the same thing as "as string."
>
> It does what as string used to do but "as string" is not to be used anymore.

Not quite. The issue is context.

On their own, "as string" and "as text" are identical. The issue is what happens within application tell blocks, because lots of applications have their own string class. So "as text" is generally safer.

There are at least two exceptions. InDesign has a clash with the four-letter code for text, so you have to use "as text" (or "as Unicode text") inside it's scope. And in 10.10 and earlier, "as string" could be problematic in some circumstances with an NSString.

--
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: Script Editor Crashing.....
      • From: Dave <email@hidden>
References: 
 >Script Editor Crashing..... (From: Dave <email@hidden>)
 >Re: Script Editor Crashing..... (From: Yvan KOENIG <email@hidden>)
 >Re: Script Editor Crashing..... (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: MS Word: quick way to get styled ranges?
  • Next by Date: Re: MS Word: quick way to get styled ranges?
  • Previous by thread: Re: Script Editor Crashing.....
  • Next by thread: Re: Script Editor Crashing.....
  • Index(es):
    • Date
    • Thread