Skip to main content
dev_willis
Inspiring
June 12, 2021
Answered

Why does PS keep changing my keyboard shortcut?

  • June 12, 2021
  • 2 replies
  • 1836 views

I extended the "Load Files into Stack" script to do some extra processing on bracketed photos and I assigned a keyboard shortcut to it. I can assign the shortcut and save it to my custom set without any issues and it works fine for the remainder of the time PS is open. However, if I close PS and open it again, whatever shortcut I have set gets reassigned to the "Load Files into Stack" script that I forked. I've tried a variety of different shortcuts and it happens with all of them.

 

It seems like more than coincidence that it's the script I forked that the shortcut is reassigned to. My best guess is that there's something in the script I needed to change when I forked it, like perhaps this `eventid` element in the comments at the top.

 

Here it is in the original script:

// BEGIN__HARVEST_EXCEPTION_ZSTRING

<javascriptresource>
<name>$$$/JavaScripts/LoadFilesintoStack/Menu=Load Files into Stack...</name>
<eventid>6F17BFA7-EFC8-40EA-B850-7B95ED8EA713</eventid>
</javascriptresource>

// END__HARVEST_EXCEPTION_ZSTRING

 Here it is in my script:

// BEGIN__HARVEST_EXCEPTION_ZSTRING
<javascriptresource>
<name>$$$/JavaScripts/LoadAEBImages/Menu=Load AEB Images...</name>
<eventid>6F17BFA7-EFC8-40EA-B850-7B95ED8EA713</eventid>
</javascriptresource>
// END__HARVEST_EXCEPTION_ZSTRING

 

You can see that those event IDs are the same. I don't know where or how this ID gets generated or what event it's dealing with so I just left it alone. Could that be the culprit? If so, can I just arbitrarily change it? I haven't actually tried changing it because I don't really like to mess with things I don't understand without doing some research first. 

 

If anyone has any insight into this they'd be willing to share I'd sure appreciate it.

 

Thanks!

This topic has been closed for replies.
Correct answer r-bin
Yes, it's about ID.
If you look in the Keyboard Shortcuts.psp file, you will see that for scripts with IDs, not the filename, but this ID is used.
 
 
You ended up with two identical IDs. When you restart, the key is assigned to the first available menu.
 
Change any character in your new ID or remove this line.

2 replies

r-binCorrect answer
Legend
June 13, 2021
Yes, it's about ID.
If you look in the Keyboard Shortcuts.psp file, you will see that for scripts with IDs, not the filename, but this ID is used.
 
 
You ended up with two identical IDs. When you restart, the key is assigned to the first available menu.
 
Change any character in your new ID or remove this line.
dev_willis
Inspiring
June 13, 2021

That did the trick. Thanks!

Kukurykus
Legend
June 12, 2021

Probably you mean something else as my shortcut assigned to mentioned script does not disappear after relaunching Photoshop. Does it happens with other scripts? Maybe reset your preferences and try again?

dev_willis
Inspiring
June 13, 2021

No, I mean what I said. I think you may have misunderstood me tho. The shortcut doesn't disappear from the "Load Files into Stack" script, it appears on it after I have assigned it to my script. This is the only custom script I've written so I can't say if it would happen with any others.

Kukurykus
Legend
June 13, 2021

Now I am sure I don't understand. It's too complex for me to get it from above description.