Add the following class method to any class. It is best to do this specifically for this purpose and upload it to new images:
Workspace WorldMenuItem class -> menuCommandOn: aBuilder
menuCommandOn: aBuilder <worldMenu> (aBuilder item: #'Workspace') order: 0.1; label: 'Workspace'; action: [ Workspace open ]
The interesting part is the <worldMenu> pragma. You usually place it immediately after the selector (and comment) and before any other method element.
To see an example of using Open Finder, select Pragmas mode and search for worldMenu (without angle brackets).
source share