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

Creating a script from another script in AS


  • Subject: Creating a script from another script in AS
  • From: "Francois Houle" <email@hidden>
  • Date: Tue, 17 May 2005 13:57:23 -0400
  • Thread-topic: Creating a script from another script in AS

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"

set user_info to "user:pass@1.1.1.1/HardDrive"

set scripts_folder to (path to desktop folder from user domain) as string set file_name to "Testfile"

----------------

tell application "Script Editor" to tell (make new document)

set its text to "tell application \"Finder\"

try

mount volume \"afp://" & user_info & "\"

on error

display dialog \"There was an error mounting the shared drive.\"

buttons {\"Cancel\"} default button 1

end try

end tell"

compile it

save as "application" in ((path to desktop folder from user domain) &

file_name) run only "true"

end tell

----------------

Can some one help ?

 

Frank

 _______________________________________________
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

  • Follow-Ups:
    • Re: Creating a script from another script in AS
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: How to get parameter item of a string in a list
  • Next by Date: Re: QT7/applescript problem
  • Previous by thread: Re: Mail.app: Delete bcc recipient from new mail
  • Next by thread: Re: Creating a script from another script in AS
  • Index(es):
    • Date
    • Thread