News for hackers. Stuff that matters.
Re:Using Spotlight from the OS X Commandline by jasomill on Sunday July 15, 2012 @11:42PM (#4249207)

    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)

There are no comments on this comment yet.