Simple rename in Adobe Bridge

I am attempting to recreate a simple rename hotkey like the Enter key in macOS Finder to rename files in Adobe Bridge.

At the moment Bridge only offers a shortcut to Batch Rename or renaming through right click. I would like to have a shortcut that allows me to rename one individual file.

Using Keyboard Maestro I attempted to trigger the contextual menu the following script, which does not work in Bridge:

tell application "System Events" to set frontApp to name of first process whose frontmost is true

tell application "System Events"
	tell application process frontApp
		set _selection to value of attribute "AXFocusedUIElement"
		tell _selection to perform action "AXShowMenu"
	end tell

end tell

I imagine Bridge uses a different string to open the contextual menu? Any help much appreciated.

GUI scripting (using System Events) works only with Cocoa apps. I think, Adobe Bridge is not Cocoa application. So, to open contextual menu, you need some mouse tool to perform right click at some position of screen…

You can check if some frontmost app is Cocoa app, this simple way:


tell application "System Events"
	set frontApp to name of first process whose frontmost is true
	tell process frontApp to set isCocoaApp to exists UI elements
end tell

return {frontApp:frontApp, isCocoaApp:isCocoaApp}

NOTE: I have not Adobe Bridge installed on my Mac to test