Applescript I

Uma pequena script da minha biblioteca em Applescript para quem precisa de ver as “man pages”.

set theCommand to (text returned of (display dialog “Comando UNIX:” default answer “” buttons {”OK”, “Cancel”} default button 1)) as string
set myManPage to (do shell script “man “ & theCommand & ” | perl -pe ’s/.\\x08//g’”)

tell application “TextEdit”
activate
make new document at the beginning of documents
set the text of the front document to myManPage
end tell

Abrir a Applescript no Script Editor. [Mac only]


Controlar o Mac via E-Mail

Automator I

Alterar o formato da Captura de ecra

Sincronizar o Address Book com Google Contacts

Spotlight, Smart Folders e Automator

Sem comentarios ainda, comenta tu!.

XHTML: Podes usar as seguintes tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>