Re: gaining control
Re: gaining control
- Subject: Re: gaining control
- From: Rob Jorgensen <email@hidden>
- Date: Fri, 24 Oct 2003 08:10:44 -0400
At 6:18 AM -0500 10/24/03, Jim Brandt wrote:
Is there a way to tell what an application is doing?
Here's my situation.
This is all done under a script.
I'm using Eudora to send a Stuffit archive as an attachment.
I then tell Eudora to quit and I rename the files that were sent.
Prior to version 6 of Eudora, the script was held up while Eudora finished
sending before it proceeded. Under version 6, a dialog comes up
from Eudora because the send is going on and I'm telling Eudora to quit.
(Yea for multi-tasking - boo for complete control :)
I would like to detect when the send is finished before issuing the
quit command in order to control this.
Anyone have any suggestions?
You could try something like this.
tell application "Eudora"
repeat
if status of message outgoing_ is sent then
exit repeat
else
-- do shell script "sleep 5" -- OS X
delay 5 -- pre-OS X
end if
end repeat
end tell
You might want to include a limit to the the number of times that it
checks the message status in case Eudora can't connect to the server.
On a different note - is there any documentation on the
"System Events" program in the Utilities directory and how (and why)
to script it?
I've done a search on Apple's site, but didn't find any explanations there.
The only documentation that I'm aware of, other than the dictionary,
is for UI scripting.
<
http://www.apple.com/applescript/GUI/>
I wonder if UI scripting is included in Panther.
-- 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.