How Do I Get The Best Answer in the Shortest Time to Questions on the KM Forum?

Tip: How Do I Get The Best Answer in the Shortest Time?


The better quality and more complete the information you post about your issue, the quicker we can give you a useful answer.

  1. Tell us your complete workflow along with your end-objective up front – do not spoon-feed it to us one post at a time -- i.e. don't waste your time or ours.
    • At the very least provide a summary of what you're doing.
      • By having a more complete picture of your task we can often suggest more efficient methods of going about it.
  2. If it's feasible – please provide the simplest possible test macro demonstrating your issue.
    • If we're not testing we're probably guessing.
    • The easier you make it for others to evaluate and test your work the more likely you'll get useful help – and this will save everyone time.
    • Actual testable macros often include fiddly details that are omitted from written descriptions, and these can often make the difference between solving a given problem and not.
  3. Show us what you want as much as possible and provide short descriptions.

Feel free to comment on this page and tell us how these instructions can be improved.

Pending Revision

First, let me say that this is one of the friendliest, most helpful forums on the Internet. We have a number of talented, experienced members who are more than willing to help. Most of the stuff below should be obvious. But to help you, we need certain critical information from you.

Keep in mind that you are asking others to give you one of their most valuable resources – their time.

So it is to your advantage to post as much info about your problem/issue as you can that will help others quickly and clearly understand your problem, and to encourage them to help you.

In your initial topic/request

To get the best results in the shortest amount of time please post the following:

For All Questions

  • Provide version numbers for Keyboard Maestro and macOS.
    • Don't guess, and don't say "latest"
    • Get from the Keyboard Maestro Editor > About menu
    • and Apple > About this Mac menu
    • Or – Use this Macro.
  • Tell us what software you're working with
  • If your workflow is complicated, then break it down into steps that you would do manually.

For Requests About Text Manipulation

  1. Your complete requirements, including your end-objective
  2. Complete real-world source text that will be representative of all cases.
  3. The source of your data, like web page, file, other app, etc.
  4. Exactly what you want the results to look like after the macro has completed.
  5. All text should be placed in a Code Block to preserve its format and characters.

