fill to screen on open documents

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

juda

fill to screen on open documents

Post by juda »

Hi
i running cs3 under xp

and i use a script to fit to screen the image
Code: Select allvar id57 = charIDToTypeID( "slct" );
    var desc15 = new ActionDescriptor();
    var id58 = charIDToTypeID( "null" );
        var ref6 = new ActionReference();
        var id59 = charIDToTypeID( "Mn  " );
        var id60 = charIDToTypeID( "MnIt" );
        var id61 = charIDToTypeID( "FtOn" );
        ref6.putEnumerated( id59, id60, id61 );
    desc15.putReference( id58, ref6 );
executeAction( id57, desc15, DialogModes.NO );

//=======================================================
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 );

in cs5 there is fill in screen feature , can i do it in cs3?
i mean how can i edit the script to fill on screen the images i open with photoshop cs3

thanks
cheers