I wish to use a postflight shell script to run an appleScript over a JPEG manipulated in RB, after the RB processing is complete. The RB processing writes the processed JPEG file to the selected directory in the penultimate step. But the shell script (the final step) does not complete.
I am getting an error in the RB console “NSInvalidArgumentException: launch path not accessible”. I think this may mean that the location of the processed file that is passed to the shell script is not accessible by my AppleScript (a temporary directory?).
The shell script I am attempting to run as the last step in my RB window is:
osascript /path/to/my/scripts/folder/Mozjpg-Low.scpt “$1”
The shell script is located in the same scripts directory. It should be read-accessible to RB.
When I run this command from the terminal replacing the argument with the path of the file that RB writes it runs fine.
What am I doing wrong?