• 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: 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?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >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: DeNigris Sean <email@hidden>)

  • Prev by Date: Re: Scripting Filepaths
  • Next by Date: Re: Excel (2004) Hidden rows show up in tab delimited text file
  • Previous by thread: 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?
  • Next by thread: Sending Mail
  • Index(es):
    • Date
    • Thread