Skip to main content
dougb110
Participant
July 27, 2018
Answered

Photoshop Script error - desperate for help!

  • July 27, 2018
  • 3 replies
  • 6651 views

Hi and thanks for the help in advance!

We wrote a PS script application and have successfully ran it on two of our PCs.  However, on our client PC, which is Windows 7 Enterprise, it throws the following error:

- The parameters for command "Make" are not currently valid. At Photoshop.Documents.Add(Object Width, Object Height, Object Resolution, Object Name, Object Mode, ObjectInitialFill, Object PixelAspectRation, Object BitPerChannel, Object ColorProfileName"

It's basically just trying to create a new document. Simple.  Because their PC is on ActiveDirectory, we thought there might be a problem with permissions/rights.  We ensured that 'Everyone' had full control on the folder.  Doesn't seem to work. I also ensured that all permissions were applied to the Adobe Photoshop application folder, temp directory, and the general 'Adobe' folder under 'Program Files'.  All users have 'Full control'.

Additionally, we double-checked that they're running the same version of Photoshop (they are using an enterprise license, but it's the same version).

So, the question is, does anyone know if ActiveDirectory would interfere with the Photoshop.Documents.Add function or any suggestions on what to look for?  We're racking our brain to figure this out!!  Frustrating when it works on our systems, but not a client!! 

Thanks!

Doug

This topic has been closed for replies.
Correct answer Kukurykus

So Visual Studio is installed on the machine and we've gone through the debugger.  We'll try more alerts but basically it stops right on that error.

I'm going to try to just get a fundamental script going to see if it can at least create a new document outside our program.


If you use wrong input by native DOM method to create document you will be alerted of same error:

displayDialogs = DialogModes.NO, $.level = 0; try{documents.add(0)}catch(err){alert(err.message)}

If your client use other Photoshop release maybe last parameter i.e. color profile is lacking in his Ps version to be set.

If he had rulers set to percents then document couldn't be created as well, but then you would get other error description.

Best way is do what I suggested, you may also try with no parameters, then with first, first two, and so on adding one till fail.

3 replies

Legend
July 27, 2018

Not enough information.
Who gives this error? Can you show a screenshot, or the exact text of errors, or better the whole script? Is the script a JSX file? Which version of Photoshop?

dougb110
dougb110Author
Participant
July 27, 2018

Thanks everyone for the help!

Attached is the prompt error from our application "Renderbot".  At the top of is all Tensorflow stuff so you can ignore that.

Photoshop CC 2018 19.1.5  Our application is written in C#.  Again, it works on our PC's, just not one that's at the client which is on Active Directory.

Legend
July 27, 2018

I dont know. It probably has nothing to do with scripts. I can not help.

Maybe someone who understands what you are talking about

JJMack
Community Expert
Community Expert
July 27, 2018

Photoshop is not a file editor. Photoshop edits documents and there is no file backing a new document it would not have been saved yet. A new document would only be in the Photoshop application till you save it or there is a recovery psb created for it.  It only has a document name till you save a file using a Photoshop save.  I do not think an active directory would have any involvement when you create a new document. Only would be involved if you open an old document  that is backed in your active directory.

JJMack
Kukurykus
Legend
July 27, 2018

See if the same works with Javascript (btw there is quotaion mark at end instead of closing parenthesis):

Photoshop.Documents.Add(Object Width, Object Height, Object Resolution, Object Name, Object Mode, ObjectInitialFill, Object PixelAspectRation, Object BitPerChannel, Object ColorProfileName"