Adobe 23101764 Scripting Guide - Page 74
Document information
UPC - 718659340025
View all Adobe 23101764 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 74 highlights
Scripting Photoshop 3 Document object JS: jpgFile = new File( "/Temp001.jpeg" ); jpgSaveOptions = new JPEGSaveOptions(); jpgSaveOptions.embedColorProfile = true; jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE; jpgSaveOptions.matte = MatteType.NONE; jpgSaveOptions.quality = 1; app.activeDocument.saveAs(jpgFile, jpgSaveOptions, true, Extension.LOWERCASE); 3.9.2 Document information A Photoshop document can be associated with additional information such as the author via the "File > File Info" menu. The information found in this menu-item is handled by the info (DocumentInfo) object.To change document information, reference the info object and set its properties as shown below. AS: set docInfoRef to info of current document set copyrighted of docInfoRef to copyrighted work set owner url of docInfoRef to "http://www.adobe.com" VB: Set docInfoRef = docRef.Info docInfoRef.Copyrighted = psCopyrightedWork docInfoRef.OwnerUrl = "http://www.adobe.com" JS: docInfoRef = docRef.info; docInfoRef.copyrighted = CopyrightedType.COPYRIGHTEDWORK; docInfoRef.ownerUrl = "http://www.adobe.com"; Photoshop CS Scripting Guide 70