Re: Check For Open Application
Re: Check For Open Application
- Subject: Re: Check For Open Application
- From: kai <email@hidden>
- Date: Fri, 18 Nov 2005 19:34:58 +0000
On 18 Nov 2005, at 19:07, Ted wrote:
Is there a way to tell if an application is open and running? I
have written an AppleScript in FMP6 to dial a customers phone
number using Skype, but if Skype is not already open and connected,
it unexpectedly quits.
What I need to do is something like this:
If Skype is not open
open Skype
wait for connection
dial phone number
else
dial phone number
----------------
tell application "System Events" to tell process "Skype" to if not
(exists) then
tell application "Skype" to activate
repeat until exists
delay 1
end repeat
-- consider another delay here if Skype takes a while to prepare
end if
dial phone number
----------------
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden