Weird feature of "if it exists" or?
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.