script to select the hand tool and full screen mode with menu bar for osx,can i use them?
hi
i'm using an imac with sierra in these last days
under windows i had a script to select the hand tool or eyesdropper and a script to switch to full screen mode with menu bar
i used these script events manager
i had setup photoshop to select the hand tool and switch to full screen mode with menu bar when i open an image
now i would like to run these script with photoshop under osx sierra
for example the hand tool script for windows is
//selectTool('handTool');
selectTool('handTool');
function selectTool(tool) {
var desc9 = new ActionDescriptor();
var ref7 = new ActionReference();
ref7.putClass( app.stringIDToTypeID(tool) );
desc9.putReference( app.charIDToTypeID('null'), ref7 );
executeAction( app.charIDToTypeID('slct'), desc9, DialogModes.NO );
};
and to switch to full screen mode with tool bar is
//Fit image on screen
//Attach to the Open Document event in Photoshop CS 2
//=======================================================
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 );
// =======================================================
var 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 );
they are both *.JSX extension
how can i use them under photoshop for mac ?
will they work?
should i change the extension ?
and where should i copy them?
thanks
best regards
