Hello
I'm very happy with the new possibilities of TM2. It's a pleasure to work with the project folder, the favorites etc.
With TM1 I used a folder tm_proj. Inside this folder, I placed all the files like tkz-euclide.proj, tkz-tab.proj etc. Then I used a soft You Control to add a folder in the menu bar with all xxx.proj files. I can with this process access directly the projects without open TM1
I tried to use the same process with TM2. I found only the new way :
I created a script
#!/bin/bash mate /Users/matt/works/tkz-euclide
tkz-euclide is a folder with all the files of my project.
I saved these lines in a file euclide.sh and then I created a little application tkz-euclide.proj with the help of a little soft Platypus (http://sveinbjorn.org/platypus) . A click on tkz-euclide.proj open the folder tkz-euclide in TM2.
Finally I can make this for all my projects and I can access them directly from the menu bar.
I would like to know if there is a better and simpler way to get the same result ?
Best regards
Alain Matthes
Le 18 mars 2013 à 15:44, Alain Matthes alain.matthes@mac.com a écrit :
Hello
I'm very happy with the new possibilities of TM2. It's a pleasure to work with the project folder, the favorites etc.
With TM1 I used a folder tm_proj. Inside this folder, I placed all the files like tkz-euclide.proj, tkz-tab.proj etc. Then I used a soft You Control to add a folder in the menu bar with all xxx.proj files. I can with this process access directly the projects without open TM1
I tried to use the same process with TM2. I found only the new way :
I created a script
#!/bin/bash mate /Users/matt/works/tkz-euclide
tkz-euclide is a folder with all the files of my project.
I saved these lines in a file euclide.sh and then I created a little application tkz-euclide.proj with the help of a little soft Platypus (http://sveinbjorn.org/platypus) . A click on tkz-euclide.proj open the folder tkz-euclide in TM2.
Exactly I need to add killall xxx.proj to quit the application that opens the folder.
All this is really tortuous but effective but it would be nice to find a simpler solution.
I have another solution with Automator 1) Get specific element from Finder My folder project 2) Then Tell TM2 to open this folder
The problem is with Automator I get a file size of 1.7 M and with platypus, the size is only 350 K
No idea about this ?
Alain Matthes
On 18 Mar 2013, at 15:44, Alain Matthes wrote:
[…] I used a soft You Control to add a folder in the menu bar with all xxx.proj files. I can with this process access directly the projects without open TM1
I tried to use the same process with TM2. I found only the new way […]
I think the approach with a shell script per project is the best approach ATM.
What you could do to make it slightly easier is to use a TM command to create these scripts, it would be something like:
#!/bin/bash dst="$HOME/Projects/${TM_PROJECT_DIRECTORY##*/}.sh" cat > "$dst" <<SH #!/bin/sh "'${TM_MATE}'" "'${TM_PROJECT_DIRECTORY}'" SH
If bound e.g. to ⌃⌘S you can easily add new “project” to your menu.
Le 19 mars 2013 à 19:55, Allan Odgaard mailinglist@textmate.org a écrit :
#!/bin/bash dst="$HOME/Projects/${TM_PROJECT_DIRECTORY##*/}.sh" cat > "$dst" <<SH #!/bin/sh "'${TM_MATE}'" "'${TM_PROJECT_DIRECTORY}'" SH
Thanks! Interesting Alain Matthes