Re: is application busy
Re: is application busy
- Subject: Re: is application busy
- From: Emmanuel <email@hidden>
- Date: Wed, 10 Jan 2007 20:16:12 +0100
At 4:54 PM -0500 1/9/07, Bob Cuilla wrote:
I am scripting iphoto and would like to know when it is done saving
its contents to the library
I know on can do this sort of thing
tell app "System events"
if(process "iphoto") exists
-- more stuff here
end tell
to tell if an app is running.
can you also use "system events" to see if an app is busy ( or still
busy) saving to disk?
There is no such thing as asking an app whether it's busy saving to
disk. What I would do is: check whether iPhoto is responsive or not
while it's saving. If it's not you can perform repetitively a line
such as:
try
with timeout of 1 seconds
tell app "iPhoto" to get 1+1
end timeout
-- iPhoto is responsive
on error
-- iPhoto is not responsive, maybe busy?
end
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden