• 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: Creating a script from another script in AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Creating a script from another script in AS (From: "Francois Houle" <email@hidden>)

  • Prev by Date: Re: QT7/applescript problem
  • Next by Date: Re: Need way to set the Creation date of a file via OSX
  • Previous by thread: Creating a script from another script in AS
  • Next by thread: RE: Creating a script from another script in AS
  • Index(es):
    • Date
    • Thread