Re: Creating a script from another script in AS
Re: Creating a script from another script in AS
- Subject: Re: Creating a script from another script in AS
- From: Andrew Oliver <email@hidden>
- Date: Tue, 17 May 2005 11:42:28 -0700
On 5/17/05 10:57 AM, "Francois Houle" <email@hidden> wrote:
> I have an issue when I try to create a scripted app through another script.
> The new ddocument gets created, the text does get entereed and compiled
> properly... It simply will not allow to save it. Here is an example of that
> script... I just can't figure out why I get that error: "NSInternalScript
> Error"
>
There are two fundamental problems with your script, both of which are in
the line:
>
> save as "application" in ((path to desktop folder from user domain) &
file_name) run only "true"
>
The first is that the 'in' parameter requires an alias. You're passing in a
list consisting of an alias and a string which goes nowhere.
The second problem is that 'run only' requires a boolean value (true or
false) not a string value "true".
This works:
save it as "application" in alias (scripts_folder & file_name) with
run only
Have you considered doing this without using the Script Editor? 'osacompile
can create a script app from the command line/shell.
Andrew
:)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden