Parents/Child Scripts
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.