Skip to main content
Participant
December 4, 2007
Question

Cleaning the Script Menu in Photoshop

  • December 4, 2007
  • 5 replies
  • 1183 views
Is there a way to clean the script menu in Photoshop? I'm launching most of my scripts from shortcuts on my Wacom Tablet and from Windows Explorer, and everytime I do one of those two options, since I'm not launching the script from the script menu, it adds a copy of the script name to the menu, thinking it's a new script. Is there a way to clean that menu, to tell it to show only the scripts in the scripts file and not every single script I launch from Windows Explorer or shortcuts?

Because now I can't use the script menu anymore because there are too many things. Every script is the at least 10 times and the list is now twice as long as my screen.
This topic has been closed for replies.

5 replies

Participant
May 21, 2008
I'm having the same problem, but with scripts edited in the ExtendScript toolkit. It's not just a question of multiple names -- the different names actually execute different verions of the script!
Known Participant
May 21, 2008
Scripts edited in ESTK and run with ESTK as the target app stay in ESTK until
you restart ESTK. The JS interpreter is ESTK is persistent across script
invocations. Bridge operates the same way, unless you #target different
interpreters.

In PS, if you have a script in Presets/Scripts and start PS, it will stay in the
File->Scripts menu until you restart PS. It will stay in the menu even if you
delete the file from disk but will not execute if it is selected. The JS
interpreter is PS recreated for each new script invocation.

On situation in which two scripts with the same name can occur in the Script
menu is if you have two scripts with the same name in two different folders
under the Presets/Scripts folder.

One other possibility (that I haven't verified) in CS3 is if you have one script
in app.path + '/Presets/Scripts' (the 'normal' scripts folder) and another in
Folder.userData + '/Adobe/Adobe Photoshop CS3/Presets/Scripts'. This Presets
folder is where user-specific mods to Presets tree should be located. I have
scripts that have to run as far back as CS so I haven't had to worry about this yet.


-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
Known Participant
May 21, 2008
But, back to your original question, No, PS does not cache scripts anywhere.

-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
Participant
December 4, 2007
Hi Paul,

I guess it's my pc having problems then. I'm using CS2, like you do on your laptop, so that's pretty weird. Anyways, they're supposed to update my pc soon at the office, so I guess I'll just have to be patient until then.

Thank you for that information!
Paul Riggott
Inspiring
December 4, 2007
Very strange Julien, I have PSCS3 with a wacom on the main PC and using shortcuts/Explorer does not add the script name to any menu. Same goes for my laptop that is running PSCS2, nothing is added to any menu; so can't suggest anything.

Paul.
Participant
December 4, 2007
It's not a Wacom problem. Activating it with the Wacom tablet only launches the script as if I had opened it by double clicking it in Windows Explorer. All it does is a link to the file.

So it's a problem with Photoshop that adds every script we launch from Windows Explorer to it's scripts list without looking for doubles or giving us the possibility to remove the unwanted ones. Isn't there a file in application data or something that we could simply delete to get that list back to zero so it would automatically reload it's list from it's own scripts folder?
Paul Riggott
Inspiring
December 4, 2007
Sounds as if its a Wacom problem not Photoshop Julien.
I wonder if you have had a look at Timo's ScriptRunner.jsx ?
at http://www.aim-dtp.net/aim/photoshop/jsx/index.htm
It might do as a replacement to what you are using?

Paul.