• 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: Check For Open Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Check For Open Application (From: Ted <email@hidden>)

  • Prev by Date: Check For Open Application
  • Next by Date: Finding a location in a text file
  • Previous by thread: Check For Open Application
  • Next by thread: Re: Check For Open Application
  • Index(es):
    • Date
    • Thread