Re: Check For Open Application
Re: Check For Open Application
- Subject: Re: Check For Open Application
- From: kai <email@hidden>
- Date: Mon, 21 Nov 2005 18:57:15 +0000
On 21 Nov 2005, at 18:18, Ted wrote:
kai wrote:
• Does Skype also quit if it's already open when the script is run?
No. This code functions perfectly if Skype is already open.
That's an encouraging sign, then.
[snip]
Skype crashes with the following message:
Skype got an error: Connection is invalid (Error -609)
is coming from FMPro and it happens 5 seconds into the script. So,
I tried something else. I scripted a delay of 10 seconds from
within FMPro and that allows Skype to fire up and now it works
properly. But why doesn't the delay in the AS work?
Could be a nesting issue, Ted. You might try moving the delay out of
the System Events block - so that the script goes something like this:
----------------
tell application "System Events"
set noSkype to not (exists process "Skype")
end tell
if noSkype then
tell application "Skype" to activate
tell application "System Events"
repeat until exists process "Skype"
delay 1
end repeat
end tell
delay 20
end if
dial phone number
----------------
Failing that, I'd be scratching around for a possible cause (and
might even start yelling obscenities like... "bug!") ;-)
---
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