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

Execute javascript on a specific Google Chrome tab

I'm running this javascript to click a link through my Chrome browser document.getElementById('extractResults').click(); It's clicking fine, until I navigate away from the browser tab or window. Any insights into how to execute the action even…
Jeff O'Bryant
  • 21
  • 1
  • 4
1
vote
1 answer

Keyboard Maestro Bash CURL Script Works Without Variable But Not With One

all. I have tried to research this issue on this forum and elsewhere online. I am stumped. Hoping someone can help. I'm having a problem using Keyboard Maestro to send JSON to the Zendesk API to add users to groups. I'm doing it via CURL in a Bash…
Marc
  • 45
  • 1
  • 9
1
vote
1 answer

Passing KeyboardMaestro's variable to Python script

I need to create a variable with some values, and give the value to the python script one liner (python -c "...") to process the variable, and get it back into the same or other variables. How can I do that with Keyboard Maestro?
prosseek
  • 182,215
  • 215
  • 566
  • 871
1
vote
2 answers

Formatting regular expression output (for Keyboard maestro).

I have a keyboard macro tool (keyboard maestro) that returns current date in %NumberDate% variable; it contains a string "3/31/15" for March 31, 2015. The tool supports regular expression, so using the regular expression, I need to transform this…
prosseek
  • 182,215
  • 215
  • 566
  • 871
1
vote
1 answer

Use Keyboard Maestro to move the cursor one space forward

In ST3 (OS X) I use shift+space to move the cursor one space forward, i.e. with something like: { "keys": ["shift+space"], "command": "move", "args": {"by": "characters", "forward": true} }, I find myself wanting to use this in other…
merry
  • 25
  • 4
1
vote
2 answers

Regex Find and Replace: Deleting everything except words starting with "#"?

I'm a novice at regex and can't find a way to do this easily. I'd like to delete every word that isn't starting with # and put a comma between them, so for example if I have: Cookie Recipe for n00bs #cookie #recipe #chocolate To do this you have to…
drbernardi
  • 35
  • 2
  • 4
1
vote
0 answers

How can non-Cocoa applications know when to rebuild menu bar?

My application (Keyboard Maestro) reads other applications menus via the accessibility API (eg AXUIElementCopyAttributeValue for kAXMenuBarAttribute et al). This works fine for normal Mac Cocoa application, their menus are automatically kept up to…
Peter N Lewis
  • 17,664
  • 2
  • 43
  • 56
0
votes
0 answers

How i can fix this error "unknown encoding cp65001 at C:/program files/Schrodinger line 86

When i try to execute a task in software ''Schrodinger Maestro'' i get the following error "unknown encoding cp65001 at C:/program files/Schrodinger line 86. (see screenshot) I tried to reinstall the software but i got the same error. I'm using…
0
votes
1 answer

Swift: copy file item to clipboard simulate Finder, only working for Finder

MacOS: 13.0 (22A380) swift: import Cocoa private func copyToClipBoard() { let pasteboard = NSPasteboard.general var emptyArray = [NSURL]() emptyArray.append(NSURL(fileURLWithPath: "/some-file-exist/test")) …
Zheng Xiaodong
  • 143
  • 3
  • 9
0
votes
2 answers

Wait google chrome all downloads finshed with shell command

Every day I need to download a lot of pictures in a row through the Google plugin, concentrated in a few minutes. So I want to have a script that can clearly let me know that the download tasks currently in progress by Google have all been…
Xiang Chen
  • 31
  • 12
0
votes
0 answers

MacOS Cocoa Detect When Keyboard Macro Program Presses Modifier Keys

I am working on a third-party plugin in a host application (Finale). My plugin can tell Finale to create any number of menu options in its designated menu. My plugin can then fish them out and rearrange that menu after Finale has finished building…
rpatters1
  • 382
  • 1
  • 11
0
votes
1 answer

How to open selected file in finder with quik look

I am making a script for processing receipts and would like to be able to select a file than trigger a keyboard maestro applescript action that opens the selected file in quicklook than on a different area of the screen run the script below so that…
sealfab
  • 489
  • 2
  • 6
  • 10
0
votes
1 answer

Automating a form: Form error, Uncaught TypeError: Cannot read property ‘value’ of null

I am trying to automate a form but i get an error. Uncaught TypeError: Cannot read property 'value' of null This is the JS code. var elemFound = SingleNodeForXPath( searchTitle ); var result = elemFound.value; #### Uncaught TypeError: Cannot read…
0
votes
2 answers

Show/hide Finder, and create new window if none exist via AppleScript

I'd like to create an AppleScript to trigger via key command in Keyboard Maestro that allows me to toggle showing or hiding the Finder window(s) directly. And if when toggling to show the Finder, if there are no existing windows, create one and open…
jondkinney
  • 85
  • 1
  • 8
0
votes
1 answer

How to activate Cascading Dropdown auto-selection using pure javascript

I'm trying to select a dropdown item via an Execute Javascript macro inside Keyboard Maestro. The code works to select and validate the dropdown item, but in the page I use this with, there are other dropdowns that should auto-populate based on the…
ZebraMan
  • 21
  • 6