This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
manual:Preferences [2020/08/17 21:30] JMichaelTX [Chrome Browser Used in Actions & Tokens] |
manual:Preferences [2020/08/17 21:53] JMichaelTX [Chrome Browser Used in Actions & Tokens] |
||
---|---|---|---|
Line 193: | Line 193: | ||
</code> | </code> | ||
- | ==== AppleScript ==== | + | ==== AppleScript OSA Command ==== |
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 222: | Line 222: | ||
==== Chrome Browser Used in Actions & Tokens ==== | ==== Chrome Browser Used in Actions & Tokens ==== | ||
- | **Change which Chrome-based Browser will be targeted by the various Keyboard Maestro "Chrome" Actions, Tokens, and Functions.** | + | **Change which Chrome-based Browser will be targeted by the various Keyboard Maestro "[[token:ChromeTitle|Chrome Related]]" Actions, Tokens, and Functions.** |
+ | |||
+ | :!: Note: By using the [[token:FrontBrowserTitle|FrontBrowser Related]] Tokens, Actions, and Functions, you may not need to change the below. Just use these _FrontBrowser_ entities and whatever Browser is currently (or most recently) frontmost will be targeted. This includes all Safari-based Browsers and Chrome-based Browsers. | ||
<code bash> | <code bash> | ||
+ | # ~~~ For Brave Browser ~~~ | ||
+ | defaults write com.stairways.keyboardmaestro.engine AppleScriptGoogleChromeBundleID -string "com.brave.Browser" | ||
+ | defaults write com.stairways.keyboardmaestro.engine BrowserGoogleChromeName -string "Brave Browser" | ||
+ | |||
+ | # ~~~For Chrome Canary ~~~ | ||
defaults write com.stairways.keyboardmaestro.engine AppleScriptGoogleChromeBundleID -string "com.google.Chrome.canary" | defaults write com.stairways.keyboardmaestro.engine AppleScriptGoogleChromeBundleID -string "com.google.Chrome.canary" | ||
defaults write com.stairways.keyboardmaestro.engine BrowserGoogleChromeName -string "Chrome Canary" | defaults write com.stairways.keyboardmaestro.engine BrowserGoogleChromeName -string "Chrome Canary" | ||
Line 232: | Line 239: | ||
<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 |