upcas.blogg.se

Hotkey to close all windows
Hotkey to close all windows











That said, my preferred method for running AppleScript scripts with a keyboard shortcut, is to use a third-party application named FastScripts, however you can also use Automator with a Run AppleScript action as a Service/Quick Action and assign it a keyboard shortcut in: System Preferences > Keyboard > Shortcuts > Services scrpt file with a keyboard shortcut, that is probably the easiest way to go to trigger the code. Since you already have BetterTouchTool and assuming it can run AppleScript code or an AppleScript. "Google Chrome" whose index is not equal to 1 to true Set miniaturized of windows of application ¬ The following example AppleScript code will minimize all but the front window in Google Chrome: tell application "System Events" to ¬ When I replace "Safari" with "Google Chrome" in the script, and try to run it from Script Editor, I get the error Script error: Google Chrome got an error: Can’t make miniaturized of every window whose index ≠ 1 into type specifier.

hotkey to close all windows

Set miniaturized of (windows whose index is not 1) to true This question asks the same thing (except specifically for Safari), and a user suggests the AppleScript tell application "Safari"

hotkey to close all windows

This question asks the same thing, but the answers are not bindable to a simple keyboard shortcut as far as I can tell. I also use Better Touch Tool, in case it is easier to go through that app. I've never bound a new shortcut, but I suspect I could figure it out once I have a working AppleScript for the task. (Sort of like ⌘ + ⌥ + h, which translates to "hide all applications except the current application".)

hotkey to close all windows

I'm looking to bind a keyboard shortcut to the action "minimize all windows from the current application except the current window." (The app in question is always Google Chrome.)













Hotkey to close all windows