including code files / reusing code

Hello.

I have been searching, but am not sure what the correct terminology is.

I am looking for how to include the same Apple Script code in multiple appplications / scripts.

Running another application from within a script is fine, but I need to have the variables from the main script be acted upon in the included scritps!

Thanks!

Hi,

See AppleScriptLanguageGuide.pdf, pg. 226 about script libraries:

http://manuals.info.apple.com/Apple_Support_Area/Manuals/servers/AppleScriptLanguageGuide.PDF

Edit: oops, sorry that’s the link to the pdf. Here’s the page:

http://docs.info.apple.com/article.html?artnum=50096

gl,