• 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: Hiding an application (again)...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Hiding an application (again)... (From: Jeff Justice <email@hidden>)

  • Prev by Date: Re: contacting OS9 G3 from OSX with Choose URL
  • Next by Date: Re: contacting OS9 G3 from OSX with Choose URL
  • Previous by thread: Re: Hiding an application (again)...
  • Next by thread: Script error: "a resource wasn't found"
  • Index(es):
    • Date
    • Thread