Re: Activate application as hidden
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.