• 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
Can AppleScript Include script files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can AppleScript Include script files?


  • Subject: Can AppleScript Include script files?
  • From: Lists <email@hidden>
  • Date: Sun, 9 Jan 2005 10:56:41 -0800

Hi List,

I've got a small contract to do some work on some OS 9 applescripts for a client. They have about 3 dozen scripts that all have one big chunk of code in them that is identical. Ideally this could be an included script file or something along those lines, but the problem is that the code creates about 40 variables that are needed in each file.

How can I go about using the same code to create the variables and have them available within the current script?

I've tried run script file, passing the hundred or so parameters and I get back a list of the variable values, but I still have to set all the variables again in each script. Not much help.

I've tried load script and put the common code into that file and again, no luck.

Any help would be greatly appreciated.

Thanks,
Steve

_______________________________________________
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: Can AppleScript Include script files?
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Reading a pdf text file
  • Next by Date: Re: Reading a pdf text file
  • Previous by thread: Re: Converting Hex to binary
  • Next by thread: Re: Can AppleScript Include script files?
  • Index(es):
    • Date
    • Thread