I am assuming most of us here are familiar with Quicksilver. I wrote a bash script to open a project and some of its files in Textmate in an obvious fashion:
#!/bin/bash mate ~/Documents/infodump mate ~/Documents/infodump/tsks.txt
How can I run this script using Quicksilver? Only way I can is by running this script file using "Run in Terminal." "Run" by itself doesn't do anything with the script file.
Thanks Raheel
On 01/03/2007, at 2:10 PM, Raheel Ahmad wrote:
#!/bin/bash mate ~/Documents/infodump mate ~/Documents/infodump/tsks.txt
How can I run this script using Quicksilver? Only way I can is by running this script file using "Run in Terminal." "Run" by itself doesn't do anything with the script file.
Try this ....
command space (active quicksilver) type 'infodump' (or whatever you need to to select your desired directory tab type 'ow' (open with) tab type 'tm' (textmate, you may need to be more verbose) enter.
Thats how I do it.
- Luke.
Luke, I have been doing how you describe it. Only problem is: "Open with" doesn't open specific files inside the project after opening the project itself. I wanted to write this script so I could open the project view and then few of the files I always need at startup...
On Feb 28, 2007, at 10:54 PM, Luke Daley wrote:
On 01/03/2007, at 2:10 PM, Raheel Ahmad wrote:
#!/bin/bash mate ~/Documents/infodump mate ~/Documents/infodump/tsks.txt
How can I run this script using Quicksilver? Only way I can is by running this script file using "Run in Terminal." "Run" by itself doesn't do anything with the script file.
Try this ....
command space (active quicksilver) type 'infodump' (or whatever you need to to select your desired directory tab type 'ow' (open with) tab type 'tm' (textmate, you may need to be more verbose) enter.
Thats how I do it.
- Luke.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
--------------------------- Raheel Ahmad Department of Computer Science, Southern Illinois University rahmad@cs.siu.edu 618-453-6025 Faner-3123
Raheel Ahmad wrote:
Luke, I have been doing how you describe it. Only problem is: "Open with" doesn't open specific files inside the project after opening the project itself. I wanted to write this script so I could open the project view and then few of the files I always need at startup...
A much better solution is to just choose File → Save Project from within TextMate. Then the next time you open it, the same files will be open, to the same places, etc.
Raheel Ahmad <rahmad@...> writes:
#!/bin/bash mate ~/Documents/infodump mate ~/Documents/infodump/tsks.txt
How can I run this script using Quicksilver?
Try this: 1) create an AppleScript containing do shell script "/usr/local/bin/mate ~/Documents/infodump" do shell script "/usr/local/bin/mate ~/Documents/infodump/tsks.txt"
2) create a Quicksilver shortcut to run this script.
That's it. Or at least, it works for me. I have a folder "plans" and I open it with a do shell script command
do shell script "/usr/local/bin/mate ~/Documents/plans/"
which opens a whole project in TextMate containing all files and subfolders of "plans"
Ciao Piero
On 1. Mar 2007, at 05:10, Raheel Ahmad wrote:
I am assuming most of us here are familiar with Quicksilver. I wrote a bash script to open a project and some of its files in Textmate in an obvious fashion:
#!/bin/bash mate ~/Documents/infodump mate ~/Documents/infodump/tsks.txt
How can I run this script using Quicksilver? Only way I can is by running this script file using "Run in Terminal." "Run" by itself doesn't do anything with the script file.
Likely because when you just ‘run’ it, it is done by Quicksilver, which does not have the same PATH as the Terminal, and so, there is a chance ‘mate’ is not found.
Try to use the full path to mate in the script.
As an alternative to mate, you can use: open -a TextMate ~/Documents/ infodump
Thanks, This worked best for me.
On Mar 1, 2007, at 6:23 AM, Allan Odgaard wrote:
On 1. Mar 2007, at 05:10, Raheel Ahmad wrote:
I am assuming most of us here are familiar with Quicksilver. I wrote a bash script to open a project and some of its files in Textmate in an obvious fashion:
#!/bin/bash mate ~/Documents/infodump mate ~/Documents/infodump/tsks.txt
How can I run this script using Quicksilver? Only way I can is by running this script file using "Run in Terminal." "Run" by itself doesn't do anything with the script file.
Likely because when you just ‘run’ it, it is done by Quicksilver, which does not have the same PATH as the Terminal, and so, there is a chance ‘mate’ is not found.
Try to use the full path to mate in the script.
As an alternative to mate, you can use: open -a TextMate ~/ Documents/infodump
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
--------------------------- Raheel Ahmad Department of Computer Science, Southern Illinois University rahmad@cs.siu.edu 618-453-6025 Faner-3123