Moonshine: Distilling PDF into JPEG using Scripting NOW in VB for Windows!


Distilling PDF into JPEG Photoshop 7.0’s scripting on Windows

Problem from a customer: they want to take a directory of PDFs and make mini JPEGs that are previews of the spreads.

So, out with the newest Adobe application on the block: Photoshop 7.0. Photoshop 7.0 has a major new addition: Scriptability. Using AppleScript on MacOS, VB (COM) scripting on Windows and Javascript on both platforms, you can write scripts that interact with Photoshop and other applications. For scripters, this is the holy grail. From my first days at Adobe, one of the gurus of AppleScripting Shane Stanley, hounded me about Photoshop scriptability. In Photoshop 7.0, we’ve finally delivered.

[1172] moonshine windows ui

This version is an application written in Visual Basic. Using the Scripting Object (FileSystem object) and some UI classes to do the “watching” and directory selection, we look in a directory you nominate and place the resulting PDF and JPEGs into the destination directory.

You will need the Scripting plugin for Photoshop 7.0 Windows: Photoshop 7.0 Scripting Plugin 1.0.2a (Win)

And my compiled script, and source which are here:    Moonshine for Windows (ZIP)