Search found 9 matches

by freakpazo
Tue Apr 02, 2024 4:50 pm
Forum: Node.js scripting
Topic: Using imagemagick in script under Mac
Replies: 5
Views: 441

Re: Using imagemagick in script under Mac

Using the real path hepled. Thank you.
Regarding the other two issues - I created this dummy script just so I can show the error in the simplest way but thank you for the input
by freakpazo
Tue Apr 02, 2024 1:40 pm
Forum: Node.js scripting
Topic: Using imagemagick in script under Mac
Replies: 5
Views: 441

Re: Using imagemagick in script under Mac

I tried that and I am still getting an error.
Imagemagick is installled using homebrew on M1 so it is located at /opt/homebrew/bin/magick
Just to make sure I also tried independent script using the full path(which works fine) and using the old path /usr/local/bin/magick(just in case)
by freakpazo
Mon Apr 01, 2024 7:25 pm
Forum: Node.js scripting
Topic: Using imagemagick in script under Mac
Replies: 5
Views: 441

Using imagemagick in script under Mac

Hello, I am trying to acess imagemagick from switch script but I am getting "command not found" error. My goal is to convert psd to png and I am using exec from "child_process" alongside promisify from "util". Since the logic of my script is complicated I created a dumm...
by freakpazo
Tue Dec 05, 2023 1:04 am
Forum: Node.js scripting
Topic: Packed script have different behavior than script folder
Replies: 2
Views: 31127

Re: Packed script have different behavior than script folder

I do not transfer the script. It is inside a repo. I clone the repo on mac then build it and run it on mac as a "script folder". It works fine. As soon as I pack it using SwitchScriptTool to a single .sscript file and I try to run it this way it starts to throw the error and not work prope...
by freakpazo
Fri Dec 01, 2023 1:15 pm
Forum: Node.js scripting
Topic: Packed script have different behavior than script folder
Replies: 2
Views: 31127

Packed script have different behavior than script folder

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 *pass...
by freakpazo
Tue Nov 14, 2023 5:40 pm
Forum: Node.js scripting
Topic: Cannot get job: Source and destination must not be the same error
Replies: 2
Views: 8644

Re: Cannot get job: Source and destination must not be the same error

1. Yes I am getting the jobs with getJobs() in timerFired. I am doing it there since I want to batch send information to a server. 2. I am iterating the jobs array multiple times in different parts of the script this is why storing the path seemed counterintuitive but it is a possible solution. 3. M...
by freakpazo
Tue Nov 14, 2023 1:54 pm
Forum: Node.js scripting
Topic: Cannot get job: Source and destination must not be the same error
Replies: 2
Views: 8644

Cannot get job: Source and destination must not be the same error

Hello I have an array of jobs that I am manipulating trough the different stages of my script. I am getting the filePath of a job with await job.get(AccessLevel.ReadWrite) and then manipulating some of the xmp data with exiftool based on the path. After that I am iterating trough the jobs again but ...
by freakpazo
Mon Nov 06, 2023 6:15 pm
Forum: Node.js scripting
Topic: Sending files to "in progress" folder before sending them to "final" folder
Replies: 3
Views: 6099

Re: Sending files to "in progress" folder before sending them to "final" folder

Thank you I will try that. A side question since it is related - The debugging of timerFired() function is really inconsistent for me. I had no issues debugging inside jobArrived() with the following procces: 1. Start the script with debug mode true 2. Run the debugger in VS Code 3. Debugger hits li...
by freakpazo
Mon Nov 06, 2023 3:25 pm
Forum: Node.js scripting
Topic: Sending files to "in progress" folder before sending them to "final" folder
Replies: 3
Views: 6099

Sending files to "in progress" folder before sending them to "final" folder

Hello, I am building a script that is taking images, getting data from them, sending the data to server and waiting for webhook to move them to specific folder. The script have one input connection and several output connections(depending on configuration). Is there a way to first move the images to...