For Problems With Your Macro or Script

  1. State exactly what the problem is – don't just say "it doesn't work".
  2. Provide the expected results (in text or screenshots).
  3. Provide observed results, and make clear the differences.
  4. Post/upload your script/macro (click for instructions).
    • It is important to post both macro image and file.
    • Many experienced KM users will NOT download a macro they have not seen.
    • We need the file to easily test the macro (don't make us retype stuff).

For Web Page Automation

  1. Your end-objective
  2. URL of the target web page, or HTML code of the section of the page of interest.
    • You can get the HTML by right-clicking on the web page object, "Inspect", then right-click on the major HTML element (usually <div>), "Copy Outer HTML".
  3. Screenshot of the section of the page of interest.
  4. If you need to access a number of objects on the page, then post your manual step-by-step workflow to get/do what you want.
  5. The browser you are using if it needs to be a specific browser.

For All Other Tasks

  1. Be as descriptive as possible.
  2. State your end-objective.
  3. If you have a macro you've written, Post/upload your script/macro (click for instructions) even if it doesn't work.
  4. You're more likely to get help when you make it as easy as possible for people to help you.
Are There Any Applications KM Doesn't Recognize for Application Triggers?
Rename Files in the Finder With Sorting From a Spreadsheet
Can KM9 Focus on a Dialog Box?
Is there a way to check if user is on computer/active?
How to tell if applescript succeeded?
I've been using Keyboard Maestro for 5 Years Now
Insert Text by Pasting not working. Pasting twice
Search and Replace Issue
Rename Files Using a Simple Microsoft Excel or Apple Numbers Spreadsheet or a Text Table in BBEdit
Frustrated with KM and the KM Forum – Maybe I'm Missing Something
I Want to Make a Dual Finder Macro
Keep Macro Group Palette open
Spell Check?
Trigger That Tells Me Something When Uploading Is Completed
Creating Autofill and Login for My Ticket System
AppleScript – Word DOC(X) Document to PDF - Permission Problem
Press a Button and Use the Knob
[SOLVED] I'm Looking to Do a Simple Macro Where I Pass a HoyKey Where the File Menu Drops Down
Help With IF THEN as It Relates to Time
Repeating a Keystroke at Fixed Time Intervals
Trying to Perfect a Macro in a Browser
Nth Line of a Text
Macro Is Unexpectedly Launching An Application Every Five to Ten Minutes
Found Image Macro Only Works Intermittently on macOS Ventura
Newbie Question about basic macro - Toggle "Mirror Displays" on Mac OS
Use KM to Control Shottr (A MacOS Menu Bar App)
Insert Text -- Not Expanding Tokens?
Hide Desktop Pallet, Not Menu Bar?
How Do I Copy 6 Fields of Text From an Email & Paste Into My Notes App?
How do I open a second window in terminal?
Prevent Firefox From Starting in Troubleshooting Mode When Opening With HyperKey?
How To Paste a String of Text Into Sublime Text
Macro Frequently Stops Running for Unknown Reasons
Macro Frequently Stops Running for Unknown Reasons
KM Failure Alert - Show Button on Mac
Click on One of Many Possibly Found Images
Saving to a Target Folder
Selecting From List by Number Quit Working
Creating Incremental Lettered Folders
Select Files in the Front Finder Window Based on Name Criteria
How to get a file from a link starting with file://
Keyboard Maestro Text Abbreviation Macro Not Working in User Prompt Dialogs
The Device Key Does Not Work
Mouse cursor on button when it changes colour
Toggling Multiple Sized Windows
Duplicate pasting of a macro
Loop is not working properly
Date only showing in milliseconds
Lack of information
Running different macros based on the size of a window
Convert pathname
Macros for actions in Ableton Live only work when Ableton is in full screen?
KM freezes after 'confirmation window' pops out
Trigger | Converting any key like the function of shift key
Trigger notification if macro is not running
Typing/Pasting Special Characters - %0A%0A or \n
Set Variable to [window name matching regex]
Create a variable to store which keystroke you want to type
Open Finder File with Alternate App Question
Unable to Load the Java Runtime Environment
Need Help to Create Regex to Find Duplicate Returns and Remove the Last One
Way to Resize an iOS App Running on macOS
Stream Deck / Copy URL
iMessage (Messages) text entry has space in it
Using "Pause Until" Command – but KBM Not Seeing Front Window Title
Getting Title of a Webpage and Paste It as a Link
Folder-Trigger Macro Successfully Renames a File Throws An Error
Press Button Sometimes Needs to Be Triggered Multiple Times Before It Works Solution Suggestions?
Recognize The Status of a Menu Item
Urgent: Autocheck boxes in Poshmark share to followers option
Using KM with Sibelius (music notation)
Macro That Deletes Certain Words in a Microsoft Word Document
Searching For Existing Folders
KM's `Activate a Specific Application Action` Fails to Activate Microsoft Word
Move and Resize Windows Works Sporadically, One Step at a Time
1Password and Safari, KM's 1Password Bookmark Action Not Working
Use Clipboard to Find Text in a File, Select Text and Copy It
Macro for Making Bullets and Lists Continue From Previous
Passing Variables Into a Shell Script
Renaming Files With Spaces in the Filename
Just Getting Started Looking for Help
Move Folders in the Finder to a New Location and Rename Them Using the Parent's Parent Directory Name
Logitech G604
Randomly stop working (Move or Click Mouse no unique image found)
If Then Else Setup Not Working for Me
VLC Mac Frustration – Only KM Could Possibly Help
KM Freezes?
Highlight and Copy Text Between Specific Words
Pixel Condition doesn't work
Find Image not working
Why Is One of My Prompt for User Inputs Not Working
Keyboard Maestro Editor Opens When I Trigger a Macro
[Solved] Cannot Paste From Keyboard Maestro Using StreamDeck Into Unreal Engine
Search With a Regular Expression (Containing a Substring in a Variable)
Press Button Does Not Work
IF topmost image OR topmost other image, can I click found image?
Adding Comments to Items Selected in the Finder
Button Action Works But Is Not Acknowledged by KM
Input: option 7 outputs {
KM Variable Causing Trouble with Airtable API
Translate Macro (v9.2)
Need Help Getting a RegEx Search to Work with a Variable
Replace Only the First Instance of a Substring
Getting Started Hiccups - Starting With the Create PDF of Mail Messages With Useful Names
Problem Running AppleScript for DEVONthink Pro
Replacing URLs With Display Text in Pages
Repeat Actions With Variable Value
How can I priorize one macro?
How to Open a File of a Specific File Type?
Same macro on different home/work computer
Numbers 0-9 in Macro
Macro for Saving Original Image Source From Google Search Results?
Can I Capture/Override a Key?
Loop Won't Stop
Question Mark Added to the Newly Created Folder
Click Button on Webpage and Repeat
Only want MIDI output, not the keystroke
Copying Files From Library Directory to Master Directory
KM and (Access To) Databases, Fill in Web Forms Using a Data Base Record
Prevent Macro From Running Twice?
Search and Replace Clipboard Contents Using RegEx
OCR -- User-Selected Area Macro (v9.0.1)
Can Someone Help Me Figure Out How to Separate Sentences Using RegEx?
"Action Failed to Set Attribute" (But Action Didn't Fail)
Folder Trigger Not Always Working
Macro Limit Reached. Help Please
Application opens instead of file:
Help for Logic Pro X Script
Issues with KM Engine
Help With a Macro to Connect to a Folder on an External Drive
Insert Brackets Before and After a Highlighted/Marked Text
Any Ideas Why File Exists is Not Working?
Add Clipboard Lines to a Variable
Need workaround: "Switch to application" doesn't work when KM input is on screen
Trigger when open app window?
Beginner to KM can't get Zoom button to be pushed
Best/Easiest Way to Import Spreadsheet Cells Directly to Variable Values?
Pasting Running Macro Name into Logic Pro
A Macro to Put the Selected Macro to the Clipboard?
Contextual/Dialog Menu
Contextual Computing Macros
Using KM Clipboard 1 and 2 to Name a New Folder
Macros Not Working
How to Preform a Calculation on the Day of the Month?
Markdown Link to Appended Clippings
Toggle Open/Close a Finder Window
RegEx Find/Replace in e-Sword-X Notes Files
Related to Sluggish Macros? An Outlook Delay
How to search a copied text on google as an image and paste to clipboard?
I Do Not Understand
Why Does Macro Not Run Using HotKey, But Does Run from KM Editor?
How Can I Automate Excel Using KM?
Do "Instance" Variables Work Across AppleScript to JXA?
Insert Characters Within The Text in a Variable
Text Parsing Question
Counting Copied Items in the Clipboard
Counting Copied Items in the Clipboard
Problem Filing a Message In Apple Mail
Need Help Using Xpath in a JavaScript
Move Same Prefix Files to a New Folder Named With That Prefix
Open Selected Files in the Finder with QuickTime Player
Manipulate Newly Opened Window of Preview App
Browser-Based Web-App Not Playing Well With KM
Loop Count From Clipboard
How to Automatic Data Entry From an Excel Worksheet to a Web Form
Restrict playground of a hotkey
Yet Another "Found Image Not Working" Post... (Sigh)
Is It Possible to Use a For( ) Loop in Keyboard Maestro?
How Do I Use Current Browser URL and Title To Create a WebLoc file? and How Do I Rename Forklift Files?
How Do I Use Current Browser URL and Title To Create a WebLoc file? and How Do I Rename Forklift Files?
Help to Create a Macro - List / Delimiters / Item Enumeration
Utilizing an Automator Workflow on a Designated File in the Finder
Updated to 9.1 and macro doesn't work
Change Macro Name
Applescript Help, Moving a Chrome Bookmark Link Under the Mouse to a Tab in Window 2
How Do I Resize window to 40%
Using KM to help populate a web page form with Filemaker record data
Need Macro To Display Context Menu and Select Menu Item
Copying a file name and pasting into different application
Conflict hotkey triggers
Cannot click at a location on screen
Why do "?" appear in my file names in the finder but the same text sent to drafts does not show them?
Rename the One File in a Folder the Name of Which Contains X
Keyboard Maestro Tutorials for the Uninitiated?
How Do I Move Files in Download Subfolders Up to Parent Folder?
Macro repeat 26 times only!
Trying to Sense When a Window Appears
Macro is pasting twice
Extract Email Addresses From CSV File and Complete an Action With Each?
Delete and Move
If clipboard contains number between x and y perform an action?
Auto filling password/test
Paste text on selection of 3 (or more) different variables
How Do I Know I've Reached the End of File (EOF) in a File I’m Editing with KM?
How do I program a mouse click on a floating window?
"Merge with row above" behavior
Rename Files Mystery
How Do I Download a PDF from a Web Page?
How to Move and Click a cursor on an action box?
Convert AutoHotKey script to KeyboardMaestro for Mac using existing ahk file
Automaticly fill out form in FireFox broswer
"Execute a Keystroke" for the SHIFT Key?
Get typed string to variable
How Can I Automate Sending EMails Using an Online Database as the Source?
Ahh! Can't figure out JSON parsing
Newbie question - messing up stock shortcuts?
Regex Macros Misfiring on first try, working on 2nd
Combine words
Manipulate Newly Opened Window of Preview App
New to Keyboard Maestro... would appreciate some help towards some finder file manipulation
Is it possible to merge many .html files (downloaded) into one?
Copy Function Timeouts Without Updating System Clipboard
Search web page for text (If Then Else)
Issue with pausing
Understanding KM limits with browser actions (newbie)
Insert Today's Date
Convert between Spaced String, Camel Case, Kebab Case and Snake Case
Backup to folder in finder
A little help with Search and place using RegEx
Finder Navigation to Files (excluding specifically named folders)
Regex trigger macro (not typed string)
Macro works only via "try" — no hot-keys work?
Trigger not firing unless first "run" from Maestro
Trigger not firing unless first "run" from Maestro
Trigger not firing unless first "run" from Maestro
2 screens and a Laptop- App set up
XK-24 Keyboard Mapping: Chrome tabs and Modifier Keys
Error message: "Select Menu Item failed because the menu item File > Print is disabled. Macro "trying" cancelled"
How to Search 1Password 7 and Open 1Password Mini
How to get macro to pull from excel list in descending order
Perform calculation on variable
Open several multiple urls in excel sheet(urls in different cell)
How to Select a Virtual Instrument in Logic Pro X. Is It Possible?
How to create app specific sub-menu
Search paragraph against a list of words and output display words if found
How Do I Extract URLs from Emails and Open in Selected Browser?
Need Help with Kensington Turbo Mouse Pro Buttons Running Catalina
Run a batch processor
Mass update Actions (relative to the ....) field / or default settings
How to select "x" number of items in Finder list?
Insert Dollar Sign
Filter Action (v9.0.3)
MACRO: Get List of RegEx Capture Group of Multiple Matches
How Do I Export vCards from Apple Contacts using AppleScript?
String copy and paste - web address and more
Why are Macros for QuarkXPress failing?
What is the best way to create and use class-type variables in KM?
Variable within a Named Clipboard not showing value correctly
Is Safari window zoomed?
Can not send a simple keystroke to OF3?
How Do I Replace Text with Number using RegEx?
Running a script - Clipboard as Input
Jump 30 seconds in itunes
Detecting whether SHIFT key is held down
Dates in text that become tag
Modify a current macro..get user input from popup input box?
Set Mouse Location on OCR found Text
How Do I Use KM to Copy and paste?
How Do I Ensure Menu is Enabled?
Place unruly app windows
How to Copy Columns of Data from Google Sheets into Different Clip Boards?
Detected that no more files enter to this folder
Email Attachments
Using Keyboard Maestro to Custom Move and Resize Windows
How to use pause until to deal with a variable delay when the window name is unchanged
How Can I Set KM to Find & Copy a String of Numbers in a Document
How to loop through a dropdown (and do different things per dropdown entry)
Problems With Menus in Sound Studio on Mojave
Final Cut Pro Import
Click & Drag Won't Work in the Finder
Problems Using Set Safari Field
KBM Macro for Generating iCloud Share Link
Send a File via Email with a Hot Key?
Copying an Image from a Profile Web Page
Microsoft Remote Desktop
Reveal Finder files with multiple criteria
Storing a RegEx Pattern in a Variable
I Want to Trigger a Macro in One of These Two Situations
Move All Items in a Folder to Another Folder
Keep both files when moving a file to a folder
Deactivate Macro group Not working
Is there a way to check if user is on computer/active?
Error on Trying to a Execute JavaScript Function (Defined in HTML of the Page) in Chrome
How Do I Create Variables From Clipboard in Order to Generate a Report Using a Database (Airtable) and Ulysses?
'Get Info' for folders on multiple drives
Create Multiple Folders Based on List/Text-File
How Can I Delete All Files From a Folder Using a Macro?
Regex else-if help
Getting Started with Keyboard Maestro and the Forum
Possible? Move Mouse Pointer to Colour Highlight?
Name Folder From Clipboard
Copy & Paste from Excel Cells to Individual Clipboards
How Do I Record Macro to Capture Hot Key Trigger?
Can't enter hotkey anymore
Activate and Hide Apps by the Same Keyboard Shortcut
Inserting text
How Can I Move a Message in Spark Mail from My Inbox to a Folder?
Task failed with status -1
If statements with OR operator
Help With Automating Email to Calendar Event With Email URL - Clipboard Issues
Wish list: an extensible multi-level ladder of 'type a keystroke' action, with an optional pause after each action
Found Image Not Finding in Front Window in Google Chrome
Inserting text with incremental numbers
Rotate My Left Screen 270°
Search dates and amounts
Automating Apple Pages Formatting Tasks?
Markdown Hashtags to Todoist Task
Viết thuê luận án tiến sĩ bảo hiểm hàng hóa đường biển quốc tế
Copy paragraph from web with heading, link, and date-time
Can I Create Macros for Inserting Date and Time?
Open terminal app in iTerm and if open bring to front
How to Save a Selection of Variables Like Presets
Automating Salesforce Opp/Quote Creation
Outlook macro help for a beginner needed
Print Dialogbox
Macro stop after a certain number or cycles
Copying individual files to another folder
Comparing one variable to a list of others
How Do I Extract Multiple Addresses from eBay Sales email to a Spreadsheet?
Trying to Automate Student Notes -- Transferring data from a Google Chrome Web-Form to Microsoft Excel
Sort Based on Matching Filename to (Dynamic) Subfolder Name?
Renaming multiple files with strings
Activating particular terminal window
How to delete a file marked as "delete"
Change multiple macros/actions
Executing actions on non-focused widows
Icon for keyboard maestro on iMac dock
Safari and Chrome Click Link Action
Parse CSV (Comma Separated Values) Line [Example]
Macro to Print Test Page
How Can I better Organize, Manage, and Select my Macro Groups?
How Can I Use the Clipboard to Help Rename Files?
Select menu item from context menu?
Spotlight General Purpose Search (macOS)
Resize Window on Application Launch Fails to Run
Found Image Not Working, Alternative Solution or Fix?
Where is action Selector?
Find Image Doesn't Work
Trying to Figure Out RegEx Execution
Quickly Add ALL Menu Items From a Given Application
Unzip with Bandizip
How to Trigger the Return Key or Enter Key?
Shell Script Won't End
KM Authorization "Automation" in Security & Privacy


  • Show more, tell less.
  • Give a sample of your input data,
  • and show your desired output.