Skip to main content
Chuck Uebele
Community Expert
Community Expert
October 2, 2019
Question

Turning on and off ScriptListener within Photoshop

  • October 2, 2019
  • 4 replies
  • 3218 views

Since many of the old threads have been removed, I thought I'd post these two scripts that Tom Ruark showed me. They turn ScriptListener on and off within Photoshop. These scripts are wonderful, as you don't have to quit Photoshop and restart to run ScriptListener. To use them, put the ScriptListener in the plugin folder and leave them there. Then put these two scripts in the scripts folder. Restart PS and you can then select to turn SL on or off.

 

This one turns it on:

 

// Copyright 2012.  Adobe Systems, Incorporated.  All rights reserved.
// The ScriptListener output can be turned on and off without having to uninstall.
// This one turns it on.

// enable double clicking from the Macintosh Finder or the Windows Explorer
#target photoshop

// in case we double clicked the file
app.bringToFront();

var listenerID = stringIDToTypeID("AdobeScriptListener ScriptListener");
var keyLogID = charIDToTypeID('Log ');
var d = new ActionDescriptor;
d.putBoolean(keyLogID, true);
executeAction(listenerID, d, DialogModes.NO);

 

 

This one turns it off:

 

 

// Copyright 2012.  Adobe Systems, Incorporated.  All rights reserved.
// The ScriptListener output can be turned on and off without having to uninstall.
// This one turns it off.

// enable double clicking from the Macintosh Finder or the Windows Explorer
#target photoshop

// in case we double clicked the file
app.bringToFront();

var listenerID = stringIDToTypeID("AdobeScriptListener ScriptListener");
var keyLogID = charIDToTypeID('Log ');
var d = new ActionDescriptor;
d.putBoolean(keyLogID, false);
executeAction(listenerID, d, DialogModes.NO);

 

4 replies

Chuck Uebele
Community Expert
Community Expert
October 11, 2022

@JeffreyTranberry  Do you know what's going on with scriptListener, lately? 

olverart
Inspiring
October 10, 2022

Today this is giving me an error, someone knows why? When I try to run the script to turn it on or off it gives me an error:

I already have installed the ScriptListener plugin in the correct folder on Windows, can't find why this is happeninig, I already reset my computer...

olverart
Inspiring
October 10, 2022

Here's the code I'm trying to run to make script listener to work.

var listenerID = stringIDToTypeID("AdobeScriptListener ScriptListener");
var keyLogID = charIDToTypeID('Log ');
var d = new ActionDescriptor;
d.putBoolean(keyLogID, true);
executeAction(listenerID, d, DialogModes.NO);
Stephen Marsh
Community Expert
Community Expert
October 11, 2022

In Win 10, the path that works for me is:

 

C:\Program Files\Adobe\Adobe Photoshop 2022\Plug-ins\Scripting Utilities\ScriptListener.8li

Maiane Gabriele
Inspiring
October 5, 2019

Thank you so much! This will come in hand 😛

Kukurykus
Legend
October 3, 2019

From before which date old threads of Photoshop Scripting were removed, and why?

Chuck Uebele
Community Expert
Community Expert
October 3, 2019
I don't know. Management not thinking correctly.
Kukurykus
Legend
October 3, 2019

Maybe one day someone tell us where to find: xmp_sdk