Macro definition

In the Macro Editor you can organise your macros within a folder hierarchy and in more complex scenarios you are likely to use folders to contain specific sets of macros.

However, in this simple example we are going to define four macros at the highest level, rather than create a sub-folder.

The macros will be used to close the application and switch between the Basic, Scientific and Programmer modes and so it makes sense to call the macros by these names.

Use the Add Macro button to add the four macros and name appropriately:

For the three mode changing tasks we simply need to add the appropriate key sequence needed to invoke the calculator mode

For this we use the Add Action button and select the Perform Keystroke action as follows:


This will add the Perform Keystroke action into the Macro Action list:


to define the keystroke sequence you simply select Set Keystrokes... and type the keystroke sequence on the keyboard:


The macro is now listed as:

In this simple example only one action is required. A macro can contain any number of action or nested macros (sets of actions held in macros).

This is repeated for all three modes, defining Command +1, +2 and +3.

Finally, we are also going to use a macro to close the application.

For this we select the 'Close'  macro, Add action button, select 'Quit Application'  and select Calculator on the Finder window:

We have now defined the four macros needed to switch the Calculator modes and quit the application.