Re: BUG? Constants to string
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