Odiemance opened this issue on Aug 20, 2003 ยท 4 posts
aip2000 posted Thu, 21 August 2003 at 2:08 PM
Attached Link: http://www.adobe.com/support/downloads/detail.jsp?ftpID=1536
You can resize by 70 pixels with Photoshop Scripting. On a PC you can do it with the following VBScript. This can be done in AppleScript or JavaScript for Mac users. I don't write either of those languages. Further information at: http://www.adobe.com/support/downloads/detail.jsp?ftpID=1536 ' VB Script to Resize for drop shadow 'save this code with a .vbs extension. 'double click and it will resize all open documents with a 70 pixel border Dim appRef 'As New Photoshop.Application set appRef = CreateObject("Photoshop.Application") ' Remember current unit settings and then set units to ' the value expected by this script Dim originalRulerUnits 'As Photoshop.PsUnits originalRulerUnits = appRef.Preferences.RulerUnits appRef.Preferences.RulerUnits = 1 'psPixels Dim DocRef 'As Photoshop.Document Set DocRef = appRef.ActiveDocument ' resize all open documents For Each DocRef In appref.Documents appRef.ActiveDocument = appRef.Documents(DocRef.Name) DocRef.ResizeCanvas DocRef.Width + 70, DocRef.Height + 70, 5 Next ' DocRef ' Restore unit setting appRef.Preferences.RulerUnits = originalRulerUnits ' end of script