Un petit script rapide mais néanmoins pratique pour aujourd'hui. Il va vous permettre de cacher la ou les fenêtres d'une applications par son nom depuis le terminal.
#! /bin/sh
osascript <<END
tell application "Finder"
if exists application process "$1" then
set visible of application process "$1" to false
end if
end tell
END
Il vous suffit d'enregistrer ce code dans un fichier nommé "hide" et de faire un petit
sudo mv hide /usr/bin et voilà !
Vous pouvez faire :
hide MonProgramme et hop, plus rien à l'écran.

/var/www/flickr