Joe Dunn is doing a nice series of articles on Quicksilver. He’s covered triggers and scripts so far with more on the way.
One thing I disagree with, though, is the excessive use of the “do shell script” AppleScript. I like the “Run Command in Shell” action just fine. But if you want an icon, writing an Obj-C wrapper isn’t too much work. Especially since you have this source code.
I’ve also got a bit more on Quicksilver coming up shortly.
6 Comments so far
Leave a commentThanks Ankur.
I agree that using an Obj-C wrapper would be the proper way to go. Applescript is for programming noobs like me :D.
determined by Joe Dunn on December 5, 2007 3:27 am | Permalink
Joe, AppleScript isn’t without it’s uses, but I just prefer not to use it unless it’s necessary.
I’m looking forward to seeing more of your articles.
revealed by Ankur on December 5, 2007 2:10 pm | Permalink
Thanks for this, I need all the info I can get
disclosed by Open English on December 13, 2007 3:31 am | Permalink
thanks for cleaning up the qs code!
regarding scripts/shell commands: one thing i like to use qs for is having a trigger assigned to run a shell script and display the results in large type. the only way i’ve found to do this is via applescript, for example:
tell application “Quicksilver”
show large type (do shell script “df -h -t hfs; echo -n ‘Trash: ‘; du -sh ~/.Trash | cut -f1″)
end tell
assigned to a trigger this gives me the df command and the size of my trash folder in the large type display.
is there a better way of doing this without resorting to the applescript? (also, some way of formatting the large type so it was in a mono font would be nice. the large type display doesn’t handle tabs very well either).
thanks,
matt
written by matt k on February 16, 2008 12:54 am | Permalink
Matt K, there is another way of doing that without AppleScript. I have a system that handles GUI interaction (among others things) from the command-line, so you could achieve that whole thing from a Terminal without invoking ‘osascript’. I’ll be releasing this sometime.
Having a monospace font for large type seems like a good idea.
reasonded by Ankur on February 16, 2008 2:34 pm | Permalink
I will be looking forward to seeing that, as the applescript work-around is a bit convoluted. another issue w/ the terminal output is that it’s not always sized correctly, running ‘cal’ for instance results in large text w/ chopped off display…
thanks for your time.
-matt
declared by matt k on February 16, 2008 3:01 pm | Permalink
Leave a comment