Because it is a dynamic menu, the menu is probably not being generated by the Finder until it is open.
Try either:
or
You might need a pause between the two macros to allow the menu to appear and be populated.
Because it is a dynamic menu, the menu is probably not being generated by the Finder until it is open.
Try either:
or
You might need a pause between the two macros to allow the menu to appear and be populated.