Thanks for this. I have no LUA experience but I have at least a rudimentary understanding of scripting and program language. I would like to use this for Pixelmator and it seems that should be simple enough. I edited the not_installed subroutine tp replace “photoshop” with “Pixelmator” but it still says required software not found when I try to launch. Where else do I need to make changes?
Update: I got rid of the errors, so the module runs and export runs, but the application never launches. I would appreciate any assistance
Frank, technically you did not need to make any changes to the code. Just under lua preferences (found as a tab under settings inside DT) point to the pixlemator binary instead of photoshop binary. I would suggest you try that before editing the script. Let me know how it goes.
Not at this time. As I just mention in my reply to Frank this script can be used with programs besides PS as is. Just point to whatever program you want to use it with via the executable path chooser found for this script under lua options in dt’s settings dialog box.
I tried using the unmodified script. No errors and dialog comes up “Opening in Photoshop” but the application never launches. If I had to guess I would say some permissions are preventing the script from launching another application.
Ok, please run dt in debug mode by launching it via:
Darktable -d lua
Then try again with the script. I’m not certain where the debit lognfiles are stored on Mac (it’s document on darktables site. If I get a chance I’ll update this post with the location) open the log file and post the info here please (or message it to me directly)
Easier said than done in the Mac world but I got it to launch. Seems the script cannot handle the .app bundles in the mac world, and does not provide a way to navigate to the unix executable. Here are the lines from the terminal
25.777570 LUA Opening in Photoshop
25.778387 LUA OpenInPS run_cmd = “/Applications/Photo tools/Pixelmator.app” /Users/frank/Pictures/Darktable library/2019/March 2019/_FEW0447.ORF
sh: /Applications/Photo tools/Pixelmator.app: is a directory
Might work if I modify the run cmd line to “open -a /path/program”? Nope, not as simple as I thought. Over my head!
This isn’t a limitation of the script, but rather a limitation of macOS. You can find the path by right clicking on the app and selecting Show Package Contents.
Otherwise use the cd command in the terminal to navigate to inside the app bundle, then use the pwd command to print the full path, copy and paste it to the dt plugin.
Agreed. The Open command will not work with arguments for the executable binary contained in the bundle (in my experience). You have to enter the full path. I will try the “favorites” trick above when I get some time. A bit of a kludge but if it works that will be good to know
Having trouble getting this working…It seems the Lua implementation has changed a bit since this was released.
I put the file in the Lua/contrib folder, and i can see it in the start stop scripts folder in the lua panel in the bottom left. When I try to start it, I get ‘failed to load’.
Just stumbled into this problem as well. Seems one of the imports was removed in a newer version of the script manager. I’ve put up a pull request to resolve this but for now you’ll want to remove the line that says ‘require “official/yield”’ in the LUA file.
Hi, I installed the plugin.
It does not open photoshop.
If i debug with : /Applications/darktable.app/Contents/MacOS/darktable -d lua
I see the following error message
2,3050 LUA OpenInPS - Executable Path Preference: /Applications/Adobe Photoshop 2023/Adobe Photoshop 2023.app
3,5792 LUA ERROR Photoshop not found
In case somebody is still fighting with this: I succeeded by manually changing the path to the Photoshop executable in /.config/darktable/darktable.rc, like