• 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: Activate application as hidden
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Activate application as hidden


  • Subject: Re: Activate application as hidden
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 04 Jun 2004 17:10:17 -0700

On 6/4/04 1:52 PM, "Peter Mathiessen" <email@hidden>
wrote:

> Is it poosible to activate an application as hidden?
>
> Example:
> Tell application "bla bla bla" to activate
> -- as hidden or something
> End tell
>

Not hidden, but in the background, then hide immediately:

tell application "Whatever" to launch -- in background
tell application "System Events" to set visible of process "Whatever" to
false

>
> Also, is it possible to make all other applications that are running to alse
> be hidden?
>
> Example:
> Tell application "bla bla bla" to activate
> -- hide everything else or something
> End tell

tell application "System Events" to set visible of every application
process to false

You might need to do some error -trapping. Once upon a time the Finder used
to object if you tried to do this with processes that were background apps
or already hidden, or couldn't be hidden. Maybe this:

tell application "System Events" to set visible of every application
process whose visible is true to false

would work better. I don't know if the Finder will object - probably not -
it tends to go quietly.

--
Paul Berkowitz
_______________________________________________
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.


References: 
 >Activate application as hidden (From: Peter Mathiessen <email@hidden>)

  • Prev by Date: Activate application as hidden
  • Next by Date: Quit handler not working
  • Previous by thread: Activate application as hidden
  • Next by thread: Quit handler not working
  • Index(es):
    • Date
    • Thread