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: "Francois Houle" <email@hidden>
- Date: Tue, 17 May 2005 15:24:45 -0400
- Thread-topic: Creating a script from another script in AS
Thanks for the input Andrew... I will try this and I do understand the
errors I made... Guess I didn't click when I saw the info for Scrpt
editor in the dictionary...
However, you could elaborate more on your last sentense:
"Have you considered doing this without using the Script Editor?
'osacompile can create a script app from the command line/shell."
I'm still relatively new to this so what you are talking about is still
quite obscure ! :)
Frank
-----Original Message-----
From: Andrew Oliver [mailto:email@hidden]
Sent: Tuesday, May 17, 2005 2:42 PM
To: Francois Houle; AppleScript User's List
Subject: Re: Creating a script from another script in AS
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