• 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: Script fails with Leopard.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script fails with Leopard.


  • Subject: Re: Script fails with Leopard.
  • From: KOENIG Yvan <email@hidden>
  • Date: Wed, 21 Nov 2007 17:45:02 +0100


Le 21 nov. 07 à 17:41:06, KOENIG Yvan a écrit :


Le 21 nov. 07 à 17:32:00, Robert Poland a écrit :

Wizards,

This script has worked for years. Now with Leopard it fails.

tell application "Finder"
if not ((some process whose name contains "Alarm Clock Pro") exists) then -- this line says connection is invalid
tell application "Alarm Clock Pro" to activate
delay 1
tell application "System Events" to set visible of process "Alarm Clock Pro" to false
end if
end tell


Any ideas?


Bob Poland - Fort Collins, CO


Hello

Process was in the Finder's legacy suite.

Maybe it's definitely gone and need to be used in a tell "System Events" block.


If I was right, maybe this edited version would do the trick:

tell application "System Events"
	if not ((some process whose name contains "Adobe Reader") exists) then
		tell application "Adobe Reader" to activate
		delay 1
		set visible of process "Adobe Reader" to false
	end if
end tell

Yvan KOENIG _______________________________________________
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/archives/applescript-users

This email sent to email@hidden
References: 
 >Script fails with Leopard. (From: Robert Poland <email@hidden>)
 >Re: Script fails with Leopard. (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Script fails with Leopard.
  • Next by Date: Getting unexpected results from sed inside AppleScript
  • Previous by thread: Re: Script fails with Leopard.
  • Next by thread: Re: Script fails with Leopard.
  • Index(es):
    • Date
    • Thread