• 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
Weird feature of "if it exists" or?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird feature of "if it exists" or?


  • Subject: Weird feature of "if it exists" or?
  • From: Robert Poland <email@hidden>
  • Date: Sun, 14 Sep 2003 07:57:23 -0600

Hi,

I'm trying to make one of my morning scripts work
on more than one machine. The following script
doesn't cut it.

try -- if not installed, don't error
if exists application "SETI@home_OSX" then
set setiRunning to (processes whose name = "SETI@home_OSX")  {}
if not setiRunning then
tell application "SETI@home_OSX" to activate
tell application "System Events" to set
visible of process "SETI@home_OSX" to false
end if
end if
end try

I stops and complains "where is app
"SETI@home_OSX"? Is there a way around this
"feature"?

What I'm trying to do is run "SETI@home_OSX" if
it exists and ignore it if it doesn't.

One a related note, I can't even open the script
without identifying a bogus "SETI@home_OSX".

TIA,
--
Bob Poland - Englewood, CO
http://www.ibrb.org/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Weird feature of "if it exists" or?
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Finding and deleting specific extensions.
  • Next by Date: Help with a Mail script
  • Previous by thread: Re: Localising dialog buttons [was: Finding and deleting specific extensions]
  • Next by thread: Re: Weird feature of "if it exists" or?
  • Index(es):
    • Date
    • Thread