• 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
how to hide the frontmost app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Intro to OS X scripting from O'Reilly
  • Next by Date: Re: Who uses AppleScript
  • Previous by thread: Intro to OS X scripting from O'Reilly
  • Next by thread: Re: how to hide the frontmost app?
  • Index(es):
    • Date
    • Thread