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

Re: Can AppleScript Include script files?


  • Subject: Re: Can AppleScript Include script files?
  • From: Emmanuel <email@hidden>
  • Date: Mon, 10 Jan 2005 09:22:16 +0100

At 10:56 AM -0800 1/9/05, Lists wrote:
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.

I'm pretty sure that you got no answer because you did not make your problem perfectly clear.


Maybe a (reduced) example would make it easier for the thickest of us.

Emmanuel
On behalf of the thickness
_______________________________________________
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: Doug McNutt <email@hidden>
References: 
 >Can AppleScript Include script files? (From: Lists <email@hidden>)

  • Prev by Date: Re: Burning
  • Next by Date: RE: ftp chokes my mac....
  • Previous by thread: Can AppleScript Include script files?
  • Next by thread: Re: Can AppleScript Include script files?
  • Index(es):
    • Date
    • Thread