Skip to main content
Participating Frequently
April 14, 2016
Answered

How can I show the Photoshop Print-Dialog whit JavaScript?

  • April 14, 2016
  • 2 replies
  • 455 views

Hello,

How can I show the Photoshop Print-Dialog whit JavaScript?

This topic has been closed for replies.
Correct answer Chuck Uebele

Are you using the scriptListener plugin to record the action manager code? if so, change the part of the last line of "DialogModes.NO" to "DialogModes.ALL". Just be sure to set it back to no with this line:

app.displayDialogs = DialogModes.NO;

2 replies

CodeniaAuthor
Participating Frequently
April 14, 2016

Thank you for your help Chuck!


The print dialog can be showed with this command:


executeAction( charIDToTypeID('Prnt'), undefined, DialogModes.ALL );

Chuck Uebele
Community Expert
Chuck UebeleCommunity ExpertCorrect answer
Community Expert
April 14, 2016

Are you using the scriptListener plugin to record the action manager code? if so, change the part of the last line of "DialogModes.NO" to "DialogModes.ALL". Just be sure to set it back to no with this line:

app.displayDialogs = DialogModes.NO;