Right now I am using quicksilver to find the directory and then "Go to
directory in terminal." Then in the terminal I can start the chosen
program.
Is there a way to skip the step of opening the terminal? Like choose
the program, tab, choose run-in, tab, choose folder?
Thanks for any suggestions!
Sean
Assuming you mean a UNIX executable that is stored in some folder
somewhere , all you need to do is navigate in the first pane of QS's
command window to the folder, and then press / or → to see the
contents of the folder. Select the executable file that you want to
run, and run it with either the Run action (if you don't need to
interact with it), or with the Run in Terminal action (if you want it
to be interactive).
On Feb 5, 12:48 am, "Jon Stovell (a.k.a. Sesquipedalian)"
That's not quite what I need, but hopefully you might still have some
good ideas for me. The issue is where I want the program executed
from. If I am in a terminal and I navigate to a folder then I can
launch my application from that folder, even though the application
isn't in that folder, because it is in my "path" I guess. Say if I am
using IDLE or Matlab and I have libraries in a certain folder,
launching the program from that folder automatically adds the
libraries to the path for that program.
So what I really want is to choose where the program is launched from.
Thus my two step: open the terminal in that location using
quicksilver, then launch my program from the command line.
Thanks again for any ideas you might have.
I don't know of an existing action that does this. As you know, the
Run in Terminal… action (and related actions) use the third pane for
passing arguments to the executable in the first pane, so the third
pane is not available for defining a path to cd to before launching
the executable.
However, if you don't need to mess with arguments every time you run a
particular program, you could try creating a custom AppleScript action
that takes a folder in the first pane of QS, and then then goes there
in Terminal and runs the program for you there. (Basically, you would
select a folder in the first pane, and then select "Run MatLab here"
as an action in the second pane.)
The code for such an action might look something like this:
on open thisitem
if kind of (info for thisitem) is "Folder" then ¬
tell application "Terminal" to do script ¬
"cd " & POSIX path of thisitem & "; matlab"
end open
On Feb 6, 1:37 am, "Jon Stovell (a.k.a. Sesquipedalian)"