Skip to content

Instantly share code, notes, and snippets.

@undavide
Created June 25, 2015 11:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save undavide/c1849b3ff918a7d4c32b to your computer and use it in GitHub Desktop.
Save undavide/c1849b3ff918a7d4c32b to your computer and use it in GitHub Desktop.
Toggle ScriptingListener Logging
// Credits: Tom Ruark
// Switch OFF ScriptingListener output
var listenerID = stringIDToTypeID("AdobeScriptListener ScriptListener");
var keyLogID = charIDToTypeID('Log ');
var d = new ActionDescriptor;
d.putBoolean(keyLogID, false);
executeAction(listenerID, d, DialogModes.NO);
// Switch ON ScriptingListener output
var listenerID = stringIDToTypeID("AdobeScriptListener ScriptListener");
var keyLogID = charIDToTypeID('Log ');
var d = new ActionDescriptor;
d.putBoolean(keyLogID, true);
executeAction(listenerID, d, DialogModes.NO);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment