documentation:Macros
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:Macros [2016/05/26 06:57] – peternlewis | documentation:Macros [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Macros ====== | ||
| - | |||
| - | [[Macros]], also known as Shortcuts, are a way of improving your productivity by allowing you to perform repetitive or frequently required actions more quickly and accurately, tailoring your Mac to your usage patterns. | ||
| - | |||
| - | A macro consists of a set of zero or more possible [[Macro Triggers]] which define when the macro will be executed, together with an ordered list of [[Macro Actions]] to be performed. | ||
| - | |||
| - | A typical simple Macro consists of a single [[/ | ||
| - | |||
| - | To create a Macro, first launch Keyboard~~Maestro, | ||
| - | |||
| - | {{ macroeditor.png? | ||
| - | |||
| - | Enter the name of your new Macro (you can skip this and it will be named for you based on the action you select). | ||
| - | |||
| - | You can create a new trigger by clicking on the green `⊕` button. | ||
| - | |||
| - | You can add a new action by clicking the `New Action` button or the `+` button at the bottom of the macro detail view to display the list of actions or by choosing *Insert Action By Name* from the *Edit* menu or choosing *Insert Action* from the *Edit* menu. There are many [[Macro Actions]] to choose from. The actions you include will be executed in order. | ||
| - | |||
| - | An easy way to generate macro actions is to turn on recording by clicking the `Record` button at the bottom of the macro detail view and proceeding to show Keyboard~~Maestro what you want to do. Then turn recording back off and look through the actions. | ||
| - | |||
| - | Macros are continuously saved, so the macro is live as soon as it is created. | ||
| - | |||
| - | You can select a macro by clicking on the `⌘` button to select a recently triggered macro or click the `◷` button to select from recently modified macros. | ||
| - | |||
| - | You execute a macro’s action sequence by triggering the macro using any of the Macro~~Triggers you have defined. | ||
| - | |||
| - | You can share a macro to the Keyboard Maestro Forum, or to a friend via Mail or Messages using the sharing button at the top of the [[Windows# | ||
| - | |||
| - | You can also trigger macros by name using the [[/ | ||
| - | |||
| - | You can trigger a macro using the kmtrigger: scheme with a URL like `kmtrigger:// | ||
| - | |||
| - | If the web server is enabled for remote access, you can trigger a macro remotely after logging in using a web browser or the Keyboard Maestro Control iPhone application. | ||
| - | |||
| - | You can also trigger a macro using AppleScript or another scripting language (select the “Or by script” entry to display script code in various languages such as AppleScript or Perl). | ||
| - | |||
| - | Note that the web server needs to be separately enabled in the [[Windows# | ||
| - | |||
| - | You can disable or enable a macro by selecting it and clicking the `✓` button at the bottom of the Macros list. You can also disable or enable a Macro using the Set Macro Enable action, or from AppleScript with: | ||
| - | |||
| - | <code applescript> | ||
| - | tell application " | ||
| - | setMacroEnable "Macro Name or UID" with/ | ||
| - | end tell | ||
| - | </ | ||
| - | |||
| - | You can start editing a Macro or Macro Group from AppleScript with: | ||
| - | |||
| - | <code applescript> | ||
| - | tell application " | ||
| - | editMacro "Macro Group Name or UID" | ||
| - | end tell | ||
| - | </ | ||
| - | |||
| - | See also the [[Macro Groups]], [[Macro Actions]], [[Macro Triggers]] and [[Recording]] sections. | ||
documentation/Macros.1464245843.txt.gz · Last modified: by peternlewis
