• 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: BUG? Constants to string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG? Constants to string


  • Subject: Re: BUG? Constants to string
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 04 Jan 2002 15:11:12 -0800

On 1/4/02 2:56 PM, "Christopher Nebel" <email@hidden> wrote:

> "run script" with a string will compile the string, and the "tell
> Finder" will make it load the Finder's terminology into your process,
> and now the coercion works.

Thank you, Chris. I had in fact discovered that "run script" worked with the
actual constant itself (in my Entourage script) but since that it is in a
repeat loop that might need to run 1000 times, I didn't want to use it. (I
tested: just using "run script" on the constant and doing nothing else 1000
times took about 20-25 minutes! Whereas coercing to string took 1/2 of a
second!) Now that I understand I can do "run script" just once, that will be
fine. It also explains why I could run the script from the Entourage script
menu when Entourage was still open after compiling scripts in Script Editor
- even in OS X - but not after quitting and relaunching. That was the most
peculiar part. It took me a long while to even think of relaunching as a
test. I started getting the right answer instead of the wrong one from the
Entourage script menu and couldn't figure out why - I had been compiling
scripts in script editors in the meantime.

--
Paul Berkowitz


  • Follow-Ups:
    • Setting Properties or Globals of a compiled Script
      • From: Jason Bourque <email@hidden>
References: 
 >Re: BUG? Constants to string (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: BUG? Constants to string
  • Next by Date: Re: applescript-users digest, Vol 2 #1456 - 16 msgs
  • Previous by thread: Re: BUG? Constants to string
  • Next by thread: Setting Properties or Globals of a compiled Script
  • Index(es):
    • Date
    • Thread