Questions tagged [keyboard-maestro]

Keyboard Maestro is an automation software for OSX designed to add shortcuts and to launch macros.

http://www.keyboardmaestro.com/documentation/6/overview.html

43 questions
8
votes
5 answers

How do I get the name of the newest file via the Terminal?

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…
Alec
  • 9,000
  • 9
  • 39
  • 43
6
votes
2 answers

TIS/TSM non-main thread error; pygame script triggered by hotkey (rumps, pygame, keyboard)

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…
5
votes
2 answers

Identifying a DOM element without an ID value

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…
Sage
  • 49
  • 3
5
votes
1 answer

How to simulate HOLDING a keystroke in Keyboard Maestro?

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…
4
votes
1 answer

OSX: Programmatically remap Caps Lock's functionality (as set via System Preferences)?

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;…
Henrik
  • 2,421
  • 4
  • 25
  • 33
3
votes
0 answers

Send keystroke to background application on osx, with AppleScript?

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…
3
votes
2 answers

How Can I Create a RegEx Pattern that will Get N Words Using Custom Word Boundary?

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…
JMichaelTX
  • 1,659
  • 14
  • 19
3
votes
1 answer

Avoid text fields for one-key shortcuts on Keyboard Maestro

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…
2
votes
1 answer

Applescript to Map Esc to Caps Lock when tapped; Control to Caps Lock when pressed (macOS Sierra)?

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…
2
votes
1 answer

Performing a Regular Expression find-replace in nvALT

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…
2
votes
1 answer

Previously functioning 1-line Word AppleScript now throwing error

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…
kikujiro
  • 21
  • 1
2
votes
2 answers

Send email from clipboard without opening mail.app

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…
jacob
  • 810
  • 3
  • 9
  • 19
1
vote
1 answer

Regex \b followed by symbol in Keyboard Maestro

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,…
1
vote
1 answer

Keyboard Maestro. How to select a file in an "Open file" dialog?

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…
Dmitry Davydov
  • 987
  • 13
  • 21
1
vote
1 answer

Dynamically name apple script variable

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…
Jamey16
  • 21
  • 9
1
2 3