Calling handlers in other scripts inside AS application
Calling handlers in other scripts inside AS application
- Subject: Calling handlers in other scripts inside AS application
- From: Thomas Berry <email@hidden>
- Date: Tue, 22 Mar 2005 11:07:55 -0500
I've searched the list and found some answers that are close to answering my question but I'm still having difficulty.
I have a handler that is inside a script inside an Applescript application I am writing. I want to call that handler from another script that is in the same application and needs access to the handler but can't figure out how to do it.
Example:
Inside "Script_A.applescript" is a handler, say, "DisplayDialog()"
As I'm running "Script_B.applescript", I'd like to call DisplayDialog() but I can't figure out how to target it.
I've tried several methods, including making the handler a script object and trying things like:
set thescript to my Script_B.applescript
do script {thescript}
but no luck.
Thanks in advance.
_______________________________________________
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