Re: Format of strings when using run script - fixed
Re: Format of strings when using run script - fixed
- Subject: Re: Format of strings when using run script - fixed
- From: Jaime Magiera <email@hidden>
- Date: Tue, 20 May 2003 02:27:59 -0400
I figured it out. There was some confusion due to the fact that the
"\n" disappears after compilation. Applescript needs needs \n when
coming from a straight string. Sorry, late night programming.
Jaime
On Tuesday, May 20, 2003, at 02:03 AM, Jaime Magiera wrote:
It's unclear to me why a straight string will not compile into a
script. For example...
set scriptObj to run script "
script
set helloString to \"Hello world\"
display dialog helloString
end script"
returns +script;
However,
set scriptObj to run script "script set helloString to \"Hello world\"
display dialog helloString end script"
returns script error
I'm trying to create strings on the fly that can be compiled into
scripts and saved to disk. However, the above problem is a big
hindrance. Any ideas?
Jaime
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.