It's nice to have access to such UI components from the command line.
One of my favorite is pbpaste/pbcopy.
What's yours?
One of my favorite is pbpaste/pbcopy.
What's yours?
Tip: `open .` opens the current directory in the Finder.
open vnc://[user@]host[:port]
connects as user to host on port with Screen Sharing, and, more generally, "open URL" works for any URL scheme registered with Launch Services, including, but not limited to, the obvious ones.Not sure if it'll carry across to ML, what with updates going through the Mac App Store there.
softwareupdate -d -a
downloads all updates to /Library/Updates. For each update, you get a .pkg file to install and a metadata file that includes this description. osascript
of course: it lets you control the UI of Cocoa applications, and even more for scriptable ones: osascript -e 'tell application "Safari" to close every document ¬
whose url contains "news.ycombinator.com"'
(¬, option-(lowercase L), is the AppleScript line continuation character)`say` lets you do text-to-speech in command line.
For example, if I want to install mercurial and git with homebrew:
brew install git mercurial; say "The task is finished, Master."
This will cause the terminal to bounce and add a little badge with the number of tasks that require your attention if it's out of focus :)