Photoshop CS 2 Automatically fit image on screen

Upload Photoshop Scripts, download Photoshop Scripts, Discussion and Support of Photoshop Scripts

Moderators: Tom, Kukurykus

Larry Ligon

Photoshop CS 2 Automatically fit image on screen

Post by Larry Ligon »

This uses the new feature of attaching a script to an event in Photoshop CS2. It will automatically resize the image to fit on the screen. The script is attached to the "Open Document" event.

See the "Read Me.pdf" for instructions on how to install and use this script.

bb/download.php?id=10

Larry
nvslater

Photoshop CS 2 Automatically fit image on screen

Post by nvslater »

Larry,
I really thought I had the answer to images that would show as big as possible , on my 21 in monitor. I have tried your scripts to fit on screen and they work fine, but if I could add "view menu>screen mode>full screen mode with menu bar", it should be just what I need.
I have tried wrighting an action to do this, but cant figure out how use the Insert Menu Item command. I am open to all suggestions you may have.
nvslater
Larry Ligon

Photoshop CS 2 Automatically fit image on screen

Post by Larry Ligon »

Open up my script "fit to screen.jsx" in a text editor. Add this code to the bottom:

// Code: Select all=======================================================
var id20 = charIDToTypeID( "slct" );
    var desc7 = new ActionDescriptor();
    var id21 = charIDToTypeID( "null" );
        var ref3 = new ActionReference();
        var id22 = charIDToTypeID( "Mn  " );
        var id23 = charIDToTypeID( "MnIt" );
        var id24 = stringIDToTypeID( "screenModeFullScreenWithMenubar" );
        ref3.putEnumerated( id22, id23, id24 );
    desc7.putReference( id21, ref3 );
executeAction( id20, desc7, DialogModes.NO );

Save the script as text only.

Larry