Adobe 23101335 Scripting Guide - Page 56
Document information, Set jpgSaveOptions = CreateObjectPhotoshop.JPEGSaveOptions
UPC - 718659152833
View all Adobe 23101335 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 56 highlights
Scripting Photoshop 3 Document object VB: Dim appRef As New Photoshop.Application Set jpgSaveOptions = CreateObject("Photoshop.JPEGSaveOptions") jpgSaveOptions.EmbedColorProfile = True jpgSaveOptions.FormatOptions = psStandardBaseline jpgSaveOptions.Matte = psNoMatte jpgSaveOptions.Quality = 1 appRef.ActiveDocument.SaveAs "c:\temp\myFile2", _ Options:=jpgSaveOptions, _ asCopy:=True, extensionType:=psLowercase JS: jpgFile = new File( "/Temp001.jpeg" ); jpgSaveOptions = new JPEGSaveOptions(); jpgSaveOptions.embedColorProfile = true; jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE; jpgSaveOptions.matte = MatteType.NONE; jpgSaveOptions.quality = 1; activeDocument.saveAs(jpgFile, jpgSaveOptions, true, Extension.LOWERCASE); 3.8.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 the information, reference to 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 7.0 Scripting Guide 56