First things first: I'm pretty sure that you're looking for the 'Get Path' 
(and/or the 'Get POSIX Path) QS action. Using it returns a command-line 
friendly file path. It's pretty easy to set up a trigger with 'Finder 
Selection' in the first pane and 'Get Path' in the second pane.

Trying to figure out how to pass that to a shell script as an argument has 
not been so easy for me. I wasn't smart enough to figure out how to do it 
in QS without getting fancy/complicated. I had a couple of ideas about how 
it might be done, and perhaps some other folks here can finish my line of 
thinking.

1. Any scripts that you put in the /Quicksilver/Actions/ folder will become 
actions useable in the second pane. You'll be able to run them using 
information from the first pane. For example, I've got a script in my 
Actions folder that turns input into a sticky growl notification. I type 
(or paste, usually) whatever text I need into the QS, and then tab over and 
select my script. Voila, I've got a little sticky note from growl. This 
could be helpful.

2. Applescript. Applescript can grab the current finder selection, get its 
POSIX path, and run shell scripts. It should be pretty easy for someone 
that's familiar with Applescript to tell you how to do this. I, however, am 
not that person. Sorry. As a consolation prize, here's an Applescript that 
copies the POSIX path of the current finder selection to the clipboard.

on run
 tell application "Finder"
 copy selection to theSelected
 set outputPathList to {}
 repeat with anItem in theSelected
 copy (POSIX path of (anItem as alias)) to end of outputPathList
 end repeat
 set AppleScript's text item delimiters to return
 set outputString to outputPathList as string
 set AppleScript's text item delimiters to ""
 set the clipboard to outputString
 end tell
end run


Set up a trigger to run this script. From there you can invoke Quicksilver, 
type your *.sh into the first pane, command-v, and then tab to 'Run Command 
In Shell'. Still more complicated than it needs to be, but the best I can 
do for the moment.

Anyone else have an idea? For some reason this question has been driving me 
crazy. I know it's possible, I just know it! 

-- You received this message because you are subscribed to the Google Groups 
Quicksilver group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send 
email to [email protected]. For more options, 
visit this group at 
https://groups.google.com/d/forum/blacktree-quicksilver?hl=en

Reply via email to