Have tried over 25 syntax variations of passing a series of 3 Parameters to a JavaScript JSX script file for Photoshop.

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: xbytor, DavideBarranca, Paul MR

S Wilde
Posts: 1
Joined: Fri Feb 03, 2017 1:19 pm

Have tried over 25 syntax variations of passing a series of 3 Parameters to a JavaScript JSX script file for Photoshop.

Postby S Wilde » Fri Feb 03, 2017 5:47 pm

Have tried over 25 syntax variations of passing a series of 3 string Parameters to a JavaScript JSX script file for Photoshop.
Including Json and various formatted strings.
 
However they all come through as 'undefined' or illegal and they stop the code and state I need to pass an Array as Argument 2.
 
If anybody has experience of using Photoshop with .NET C#, I would really appreciate a solution to passing the correct format of 'Arguments' in the command  DoJavaScriptFile() and them picking them up in my .JSX file as Parameters.
 
Thanks for looking.
Stephen



User avatar
Jaroslav Bereza
Posts: 17
Joined: Tue Dec 27, 2016 7:22 pm
Contact:

Re: Have tried over 25 syntax variations of passing a series of 3 Parameters to a JavaScript JSX script file for Photosh

Postby Jaroslav Bereza » Fri Feb 03, 2017 7:20 pm

Could you generate whole JSX file instead? So you don't need pass parameters.
Maybe with combination of #include http://stackoverflow.com/questions/1574 ... ript-files
Magic Scripts for Photoshop


Return to “Help Me”

Who is online

Users browsing this forum: No registered users and 2 guests