Copy link to clipboard
Copied
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
Use them the same way as on windows.
In other words use File>Scripts>Script Events Manager.

Keep the same .jsx extension and put the scripts anywhere on your mac as long as you don't move them after setting the Script Events Manager to use them.
Copy link to clipboard
Copied
Use them the same way as on windows.
In other words use File>Scripts>Script Events Manager.

Keep the same .jsx extension and put the scripts anywhere on your mac as long as you don't move them after setting the Script Events Manager to use them.
Copy link to clipboard
Copied
hi
thanks
Copy link to clipboard
Copied
Hi Jeff
i see you use photoshop under osx
i bought a second ssd only for scratch and i set photoshop to use this ssd for scratch
i have unhidden files
i can not find any file related to photoshop and scratch ,why?
i'm running last sierra build and i own 32gb of ram
thanks
Find more inspiration, events, and resources on the new Adobe Community
Explore Now