Cache cache sur Mac OS

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
# hide an application in the Finder
osascript < 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.


  1. RaphaelRépondre à ce commentaire

    Un petit Pomme+H ne suffit pas?

  2. kinjiRépondre à ce commentaire

    @Raphael : Quand t’as accès au clavier de la machine ouais :D

Laisse un commentaire