how to hide the frontmost app?
how to hide the frontmost app?
- Subject: how to hide the frontmost app?
- From: "Donald S. Hall" <email@hidden>
- Date: Sat, 22 Dec 2001 00:15:51 -0700
One feature I like about OS X is the ability to hide the frontmost app by
typing command-H. I wanted to do something similar in OS 9 by creating a
script applet and attaching it to a function key. Then I could just hit the
function key instead of going to the Application menu. Unfortunately, this
does not work - my script applet becomes the frontmost app on launch.
Does anyone have any suggestions as to how to make this work? If I could
find out what the next to frontmost app was I could use that, but apps are
listed by Applescript in alphabetical order, not order on screen.
Here is my script:
tell application "Finder"
set p to every application process whose frontmost is true
set visible of item 1 of p to false
end tell
If run from the Script Editor, this hides the Script Editor as expected. If
run from the function key, it only hides itself.
Thanks,
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
http://www.theboss.net/appsmore
email@hidden