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

Turning on and off ScriptListener within Photoshop

Community Expert ,
Oct 02, 2019 Oct 02, 2019

Copy link to clipboard

Copied

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);

 

TOPICS
Actions and scripting

Views

1.1K

Likes

Translate

Translate

Report

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
LEGEND ,
Oct 03, 2019 Oct 03, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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
Community Expert ,
Oct 03, 2019 Oct 03, 2019

Copy link to clipboard

Copied

I don't know. Management not thinking correctly.

Likes

Translate

Translate

Report

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
LEGEND ,
Oct 03, 2019 Oct 03, 2019

Copy link to clipboard

Copied

Maybe one day someone tell us where to find: xmp_sdk

Likes

Translate

Translate

Report

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
Participant ,
Oct 05, 2019 Oct 05, 2019

Copy link to clipboard

Copied

Thank you so much! This will come in hand 😛

Likes

Translate

Translate

Report

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
Participant ,
Oct 10, 2022 Oct 10, 2022

Copy link to clipboard

Copied

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...Screenshot 2022-10-10 131443.png

Likes

Translate

Translate

Report

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
Participant ,
Oct 10, 2022 Oct 10, 2022

Copy link to clipboard

Copied

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);

Likes

Translate

Translate

Report

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
Community Expert ,
Oct 10, 2022 Oct 10, 2022

Copy link to clipboard

Copied

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

 

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

Likes

Translate

Translate

Report

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
Participant ,
Oct 11, 2022 Oct 11, 2022

Copy link to clipboard

Copied

Thank Stephen, I already tried this and still having the same issue. Also in properties I gave permissions for anything to the ScriptListener file and still not working :/. 

Likes

Translate

Translate

Report

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
Participant ,
Oct 11, 2022 Oct 11, 2022

Copy link to clipboard

Copied

By the way, I have to mention I'm using Windows 11, I didn't have this issue before with Windows 10

Likes

Translate

Translate

Report

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
Community Expert ,
Oct 11, 2022 Oct 11, 2022

Copy link to clipboard

Copied

Yea, new OS, and all sorts of little issues come up.

Likes

Translate

Translate

Report

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
Participant ,
Oct 12, 2022 Oct 12, 2022

Copy link to clipboard

Copied

This is really bad. I like Windows 11 a lot, but seems I'll have to downgrade.

Likes

Translate

Translate

Report

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
Community Expert ,
Oct 12, 2022 Oct 12, 2022

Copy link to clipboard

Copied

The problem is not with Windows 11. I have this operating system and everything works fine. Recently there was a similar topic ScriptListener not working with Photoshop 2022 on windows 10  where we checked all possible options and also could not find a solution.

Likes

Translate

Translate

Report

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
Community Expert ,
Oct 12, 2022 Oct 12, 2022

Copy link to clipboard

Copied

LATEST

I will rarely upgrade my OS, unless I get a new computer. If it ain't broke, don't fix it.

Likes

Translate

Translate

Report

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
Community Expert ,
Oct 11, 2022 Oct 11, 2022

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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