Inquiry About Consistency of Command IDs in Photoshop API

Dear Photoshop Development Team,

I hope this message finds you well.

I’m exploring the Photoshop API, specifically the require('photoshop').performMenuCommand() functionality. Through debugging, I’ve observed that menu actions trigger commands with numeric IDs (e.g., 101 for certain undo, 1170 for opening the Actions panel, etc.).

Could you kindly clarify whether these Command IDs remain consistent across:

  1. Different devices (macOS/Windows), and
  2. Different Photoshop versions?

This information would be invaluable for ensuring reliable integrations. Thank you for your time and support.

Best regards,

From what I know the ids remain the same and unchanged in the versions of photoshop.
The values ​​that change are those with a negative value such as:
-20013.

(post deleted by author)

Your clarification aligns with my observations—that plugin-related menu items (including built-in plugins like Blur filters) use negative Command IDs , while native Photoshop functions use positive ones. This insight is greatly appreciated!!!

1 Like

Even positive IDs may change
Read this post how Adobe completely unnecessarily changed Select > Subject command ID without any warning:

1 Like

I prefer select menu item instead and with string id. It can be recorded as action.

Could you elaborate? :face_with_monocle: