Re: Run and AppleScript from within and AppleScript
Re: Run and AppleScript from within and AppleScript
- Subject: Re: Run and AppleScript from within and AppleScript
- From: The Other Rob <email@hidden>
- Date: Thu, 05 Dec 2002 17:06:03 +1100
OK, I've got it working using an AppleScript Application, but I have a quick
question. I'm actually modifying one of the AppleScripts that iCal calls to
send reminder emails. This is the code of the iCal script, with the top two
lines being the ones I've added:
---------------------------------------------
launch application "OSX:test1app"
run application "OSX:test1app"
tell application "Mail"
set mysubject to "$2"
set mybody to "$1"
set myrecipient to "$3"
set mymail to (make new outgoing message at the beginning of outgoing
messages with properties {subject:mysubject, content:mybody})
tell mymail to make new to recipient at beginning of to recipients with
properties {name:myrecipient}
send mymail
end tell
---------------------------------------------
This works, but I suspect that the script is waiting for some kind of
response from the 'test1app' AppleScript application before continuing with
the mail sending code. This is probably not good, and I would prefer the
script to run 'test1app' and then just move on, without waiting around for
the other script. Is this possible?
Thanks for your time,
-Rob
on 5/12/02 3:09 PM, The Other Rob at email@hidden wrote:
>
I've trying all afternoon to work out how to get an AppleScript to run
>
another AppleScript. Do I have to create a script application and run that?
>
Or can I directly run the script on it's own?
>
>
As you can probably tell I'm an AppleScript newbie. :)
>
>
Thanks,
>
>
-Rob
>
_______________________________________________
>
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.
_______________________________________________
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.