| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I have several script files in my ASS project. At least one of those
files contains handlers that need to be called from other script files.
How can I do this?
In my mind, when the ASS project launches, it already loads my central script into memory. It seems inefficient to the point of incompetence for my program to reload it into memory each time I need it.
A somewhat late response:
Declare the loaded script as global. Then, in the other scripts (also loaded into the main script) declare their needs as global. This way, it is easy to conveniently and efficiently "share" loaded handlers in several scripts, making the whole thing very modular. The important trick is that one script must act as a "main" or "top level" script that loads the others that need common access to things.
ie:
or
Thanks, Tom T&B
_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden
| References: | |
| >Re: How can I call a handler in another script (From: Paul Berkowitz <email@hidden>) | |
| >Re: How can I call a handler in another script (From: T&B <email@hidden>) | |
| >Re: How can I call a handler in another script (From: Harald E Brandt <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.