Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Picture Package Action

New Here ,
May 15, 2008 May 15, 2008
Hi,
I am wondering if it is possible to create an action or script that will allow me to batch process a group of files with the picture package automation that has the picture package get saved with the file name that was used as the file to create it. It currently gives the new Picture Package document created as " Picture Package ". I want to be able to automate this so that I can batch process a group of file in Picture Packages and have them retain their filename and be saved.
Thanks for your help.
Gary.
TOPICS
Actions and scripting
560
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guru ,
May 15, 2008 May 15, 2008
LATEST
Here is a simple javascript that does what you requested. <br /><br />var pkOpts = new PicturePackageOptions();<br />pkOpts.layout = '(2)3x5(4(wall)'<br />pkOpts.resolution = 300;<br /><br />var saveOptions = new JPEGSaveOptions(); <br />saveOptions.embedColorProfile = true; <br />saveOptions.formatOptions = FormatOptions.STANDARDBASELINE; <br />saveOptions.matte = MatteType.NONE; <br />saveOptions.quality = 8; <br /><br />var sFolder = Folder.selectDialog();<br />var sFiles = sFolder.getFiles('*.jpg');<br />for(i=0;i<sFiles.length;i++){<br /><br /> var doc = sFiles;<br /><br /> makePicturePackage([doc],pkOpts);<br /><br /> var pDoc = activeDocument;<br /><br /> pDoc.flatten();<br /><br /> pDoc.saveAs(new File(doc.path+'/pp_'+doc.name),saveOptions)<br /><br /> pDoc.close();<br /><br />}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines