Packed script have different behavior than script folder
Posted: Fri Dec 01, 2023 1:15 pm
Hello,
I am building a script that is reading/writing metadata with exiftool. I am using exiftool-vendored npm package to interact with exiftool.
When I am using my script folder everything works fine.
I am packing the script with "SwitchScriptTool --pack *source* *destination* --password *password*".
The script is packed successfully but when I try to use it in a flow as soon as I try to interact with exiftool inside the script I am getting the following error - "Process stopped unexpectedly". Try catch blocks can't handle the error either.
Note: Under windows both the script folder and the packed script works fine. Under Mac the script folder works fine while the packed script throws the error.
I am building a script that is reading/writing metadata with exiftool. I am using exiftool-vendored npm package to interact with exiftool.
When I am using my script folder everything works fine.
I am packing the script with "SwitchScriptTool --pack *source* *destination* --password *password*".
The script is packed successfully but when I try to use it in a flow as soon as I try to interact with exiftool inside the script I am getting the following error - "Process stopped unexpectedly". Try catch blocks can't handle the error either.
Note: Under windows both the script folder and the packed script works fine. Under Mac the script folder works fine while the packed script throws the error.