Skip to main content
ellesaidh
Participant
September 21, 2016
Question

Photoshop script for Momentis

  • September 21, 2016
  • 1 reply
  • 337 views

So I have a script for use with a PLM called Momentis for Illustrator.

Basically what it does is takes an AI or PDF file and exports it as a jpg in one server location, a thumbnailed version of the jpg scaled down to 25% in another server location, and saves it as a pdf in a third location. All with the same name as the original file except the thumbnail with "_thumb" after the original filename.

I have been trying to adapt that script for use with Photoshop, and it has been giving me issues, so I did some google searches, and have sound some useful information, but decided instead of trying to adapt this script or trying to rewrite it myself, see since I am much more proficient at bash scripting than javascript, if someone had one that would work for this purpose, so I don't have to re-invent the wheel.

So to summarize.

Take a PSD or PDF;

Export as JPG on the server;

Export as 25% scale JPG with "_thumb" added to the name on the server;

Save PDF in the same location the AI or PDF came from.

Any help would be GREATLY appreciated, thank you!

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
September 21, 2016

Have  you looked at the the Image Processor script and Image Processor Pro plug-in script to see if you could do the job with them?

The some image file types like .AI files are not supported well by Photoshop.  But PSD files should not be a problem and for sure the Image Processor Pro plug-in can save PSD and PDF files.   However, the Image Processor Pro uses Fit Image to resize images using pixel numbers not a percentage.  You would need to write a script to do the resize via percentage. And use that script in an action you have the image processor pro to include in processing your PSd and PDF image files. The action would do the resizing you would not use the script resize options.  You may need to use the bridge to interface with the Image Processon Pro plug-in when there are AI files in the same folder as PDF files.  You would only select the PDF files the be processed using the Bridge 's file type filter to select only PDF files.

JJMack
ellesaidh
ellesaidhAuthor
Participant
September 21, 2016

I support 80+ designers, and I want to take out any variables for them to execute improperly.

I want them to just run the script and be able to assume that it worked for them.

This is something that they will run at least a dozen times a day, and making it as easy and user-friendly as possible, basically just clicking scripts > the script is my goal.

JJMack
Community Expert
Community Expert
September 21, 2016

The Image Processor Pro script is a a Photoshop Plug-in.  This means you can record using the script in an Action.  The Script will record all the setting you used in its dialog while recording the action into the Action step.   When the Action is played no dialog will be displayed by the script, It will use the setting recorded into the action step.   You can also turn on the step dialog.  The setting recorded into the action step will be set into the dialog when it is displayed and the user can make modifications to the setting displayed and signal the script to run with the modified settings.   The Script also has  features to save out and load setting using file names.   The Image Processor Pro is an  artwork IMO. Its beautiful to me.

JJMack