To finish recording and save a macro, select File > Macro > Stop Recording.

Alternatively, click the
(Stop Recording) toolbar button.
This action is only available if a macro is currently recording or is paused.
The macro file that you had named in the previous step will contain the Java code that maps to the actions you carried out while the recorder was active.