Turning on and off ScriptListener within Photoshop
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);

