Thanks! I'll give that a try. I haven't tried making applescripts to
use with quicksilver but that looks like exactly what I need.

On Feb 6, 1:37 am, "Jon Stovell (a.k.a. Sesquipedalian)"
<[email protected]> wrote:
> Ah, now I understand.
>
> 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 5, 1:43 am, Sean <[email protected]> wrote:
>
> > Thanks for your help Jon,
>
> > 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.

Reply via email to