Re: Hiding an application (again)...
Re: Hiding an application (again)...
- Subject: Re: Hiding an application (again)...
- From: Jake Pietrykowski <email@hidden>
- Date: Tue, 28 Dec 2004 09:01:56 -0600
I don't see why that wouldn't work. Syntax is correct...providing the name
"MyApp" is correct.
Does it work if you remove the launch applicaton line? Just launch it
manually, then run the script. Then does the app hide?
My only guess is that perhaps the application has NOT yet finished launching
before attempting to hide.
jp
On 12/26/04 4:04 PM, "Jeff Justice" <email@hidden> wrote:
> This shouldn't be that hard...but I'm having troubles...
>
> The following:
>
> 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?
>
> Tell "System Events" or "Finder" makes no difference.
>
> Jeff J.
>
> _______________________________________________
> 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
_______________________________________________
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