Davide Barranca's Package for Sublime found HERE.
I've installed the package and have ticked ExtendScript-PS option found under Tools > Build System > ExtendScript-PS
This here is the code I am using as a test:
Code: Select all
#target Photoshop
alert("Done!");
The issue is in Sublime Text, when I go to Tools >Build I just get an error dump in the Console:
Code: Select all
The filename, directory name, or volume label syntax is incorrect.
[Finished in 0.1s with exit code 1]
But if I directly execute the Test.Jsx file in windows explorer, it works just fine in Photoshop.
So the issue must be with sublime, Anyone know what I could be doing wrong? I am running latest version of Photoshop. Any help would be appreciated.
My build.bat file is set up like this:
Code: Select all
@echo off
:: Renaming arguments
set jsx_file=%1%
:: Change this accordingly to your CS version
set version= Adobe Photoshop CC 2020
set ps_folder_path=c:\Program Files\Adobe\Adobe Photoshop %version% (64 Bit)
::set ps_folder_path=c:\Program Files\Adobe\Adobe Photoshop %version% (64 Bit)
:: Adobe Photoshop folder location 32 bit versions:
:: set ps_folder_path=c:\Program Files (x86)\Adobe\Adobe Photoshop %version%
cd "%ps_folder_path%"
:: Running script in Photoshop
photoshop.exe "%jsx_file%"
:: Printing happy feedback in the console
echo "Successfully compiled %file_name% to %full_path%\%file_name%";
Code: Select all
on run arg
tell application "Adobe Photoshop CC 2020"
do javascript file (arg's item 1)
-- ALTERNATIVELY:
-- do javascript file (arg's item 1) show debugger before running
-- do javascript file (arg's item 1) show debugger never
-- do javascript file (arg's item 1) show debugger on runtime error
activate
end tell
end run