Re: In a handler passed as a parameter to a handler in another script, how do I refer to top-level variables from the original script?
Re: In a handler passed as a parameter to a handler in another script, how do I refer to top-level variables from the original script?
- Subject: Re: In a handler passed as a parameter to a handler in another script, how do I refer to top-level variables from the original script?
- From: Tetsuro KURITA <email@hidden>
- Date: Thu, 30 Jul 2009 17:44:19 +0900
Try followings.
(1) load expose_lib and UI_lib into property of top level script.
(2) put "global expose_lib" into UI_lib.
above will work. But I guess this is not solution you expect.
AppleScript's handlers are not first class object i.e. handlers should not
be passed as arguments of subroutines.
You should pass script objects calling subroutines you want.
=======================================================
Tetsuro KURITA
E-mail: email@hidden
http://homepage.mac.com/tkurita/scriptfactory/en/
=======================================================
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden