[quote=“tito”]
Mr thanks for your answers!
I think I have something… please update the package
With this as the line of the application in the config file:
"application": "/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/Adobe\\ Photoshop\\ CS5.app",
Try “open with…”
If still not working…
go to menu “view” -> “show console”
and try some of the following… until you get the file opened.
1
import subprocess; subprocess.Popen('open', '-a', '/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/Adobe\\ Photoshop\\ CS5.app', '/path/to/mypsd.psd'])
2
import subprocess; subprocess.Popen('open', '-a', '/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/Adobe\\ Photoshop\\ CS5.app', 'mypsd.psd'], cwd='/path/to/')
3
import subprocess; subprocess.Popen('open', '-a', 'Adobe\\ Photoshop\\ CS5.app', '/path/to/mypsd.psd'])
4
import subprocess; subprocess.Popen('open', '-a', 'Adobe\\ Photoshop\\ CS5.app', '/path/to/mypsd.psd'], cwd='/Applications/Adobe\\ CS5/Adobe\\ Photoshop\\ CS5/')
5
import subprocess; subprocess.Popen('open', '-a', 'Adobe\\ Photoshop\\ CS5.app', 'mypsd.psd'], cwd='/path/to/')
6
import subprocess; subprocess.Popen('open', '-a', 'Photoshop', 'mypsd.psd'], cwd='/path/to/')
7
import subprocess; subprocess.Popen('open', '-a', 'Photoshop', '/path/to/mypsd.psd'])
Hope you can open that file and tell me which command works.
I’ve some questions:
1 ) Can you open a photoshop file via “Open/Run” menuitem now? I think is fixed.
2 ) CAREFUL with this one: Is now a folder or file successfully sent to trash? If not, is there some message into the console?
Thanks in advance.[/quote]
So after a lot of trial & more error with these 7 commands, I managed to get them all working! I did have to change your commands however; none of them worked in their provided state, so I experimented - removing backslashes, spaces etc - until I finally tried the commands without any backslashes & just entered the file/app locations as they & low & behold,they worked.
I had to change 6 & 7’s app name to Adobe Photoshop CS5 as that’s how my app is named.
Just so we’re clear, here’s one of them:
import subprocess; subprocess.Popen('open', '-a', '/Applications/Adobe CS5/Adobe Photoshop CS5/Adobe Photoshop CS5.app', 'Logo.psd'], cwd='/Users/mrmartineau/Dropbox/Work/Web/Clients (Current)/Company/Logo/')
After that I thought I would toy around with the sublime-menu file, which I got working. Instead of providing the app’s location, I just provided the name (without backslashes if there are spaces etc) and it now works perfectly!! Here’s my full sublime-menu file for reference:
[code]
{“id”: “side-bar-files-open-with”,
“children”:
//application 1
{
"caption": "Photoshop",
"id": "side-bar-files-open-with-photoshop",
"command": "side_bar_files_open_with",
"args": {
"paths": ],
"application": "Adobe Photoshop CS5.app",
"extensions":"psd|png|jpg|jpeg|gif" //any file with these extensions
}
},
//separator
{"caption":"-"},
//application 2
{
"caption": "Espresso",
"id": "side-bar-files-open-with-espresso",
"command": "side_bar_files_open_with",
"args": {
"paths": ],
"application": "Espresso.app",
"extensions":"css" //open all even folders
}
},
//application n
{
"caption": "CSS Edit",
"id": "side-bar-files-open-with-cssedit",
"command": "side_bar_files_open_with",
"args": {
"paths": ],
"application": "CSSEdit.app",
"extensions":"css" //any file with extension
}
},
{"caption":"-"}
]
}
][/code]
If you need more info, let me know…