• 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
Parents/Child Scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Parents/Child Scripts


  • Subject: Parents/Child Scripts
  • From: Lachlan Deck <email@hidden>
  • Date: Sat, 11 May 2002 12:32:20 +1000

Hi there,

From: "Steve Suranie" <email@hidden>

Hi folks

Can anyone send me a short example of how to pass a variable between a parent and child script.

(a peek inside parent script)
...
set theText to "Pass me please!"
try
set childScript to (load script <path to script> as alias)
tell childScript
receiveText(theText)
end tell
on error
display dialog "No such script."
end try
...
(inside child script)
...
on receiveText(someText)
display dialog ("I got something: " & return & tab & someText)
end receiveText


Thanks

Steve

with regards,

--
Lachlan Deck
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.

  • Follow-Ups:
    • Re: Parents/Child Scripts
      • From: Paul Skinner <email@hidden>
  • Prev by Date: A Rounder Round 1.3 and numToStr 1.2
  • Next by Date: Re: Parents/Child Scripts
  • Previous by thread: Re: Parents/Child Scripts
  • Next by thread: Re: Parents/Child Scripts
  • Index(es):
    • Date
    • Thread