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

Scriptlistener...

New Here ,
May 02, 2017 May 02, 2017

Copy link to clipboard

Copied

Does Scriptlistener work in PS CC 2017? Yes or No.

If yes. How do I activate it? I've scoured the Adobe website and there is no documentation on this plugin that I can find.

I tried placing it into Adobe's two plugin's folders on my Mac OSX 10.12, restarted the computer etc. and no luck.

Many Thanks - David

TOPICS
Actions and scripting

Views

4.6K

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

correct answers 1 Correct answer

Advocate , May 02, 2017 May 02, 2017

I can confirm that ScriptingListener works on CC 2017. You should download the latest (available) version from Adobe, then move the file in the Photoshop CC 2017/Plug-ins/ folder and restart PS.

The ScriptListener.log file should then be saved on your Desktop.

You can switch on/off the ScriptingListener output with this code:

/* OFF */

var listenerID = stringIDToTypeID("AdobeScriptListener ScriptListener");

var keyLogID = charIDToTypeID('Log ');

var d = new ActionDescriptor;

d.putBoolean(keyLogID, fals

...

Votes

Translate

Translate
Adobe
Advocate ,
May 02, 2017 May 02, 2017

Copy link to clipboard

Copied

I can confirm that ScriptingListener works on CC 2017. You should download the latest (available) version from Adobe, then move the file in the Photoshop CC 2017/Plug-ins/ folder and restart PS.

The ScriptListener.log file should then be saved on your Desktop.

You can switch on/off the ScriptingListener output with this code:

/* OFF */

var listenerID = stringIDToTypeID("AdobeScriptListener ScriptListener");

var keyLogID = charIDToTypeID('Log ');

var d = new ActionDescriptor;

d.putBoolean(keyLogID, false);

executeAction(listenerID, d, DialogModes.NO);

/* ON */

var listenerID = stringIDToTypeID("AdobeScriptListener ScriptListener");

var keyLogID = charIDToTypeID('Log ');

var d = new ActionDescriptor;

d.putBoolean(keyLogID, true);

executeAction(listenerID, d, DialogModes.NO);

Davide Barranca

www.davidebarranca.com

Votes

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
Advocate ,
May 02, 2017 May 02, 2017

Copy link to clipboard

Copied

A few questions to the ScriptListener On/Off code:

Will the state (on or off) be retained from Photoshop session to session?

I believe to remember that ScriptListener does eat up quite a bit of performance of Photoshop. If turned Off with your code, will it still run and use performance?

Thanks in advance.

Votes

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 ,
May 02, 2017 May 02, 2017

Copy link to clipboard

Copied

You can control the plugin a bit by controlling the logs files read/write attribute.  Prevent the writing of data.  I use a windows bat file for that. Installed it always on and wants to record steps.

@Echo Off

:loop

CLS

rem Display Log File Size

Dir "%USERPROFILE%\Desktop\ScriptingListenerJS.log" /T:W /4 | find "%ScriptingListenerJS.log"

rem Display Log Attributes  R read only Locked no R log is Unlocked

Attrib "%USERPROFILE%\Desktop\ScriptingListenerJS.log"

Rem If timeout is use the above display lines will refresh over time else you need to use enter or number

CHOICE /C 123456 /N /T 300 /D 6 /M "Enter:1 to Lock, 2 to Unlock, 3 to Edit, 4 to Clear, 5 To Exit :"
Echo %ERRORLEVEL%
if %ERRORLEVEL%==6 goto timeout
if %ERRORLEVEL%==1 goto one
if %ERRORLEVEL%==2 goto two
if %ERRORLEVEL%==3 goto three
if %ERRORLEVEL%==4 goto four
if %ERRORLEVEL%==5 goto five
goto loop

:timeout

goto loop

:one

Attrib +R "%USERPROFILE%\Desktop\ScriptingListenerJS.log"
goto loop

:two

Attrib -R "%USERPROFILE%\Desktop\ScriptingListenerJS.log"
goto loop

:three

        Rem inline command use CMD independate command use start

CMD /C notepad "%USERPROFILE%\Desktop\ScriptingListenerJS.log"
remStart notepad "%USERPROFILE%\Desktop\ScriptingListenerJS.log"
goto loop

:four

        Rem If the script log file is unlocked not read only  this echo will clear it

Echo. > "%USERPROFILE%\Desktop\ScriptingListenerJS.log"
goto loop

:five

EXIT

Capture.jpg

JJMack

Votes

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
Engaged ,
Nov 26, 2018 Nov 26, 2018

Copy link to clipboard

Copied

LATEST

very cool idea

Votes

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
Advocate ,
May 02, 2017 May 02, 2017

Copy link to clipboard

Copied

Apparently the On/Off is permanent – you can reboot PS and the setting sticks.

I'm not sure about your second question: I would say that, being the logging shut off, the performance impact is negligible – but only an Adobe engineer can reply properly.

Davide

Votes

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
Advocate ,
May 02, 2017 May 02, 2017

Copy link to clipboard

Copied

Thanks, that does help quite a bit.

I will try it out when the next round of recording comes up, and see how it feels.

Votes

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
New Here ,
May 02, 2017 May 02, 2017

Copy link to clipboard

Copied

Thanks for this Davide. Is there any documentation on Scriptlistener available from Adobe? I have tons of actions. Some I would like to fine tune in Javascript. I thought using scriptlistener would be a great way to do that.

Votes

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
New Here ,
May 03, 2017 May 03, 2017

Copy link to clipboard

Copied

Thanks everyone. I found the documentation I was looking for in Chapter 4 of the "Adobe Photoshop CC 2015 Scripting Guide" in case anyone is interested.

Votes

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