• 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
Re: is application busy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: is application busy
      • From: Christopher Nebel <email@hidden>
References: 
 >is application busy (From: Bob Cuilla <email@hidden>)

  • Prev by Date: Re: Apple iPhone - 2 questions
  • Next by Date: Re: is application busy
  • Previous by thread: is application busy
  • Next by thread: Re: is application busy
  • Index(es):
    • Date
    • Thread