• 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
Calling handlers in other scripts inside AS application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Calling handlers in other scripts inside AS application
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: XMAIL Disaster
  • Next by Date: Re: XMAIL Disaster
  • Previous by thread: Re: Finder scripting and FileVault
  • Next by thread: Re: Calling handlers in other scripts inside AS application
  • Index(es):
    • Date
    • Thread