Friday, December 15, 2017

#1 2002-03-01 05:06:18 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Hiding app's in X and/or 9 via script?

I was surprised to find that a search of the archives for the last year for any messages containg the word "hide" produced no results.
What I want to do is quite simple: Script the hiding of the front application.
I would like to do this in OS X, both for native X app's and also for OS 9 app's which are running in the Classic mode.
thanks for any help.


One mans trash is another mans treasure

Offline

 

#2 2002-03-01 09:36:27 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Hiding app's in X and/or 9 via script?

to hide the frontmost app

Applescript:


tell application "System Events"
   set visible of (every process whose visible is true and frontmost is true) to false
end tell

to hide the every app but the front most

Applescript:


tell application "System Events"
       set visible of (every process whose visible is true and frontmost is false) to false
   end tell


One mans trash is another mans treasure


Filed under: System

Offline

 

#3 2002-03-01 09:41:23 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Hiding app's in X and/or 9 via script?

sorry forgot to mention that


One mans trash is another mans treasure

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)