I'm trying to create a macro for Keyboard Maestro for OS X doing the following:
Get name of newest file in a directory on my disk based on date created;
Paste the text "newest file: " plus the name of the newest file.
One of its options is to…
I'm writing a python app, whose main purpose is to run a minigame (using the 'pygame' library), whenever I use a hotkey (which currently uses the 'keyboard' library). I want this hotkey to be recognized universally, so I'm packaging the whole thing…
I regularly use a web app from Invisalign® to set up orthodontic cases. I use Keyboard Maestro to make keyboard shortcuts within the app by activating JavaScript.
An example of the JavaScript triggered by keyboard…
Using Keyboard Maestro 5, I want to be able to simulate holding a specific key for a specific amount of time for one of my macros. I am not sure if this is currently possible, and I have yet to find a work around. Any help would be appreciated in…
My question is referring to the System Preferences setting that enables you to remap Caps Lock to e.g. Ctrl key.
^ Is it possible to affect this setting programmatically?
Primarily I'd be interested achieving this via defaults or some shell trick;…
Im looking to send a key press to a background application using AppleScript modules within a keyboard maestro macro. I would like one module to send key down to app and another module to release the key to background application.
I have tried…
I need a RegEx pattern that will return the first N words using a custom word boundary that is the normal RegEx white space (\s) plus punctuation like .,;:!?-*_
EDIT #1: Thanks for all your comments.
To be clear:
I'd like to set the characters…
I'm a big fan of Gmail-like shortcuts, where you don't need to hold shift or command to actually make good use of it. Pocket and Reeder also have such, give it a shot if you don't know what I mean.
Keyboard Maestro allows to create one-key…
I am well aware of karabiner-elements which is still in development to enable this key mapping in macOS Sierra. However, at the current moment it doesn't work.
My thought is that if I map Caps Lock to Control in Preferences/Keyboard/Modifier Keys…
I'm using Keyboard Maestro on my Mac to perform a regex find-replace in an nvALT document.
The Keyboard Maestro part of it is not that complicated. It just copies selected text from nvALT, performs the find-replace, and then pastes the text.
I can…
I have been using the following script in Keyboard Maestro to promote/demote paras in Word (for various reasons it works better than a straight custom-keyboard shortcut).
tell application "Microsoft Word"
outline demote (paragraphs of…
I searched for how to send email without opening apple mail, and found the question AppleScript - How to send a email without the mail app opening up
However, I'm doing this with Keyboard maestro, so that I can send a specific email using a hot key…
I'm sure there's a really simple answer to this, but I can't find it!
In Keyboard Maestro, I'm trying to set the trigger as a regular expression of semicolon followed by one of a few characters, like this:
;[.,\s]
When I put it like that, it works,…
I want to automate search by an image using Google's image search. I was able to automate saving screenshot to a file and opening a page with Google image search. And now I want to select the saved file in the "Choose file" dialog.
How can I…
Let me preface this by saying that I know that I can easily do the following using a calculated Apple Script from Filemaker. I'd really love to know how to accomplish this inside an Apple Script. I'm trying to set variables into a macro program…