Search found 6 matches

by Meik
Mon Sep 02, 2024 3:54 pm
Forum: Node.js scripting
Topic: Root directory of app
Replies: 2
Views: 17422

Re: Root directory of app

thanks, works perfectly with the getPluginResourcesPath() function!
by Meik
Mon Aug 19, 2024 9:40 am
Forum: Node.js scripting
Topic: Root directory of app
Replies: 2
Views: 17422

Root directory of app

Hello, I've created a new node.js-app. In that app I'm using jsx-scripts that are located inside of the script-folder. The paths to the jsx-scripts are set to fixed paths inside of the TypeScript-code. I want to keep them dynamic though. How can I get to that root-directory in my TypeScript-code? Us...
by Meik
Tue Apr 16, 2024 3:11 pm
Forum: Node.js scripting
Topic: Use $outfolder in Node.js
Replies: 1
Views: 14073

Re: Use $outfolder in Node.js

Seems like I've found a solution to my Problem. I just create a temporary folder with: let outfolder = tmp.dirSync().name; And pass it on to AppleScript and JSX. Seems to work. A new problem that occured, is that I also need to pass the Job to AppleScript and JSX so that Photoshop can use a JSX Scri...
by Meik
Wed Apr 10, 2024 8:30 am
Forum: Node.js scripting
Topic: Use $outfolder in Node.js
Replies: 1
Views: 14073

Use $outfolder in Node.js

Hello, I'm new to Node.js and I'm trying to develop a Node.js-Script that runs AppleScript which then runs a JSX-Script. That works just fine. The Problem is, that I need to use $outfolder inside of that JSX-Script, so I need to read it via Node to pass it on. I can't seem to find a way to get that ...
by Meik
Tue Apr 09, 2024 2:11 pm
Forum: Switch
Topic: [Solved] Job disappears during Process of passing it to AppleScript
Replies: 1
Views: 3338

Re: Job disappears during Process of passing it to AppleScript

SOLVED - had to promisify the AppleScript execution so that the Job doesn't run through all of the TypeScript before processing the AppleScript
by Meik
Mon Apr 08, 2024 11:46 am
Forum: Switch
Topic: [Solved] Job disappears during Process of passing it to AppleScript
Replies: 1
Views: 3338

[Solved] Job disappears during Process of passing it to AppleScript

Hello, I'm trying to develop a Switch-Script that allows me to use multiple Photoshop-versions (as it is not possible with the existing Photoshop App). So my Script is passing a Job to AppleScript, which then runs a jsx-Script that opens the Job in a certain Photoshop version. The Problem is, that t...