manual:Preferences
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| manual:Preferences [2020/08/18 01:29] – [Safari Browser Used in Actions & Tokens] JMichaelTX | manual:Preferences [2024/07/16 12:10] (current) – [Browser Used in Actions & Tokens] peternlewis | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| To configure Keyboard~~Maestro, | To configure Keyboard~~Maestro, | ||
| - | {{ preferencesgeneral.png? | + | {{ preferencesgeneral.png? |
| The preferences are divided into sections. | The preferences are divided into sections. | ||
| Line 15: | Line 15: | ||
| * Show or hide the [[Applications_Palette|Applications Palette]]. | * Show or hide the [[Applications_Palette|Applications Palette]]. | ||
| * configure whether to detect clipboards that resemble passwords and obscure them. | * configure whether to detect clipboards that resemble passwords and obscure them. | ||
| - | * configure the light/dark appearance (v9.0+, OS X 10.14+). | + | * configure the light/dark appearance (macOS 10.14+). |
| * configure the default text size used in various places. | * configure the default text size used in various places. | ||
| * configure whether and how to show the status menu. | * configure whether and how to show the status menu. | ||
| * configure the style of the status menu. | * configure the style of the status menu. | ||
| + | * configure whether to include macro icons in the status menu. | ||
| * configure whether to include pasting clipboards in the status menu. | * configure whether to include pasting clipboards in the status menu. | ||
| * configure whether to include applications in the status menu. | * configure whether to include applications in the status menu. | ||
| Line 73: | Line 74: | ||
| You can paste an image into a Named~~Clipboard by selecting it in the list and pasting an image (if you select part of the text, it will paste the image into the styled text, which works but is probably not what you want). | You can paste an image into a Named~~Clipboard by selecting it in the list and pasting an image (if you select part of the text, it will paste the image into the styled text, which works but is probably not what you want). | ||
| - | |||
| - | You can also inspect variables and other values in the [[Windows# | ||
| ===== Variables Preferences ===== | ===== Variables Preferences ===== | ||
| Line 80: | Line 79: | ||
| In the [[Windows# | In the [[Windows# | ||
| - | You do not need to create variables, just using them and giving them a value is all that is required for them to spring into existence. | + | You do not need to create variables, just using them and giving them a value is all that is required for them to spring into existence. |
| + | |||
| + | You can also inspect variables and other values in the [[Windows# | ||
| ===== Excluded Preferences ===== | ===== Excluded Preferences ===== | ||
| Line 89: | Line 90: | ||
| You can also add and remove applications from the clipboard history exclusion list. When an excluded application is at the front, Keyboard Maestro will not automatically record the clipboard history each time it changes. | You can also add and remove applications from the clipboard history exclusion list. When an excluded application is at the front, Keyboard Maestro will not automatically record the clipboard history each time it changes. | ||
| + | |||
| + | ===== Security Preferences ===== | ||
| + | |||
| + | Keyboard Maestro is designed to act on your behalf and to do many things for you - essentially acting as you in performing tasks. As such, it needs a wide variety of security permissions to perform these tasks. | ||
| + | |||
| + | This preference panel aims to summarise the important preferences and allow you to explicitly request them as needed. | ||
| ===== Preferences Set by Command Line ===== | ===== Preferences Set by Command Line ===== | ||
| - | You can configure various preferences using defaults write from the Mac OS X Terminal. | + | You can configure various preferences using defaults write from the Mac OS X Terminal. |
| ==== Editor ==== | ==== Editor ==== | ||
| Line 142: | Line 149: | ||
| <code bash> | <code bash> | ||
| defaults write com.stairways.keyboardmaestro.editor Font-Normal -string " | defaults write com.stairways.keyboardmaestro.editor Font-Normal -string " | ||
| + | defaults write com.stairways.keyboardmaestro.editor Font-Fixed -string " | ||
| defaults write com.stairways.keyboardmaestro.editor Font-Shell -string " | defaults write com.stairways.keyboardmaestro.editor Font-Shell -string " | ||
| defaults write com.stairways.keyboardmaestro.editor Font-AppleScript -string " | defaults write com.stairways.keyboardmaestro.editor Font-AppleScript -string " | ||
| Line 156: | Line 164: | ||
| ==== Clipboard ==== | ==== Clipboard ==== | ||
| - | You can set the maximum number of items in the clipboard history | + | If you wish to effectively disable the Keyboard Maestro Clipboard History, you can do so by setting the history size to zero, and then Keyboard Maestro will only read the clipboard when you explicitly ask it to use the clipboard. |
| + | |||
| + | You can set the following preferences for the Clipboard History | ||
| + | |||
| + | **Maximum Number of Items** | ||
| <code bash> | <code bash> | ||
| Line 162: | Line 174: | ||
| </ | </ | ||
| - | You can set the maximum clipboard flavor size (default 100MB) | + | If you set the max number of items to zero, then the Copy action will fail. |
| + | |||
| + | **Maximum Clipboard Flavor Size** | ||
| <code bash> | <code bash> | ||
| Line 168: | Line 182: | ||
| </ | </ | ||
| - | You can set the maximum position | + | **Multiple Clipboard Separator** (default Return) |
| + | |||
| + | The separator added if you paste multiple items from the Clipboard Switcher | ||
| + | |||
| + | <code bash> | ||
| + | defaults write com.stairways.keyboardmaestro.engine MultipleClipboardSeparator " and " | ||
| + | </ | ||
| + | |||
| + | **Ignored Clipboard Flavors** | ||
| + | |||
| + | You can add additional clipboard flavors to be ignored using: | ||
| + | |||
| + | <code bash> | ||
| + | defaults write com.stairways.keyboardmaestro.engine ExtraIgnoredClipboardFlavors " | ||
| + | </ | ||
| + | |||
| + | The string should be a bar (`|`) separated list of flavors | ||
| + | |||
| + | You can also write to `IgnoredClipboardFlavors`, | ||
| + | |||
| + | **Maximum Position of Concealed (Password) Items** | ||
| <code bash> | <code bash> | ||
| Line 174: | Line 208: | ||
| </ | </ | ||
| - | You can set a regular expression which matches text you think should | + | **Regular Expression Which Matches Text You Think Should |
| <code bash> | <code bash> | ||
| Line 181: | Line 215: | ||
| </ | </ | ||
| - | Microsoft applications include a PDF flavor with every copy, and starting up the PDF rendering engine is slow, making the first copy after launching a Microsoft application. | + | **Include Microsoft PDFs in Clipboards** |
| + | |||
| + | Microsoft applications include a PDF flavor with every copy, and starting up the PDF rendering engine is slow, making the first copy after launching a Microsoft application. | ||
| <code bash> | <code bash> | ||
| Line 187: | Line 223: | ||
| </ | </ | ||
| - | Microsoft applications also include flavors for every possible image format with every copy. Keyboard Maestro | + | **Include Microsoft Image Formats** |
| + | |||
| + | Microsoft applications also include flavors for every possible image format with every copy. Keyboard Maestro excludes secondary image flavors like BMP when there is a PNG or TIFF flavor available. | ||
| <code bash> | <code bash> | ||
| Line 193: | Line 231: | ||
| </ | </ | ||
| - | ==== AppleScript ==== | + | ==== AppleScript |
| You can set the command line tool that is used to execute AppleScripts | You can set the command line tool that is used to execute AppleScripts | ||
| Line 201: | Line 239: | ||
| </ | </ | ||
| - | ==== Safari | + | ==== Browser Used in Actions & Tokens ==== |
| **Change which Safari-based Browser will be targeted by the " | **Change which Safari-based Browser will be targeted by the " | ||
| - | These preferences change AppleScript Application name that is used to control the respective browser in the form of CODE{{{tell application "< | + | These preferences change |
| - | You can Safari-based Browser targeted in Actions, etc, as well as the name of the Safari browser shown in applications: | + | You can configure which Safari-based Browser |
| <code bash> | <code bash> | ||
| Line 214: | Line 252: | ||
| </ | </ | ||
| - | or | + | **Change which Chrome-based Browser will be targeted by the various Keyboard Maestro " |
| + | |||
| + | :!: Note: By using the [[token: | ||
| <code bash> | <code bash> | ||
| - | defaults write com.stairways.keyboardmaestro.engine | + | # ~~~ For Brave Browser ~~~ |
| - | </ | + | defaults write com.stairways.keyboardmaestro.engine |
| + | defaults write com.stairways.keyboardmaestro.engine BrowserGoogleChromeName -string "Brave Browser" | ||
| - | ==== Chrome | + | # ~~~For |
| - | + | ||
| - | Change which Chrome-based Browser will be targeted by the various Keyboard Maestro " | + | |
| - | + | ||
| - | <code bash> | + | |
| defaults write com.stairways.keyboardmaestro.engine AppleScriptGoogleChromeBundleID -string " | defaults write com.stairways.keyboardmaestro.engine AppleScriptGoogleChromeBundleID -string " | ||
| defaults write com.stairways.keyboardmaestro.engine BrowserGoogleChromeName -string " | defaults write com.stairways.keyboardmaestro.engine BrowserGoogleChromeName -string " | ||
| Line 232: | Line 269: | ||
| <code bash> | <code bash> | ||
| + | # ~~~ Restore to Google Chrome ~~~ | ||
| defaults delete com.stairways.keyboardmaestro.engine AppleScriptGoogleChromeBundleID | defaults delete com.stairways.keyboardmaestro.engine AppleScriptGoogleChromeBundleID | ||
| defaults delete com.stairways.keyboardmaestro.engine BrowserGoogleChromeName | defaults delete com.stairways.keyboardmaestro.engine BrowserGoogleChromeName | ||
| </ | </ | ||
| + | **Add additional Browsers to the Front Browser Actions, Tokens, and Functions.** | ||
| + | The current list of browsers supported in Keyboard Maestro as a potential front browser include: | ||
| + | |||
| + | * com.apple.Safari | ||
| + | * com.apple.SafariTechnologyPreview | ||
| + | * com.google.Chrome | ||
| + | * com.google.Chrome.canary | ||
| + | * com.brave.Browser | ||
| + | * com.brave.Browser.beta | ||
| + | * com.vivaldi.Vivaldi | ||
| + | * com.vivaldi.Vivaldi.snapshot | ||
| + | * com.microsoft.edgemac | ||
| + | |||
| + | Plus whatever browser is specified as the Safari or GoogleChrome above. | ||
| + | |||
| + | You can add additional browsers supported as the Front Browser by including their bundle IDs in the `AdditionalWebBrowserBundleIDs` preference. You can list as many as you like, separated by spaces or commas. | ||
| + | |||
| + | <code bash> | ||
| + | defaults write com.stairways.keyboardmaestro.engine AdditionalWebBrowserBundleIDs -string " | ||
| + | </ | ||
| + | |||
| + | :!: Note: if the bundle ID includes “safari”, | ||
| + | |||
| + | ==== Tokens ==== | ||
| + | |||
| + | Tokens are limited to 0.9 seconds in execution time, and are executed somewhat asynchronously in Ventura and later. You can control this with: | ||
| + | |||
| + | <code bash> | ||
| + | defaults write com.stairways.keyboardmaestro.engine TokenTimeout -float 0.9 | ||
| + | defaults write com.stairways.keyboardmaestro.engine ForceSynchronousTokens -bool YES | ||
| + | </ | ||
| ==== Engine Animation ==== | ==== Engine Animation ==== | ||
| Line 246: | Line 315: | ||
| </ | </ | ||
| - | ==== Typed String | + | ==== Typed String ==== |
| - | You can disable Shift-Space from clearing the Typed String buffer | + | You can disable Shift-Space from clearing the Typed String buffer |
| <code bash> | <code bash> | ||
| Line 254: | Line 323: | ||
| </ | </ | ||
| - | and you can disable clicks from clearing the Typed String buffer | + | and you can disable clicks from clearing the Typed String buffer |
| <code bash> | <code bash> | ||
| Line 260: | Line 329: | ||
| </ | </ | ||
| - | and you can set the idle time for clearing the Typed String buffer (default 5 seconds) | + | and you can set the idle time for clearing the Typed String buffer (default 5 seconds) |
| <code bash> | <code bash> | ||
| defaults write com.stairways.keyboardmaestro.engine TypedStringClearTime -float 5.0 | defaults write com.stairways.keyboardmaestro.engine TypedStringClearTime -float 5.0 | ||
| </ | </ | ||
| + | |||
| + | You can disable modifiers taps in the Typed String buffer with: | ||
| + | |||
| + | <code bash> | ||
| + | defaults write com.stairways.keyboardmaestro.engine AllowModifiersInTypedStrings -bool NO | ||
| + | </ | ||
| + | |||
| ==== Use Unicode for Keystrokes ==== | ==== Use Unicode for Keystrokes ==== | ||
| Line 288: | Line 364: | ||
| defaults write com.stairways.keyboardmaestro.engine MaxTapUpTime -float 1.0 | defaults write com.stairways.keyboardmaestro.engine MaxTapUpTime -float 1.0 | ||
| </ | </ | ||
| + | |||
| + | The default allowable down time is the double click interval, and the default allowable up time is twice the double click interval. | ||
| ==== Sounds ==== | ==== Sounds ==== | ||
| Line 329: | Line 407: | ||
| </ | </ | ||
| - | The default allowable down time is the double click interval, and the default allowable up time is twice the double click interval. | + | ==== Status Menu ==== |
| You can set configure whether the Status Menu includes the Paste submenu and how many items it includes with: | You can set configure whether the Status Menu includes the Paste submenu and how many items it includes with: | ||
| Line 338: | Line 416: | ||
| </ | </ | ||
| - | You can set configure Display Large text color and display period with: | + | ==== Display Large Text ==== |
| + | |||
| + | You can set configure Display Large Text color and display period with: | ||
| <code bash> | <code bash> | ||
| Line 370: | Line 450: | ||
| defaults write com.stairways.keyboardmaestro.engine ReportUpdatesWhenEditorActivates -bool YES | defaults write com.stairways.keyboardmaestro.engine ReportUpdatesWhenEditorActivates -bool YES | ||
| </ | </ | ||
| + | |||
| + | ==== Prompt With List Show All Limit ==== | ||
| + | |||
| + | |||
| + | You can set the limit for the maximum number of items shown by default in the [[action: | ||
| + | |||
| + | <code bash> | ||
| + | defaults write com.stairways.keyboardmaestro.engine PromptWithListShowAllLimit -int 100 | ||
| + | </ | ||
| + | |||
| + | When there is more items than this in the list, by default the action will not show the items as the list may be too long to be practical. | ||
| ==== WebKit Inspector for HTML Prompt ==== | ==== WebKit Inspector for HTML Prompt ==== | ||
| Line 391: | Line 482: | ||
| The style includes 3 or 6 HSB colors (being background, text, highlighted letter, selected background, selected text, selected highlight letter) each specified as hue, | The style includes 3 or 6 HSB colors (being background, text, highlighted letter, selected background, selected text, selected highlight letter) each specified as hue, | ||
| - | Alternatively | + | Alternatively, |
| { | { | ||
| Line 430: | Line 521: | ||
| }' | }' | ||
| - | NoteL the “-string” is important - otherwise the `defaults` command will interpret the JSON itself and that will not work. | + | Note that the “-string” is important - otherwise the `defaults` command will interpret the JSON itself and that will not work. |
manual/Preferences.1597714184.txt.gz · Last modified: by JMichaelTX
