Re: Hiding an application (again)...
Re: Hiding an application (again)...
- Subject: Re: Hiding an application (again)...
- From: Jeff Justice <email@hidden>
- Date: Sun, 26 Dec 2004 16:41:13 -0600
In further testing, this app that gives the error is the only one that
does. It appears it is a compiled run-script. Other apps work just
fine. So the question becomes, why won't a compiled script that is
saved as an app, hide like any normal app? I can hide it using the
command-H from the menu...
Jeff J.
On Dec 26, 2004, at 4:36 PM, Jeff Justice wrote:
Checked the name in the Activity Monitor. It is identical to the one
I am calling. However, when I inspect the process it says it's parent
is the Script Editor. The app in question does say it's an app when
you do a get info. Could this be an issue?
Tried compiling the script as a standalone, so that the Script Editor
was not running, but made no difference.
Jeff J.
On Dec 26, 2004, at 4:25 PM, Michelle Steiner wrote:
On Dec 26, 2004, at 3:04 PM, Jeff Justice wrote:
launch application "MyApp"
tell application "System Events" to set visible of process "MyApp"
to false
launches the app just fine, but then I get an AppleScript Error that
says "System Events got an error: NSReceiverEvaluationScriptError:
4".
What's going wrong here?
I get that error only when I try to set the process of an app that is
not running; check your spelling of the process name.
Is it possible for a process name to be different from the name of
the app on the disk? If so, that might be the problem.
-- Michelle
-- "There's some good in the world, Mr. Frodo, and it's worth
fighting for."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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