• 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: Ted <email@hidden>
  • Date: Sat, 19 Nov 2005 11:52:37 -0800

On Nov 18, 2005, at 12:00 PM, kai wrote:

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

I would have _never_ figured that one out by myself. Thank you! It works great by itself, however when I add the following to the end of it:


-----------
set phoneNumber to  cell "Phone_Customer_sub" of current record
tell application "Skype"
	 send command "CALL +1" & phoneNumber script name "My Script"
end tell
-----------

Skype crashes with the following message:

Skype got an error: Connection is invalid (Error -609)

Both AppleScripts work fine by themselves, but when they're put together, Skype quits. Does the order of the AS commands have anything to do with it? Here's the full code as I have it in FMPro:

-----------
tell application "System Events" to tell process "Skype" to if not
(exists) then
	tell application "Skype" to activate
	repeat until exists
		delay 10
	end repeat
	-- consider another delay here if Skype takes a while to prepare
end if
set phoneNumber to  cell "Phone_Customer_sub" of current record
tell application "Skype"
	 send command "CALL +1" & phoneNumber script name "My Script"
end tell
-----------

Thanks again,
Ted
_______________________________________________
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


  • Follow-Ups:
    • Re: Check For Open Application
      • From: kai <email@hidden>
  • Prev by Date: Re: Producing Unicode-only characters
  • Next by Date: Re: Producing Unicode-only characters
  • Previous by thread: Re: Check For Open Application
  • Next by thread: Re: Check For Open Application
  • Index(es):
    • Date
    • Thread