Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

script to select the hand tool and full screen mode with menu bar for osx,can i use them?

Enthusiast ,
Oct 27, 2017 Oct 27, 2017

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

724
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 27, 2017 Oct 27, 2017

Use them the same way as on windows.

In other words use File>Scripts>Script Events Manager.

sem.png

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.

Translate
Adobe
Community Expert ,
Oct 27, 2017 Oct 27, 2017

Use them the same way as on windows.

In other words use File>Scripts>Script Events Manager.

sem.png

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 27, 2017 Oct 27, 2017

hi

thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 29, 2017 Oct 29, 2017
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines