• 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: Running Subroutines from Other Scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running Subroutines from Other Scripts


  • Subject: Re: Running Subroutines from Other Scripts
  • From: email@hidden (Michael Sullivan)
  • Date: Fri, 23 Aug 2002 16:35:01 -0400
  • Organization: Society for the Incurably Pompous

Adam Backstrom writes:

> Hey everyone,
>
> I'm working on a series of AppleScripts written in AppleScript Studio.
> For the sake of organization, I would like to split up the code into
> several scripts. The problem is, I can't find the correct syntax for
> telling an outside script to run a subroutine. Is this functionality
> supported?

tell application "Script App1"
launch
handler1()
end tell

"Script App1" must be a stay open applet with a handler named "handler1"
that takes the appropriate arguments (or lack thereof) for this to work.


Michael

--
Michael Sullivan
Business Card Express of CT Thermographers to the Trade
Cheshire, CT email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Running Subroutines from Other Scripts (From: Adam Backstrom <email@hidden>)

  • Prev by Date: Re: [Apple List Admin] Re: Clarification (was: Re: AppleScript and international characters)
  • Next by Date: Re: Running Subroutines from Other Scripts
  • Previous by thread: Running Subroutines from Other Scripts
  • Next by thread: Re: Running Subroutines from Other Scripts
  • Index(es):
    • Date
    • Thread