Skip to main content
davburk96
Participant
July 25, 2016
Answered

Clean listenter.jsx file on my desktop

  • July 25, 2016
  • 3 replies
  • 1285 views

Why does Photoshop CS6 put a javascript file on my desktop titled:

"cleanlistener.jsx"?

I'm running a 64 bit Windows 7 machine.

Thanks!

This topic has been closed for replies.
Correct answer JJMack

Remove all first then uncheck

3 replies

JJMack
Community Expert
JJMackCommunity ExpertCorrect answer
Community Expert
July 26, 2016

Remove all first then uncheck

JJMack
Known Participant
July 26, 2016

Thanks! This did the trick! I learn something every day!

JJMack
Community Expert
Community Expert
July 26, 2016

Photoshop CS6 should not do that.  I would think something you added to CS6 is doing that.

Use menu File>Scripts>Script Event Manager see if any event has be set to trigger when you start Photoshop. 

JJMack
Known Participant
July 26, 2016

That’s strange, because I have not added anything to CS6 that I know of. Would it help if I would reset my preferences or reinstall photoshop?

JJMack
Community Expert
Community Expert
July 26, 2016

That is use to clear the Scriptlistener log file when you start Photoshop using the script event manager..  It belongs Photoshop Folder Presets\Scripts\Event Scripts Only. It should not be on your desktop. Perhaps you accidenlyt dragged it out and dropped it on your desktop.

When You have installed the Adobe Scriptlistener Plug-in anything you do in Photoshop that can be recorded in an action will be recorded in two scriptlistener log file on is VBS Action Manager  script code the other is JavaScript Action Manager script code. On my Windows System I set the vbs log attribute to read only so its empty and is not Updated because its read only. I also hide the file so there is no icon on my desktop for it by setting its attribute system file.  The JavaScript log I control using a DOS Bat file.

@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
JJMack
Known Participant
July 26, 2016

Thanks! This is helpful!

I can delete file off my desktop, but as soon as I restart photoshop and start working again it puts that file there again.