documentation:Macro_Examples
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| documentation:Macro_Examples [2016/05/30 08:40] – peternlewis | documentation:Macro_Examples [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Macro Examples ====== | ||
| - | |||
| - | Here are a number of example and suggestions for Macros to give you some ideas of how you can get the most out of Keyboard Maestro and your Mac. For tips on how to remember which Hot~~Key executes which action, see the [[Tips# | ||
| - | |||
| - | ===== Launch Your Most Used Applications ===== | ||
| - | |||
| - | Use function keys to launch or switch to your most used applications. | ||
| - | |||
| - | ===== Open Your Most Used Documents ===== | ||
| - | |||
| - | Use Control-Function Keys to open your most used documents. | ||
| - | |||
| - | ===== Insert Text Templates ===== | ||
| - | |||
| - | Use Control-Letter and the [[/ | ||
| - | |||
| - | ===== Use Hot Keys to Open Financial Accounts ===== | ||
| - | |||
| - | If you keep your finances on your computer, then you probably need to open a document every time you enter a bill or receive a statement. | ||
| - | |||
| - | ===== Use Hot Keys to Connect to SSH or FTP sites ===== | ||
| - | |||
| - | You could use Hot~~Keys to connect to your common servers. You might need to create a Bookmark file for the site and use the Open File [[Macro Actions|Macro Action]]. | ||
| - | |||
| - | ===== Simulate Bookmarks ===== | ||
| - | |||
| - | Use the [[/ | ||
| - | |||
| - | If you are going to use this to enter passwords, use the Set Variable to Keychain Password action to retrieve the password so that it is not stored in plain text in the Keyboard Maestro macros. | ||
| - | |||
| - | ===== Remap Command Keys ===== | ||
| - | |||
| - | If you find yourself pressing a command key in an application and expecting it to do something but it does not work (for example, Command-T for “Replace and Find Again”), use a Macro to make the command key “do the right thing” in that application. | ||
| - | |||
| - | Keep in mind that you can do some menu key remapping in the System Preferences Keyboard preference. | ||
| - | |||
| - | ===== Simulate Missing Features ===== | ||
| - | |||
| - | If you find yourself missing a feature in one application that you are used to in another application (perhaps you switched email clients and a feature is missing), see if you can simulate the feature with a sequence of commands and then use a Hot~~Key for that. For example, Close Window, Down Arrow, Return to move to next email message, or Command-Left Arrow, Shift-Down Arrow, Command-C, Down Arrow, Command-V to duplicate a line. | ||
| - | |||
| - | ===== Swap Characters ===== | ||
| - | |||
| - | If you often type characters out of order, use a Hot~~Key to swap them by first placing the cursor between them and then executing: | ||
| - | |||
| - | * Simulate Keystroke Shift-Right Arrow | ||
| - | * Cut to Named Clipboard “Temp” | ||
| - | * Simulate Keystroke Left Arrow | ||
| - | * Paste from Named Clipboard “Temp” | ||
| - | |||
| - | ===== Save a Text Clipping ===== | ||
| - | |||
| - | If you often want to save snippets of text, you could create a Hot~~Key to save a clipping: | ||
| - | |||
| - | * Copy | ||
| - | * Open File “Clippings.rtf” | ||
| - | * Simulate Keystroke Command-Down Arrow | ||
| - | * Insert Text “== %LongDate% %ShortTime% ==< | ||
| - | * Paste | ||
| - | * Simulate Keystroke Return | ||
| - | * Simulate Keystroke Return | ||
| - | * Select Menu Item File » Save | ||
| - | * Manipulate Window Close Front Window | ||
| - | * Switch to Last Application (or Quit Specific Application or Command-Q) | ||
| - | |||
| - | ===== Delayed Click ===== | ||
| - | |||
| - | Setup a macro which simply pauses for twenty seconds and then clicks the mouse. | ||
| - | |||
| - | ===== Insert Boilerplate Text ===== | ||
| - | |||
| - | If you regularly need to insert boilerplate text (eg copyright or file creation text), use an Insert Text macro to insert the text quickly and easily. | ||
| - | |||
| - | ===== Apply Text Conversions ===== | ||
| - | |||
| - | If you are regularly translating text from one format to another in an automatic process, perhaps you can automate the whole thing with a Keyboard Maestro macro. | ||
| - | |||
| - | ===== Simulate Workspaces ===== | ||
| - | |||
| - | Create a macro to setup an application to your liking. | ||
| - | |||
| - | ===== Setup an Application When Launched ===== | ||
| - | |||
| - | If you always do a set of things every time you launch an application (eg arrange the windows in a particular way), use an application [[Macro Triggers|Macro Trigger]] to execute a Macro when you launch the application, | ||
| - | |||
| - | ===== Clean Up After Using an Application ===== | ||
| - | |||
| - | If you always do something after quitting an application (eg unmount a server or disconnect from the Internet), use an application [[Macro Triggers|Macro Trigger]] to execute a Macro when you quit the application. | ||
| - | |||
| - | ===== Launch Scanner Application When Scanner is Connected ===== | ||
| - | |||
| - | Set up a macro that automatically launches your scanner application when your scanner is connected, and quits it again when the scanner is disconnected. | ||
| - | |||
| - | ===== Switch Network Location When You Connect ===== | ||
| - | |||
| - | Set up a macro that automatically changes your Network Location when you connect to your home or work wireless network. | ||
| - | |||
| - | ===== Feedback During Macro Execution ===== | ||
| - | |||
| - | A Macro can play a System Beep, but an alternative is to use an AppleScript or shell script to speak text (AppleScript CODE{{{say " | ||
| - | |||
| - | You can also use the Alert action to display a window with specified text. This also allows you to stop the macro if you decide not to proceed. | ||
| - | |||
| - | ===== Rakesh Kumar’s PC Switcher’s Pack ===== | ||
| - | |||
| - | Rakesh Kumar has created a pack to make life easier for Windows to Mac Switchers. | ||
| - | |||
| - | Download [[http:// | ||
documentation/Macro_Examples.1464597633.txt.gz · Last modified: by peternlewis
