This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- user input (name of magic keybord and magic mouse: system preferences > bluetooth) | |
set keyboard to "Magic Keyboard" | |
set mouse to "Magic Mouse 2" | |
set warn_if_lower_than_percent to 74 | |
-- end of user input | |
set aa to do shell script "system_profiler SPBluetoothDataType | grep '" & keyboard & "\\|Connected'" | |
set apple_std to text item delimiters | |
set text item delimiters to {keyboard, ":"} | |
set aa_list to aa's text items |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- user options | |
set KillWindows_User to {"app1", "app2"} | |
set KillWindows_with_window to {"BCompare", "app2"} | |
set display_dialog_if_magic_mouse_or_magic_keyboard_connected to "on" -- "on" or "off" | |
set keyboard to "Magic Keyboard" -- name of magic keybord: system preferences > bluetooth | |
set mouse to "Magic Mouse 2" -- name of magic mouse: system preferences > bluetooth | |
-- end of user options | |
----------------------------------------------- | |
-- s23.6 - supported: TextMate | |
-- s23.5 - supported: FreeFileSync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- user input (name of magic keybord and magic mouse: system preferences > bluetooth) | |
set keyboard to "Magic Keyboard" | |
set mouse to "Magic Mouse 2" | |
-- end of user input | |
set aa to do shell script "system_profiler SPBluetoothDataType | grep '" & keyboard & "\\|Connected'" | |
set apple_std to text item delimiters | |
set text item delimiters to {keyboard, ":"} | |
set aa_list to aa's text items |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- user input (name of magic keybord and magic mouse: system preferences > bluetooth) | |
set keyboard to "Magic Keyboard" | |
set mouse to "Magic Mouse 2" | |
-- end of user input | |
set aa to do shell script "system_profiler SPBluetoothDataType | grep '" & keyboard & "\\|Connected'" | |
set apple_std to text item delimiters | |
set text item delimiters to ":" | |
set aa_list to aa's text items |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- user input (name of magic keybord and magic mouse: system preferences > bluetooth) | |
set keyboard to "Magic Keyboard" | |
set mouse to "Magic Mouse 2" | |
-- end of user input | |
set aa to do shell script "system_profiler SPBluetoothDataType | grep '" & keyboard & "\\|Connected'" | |
set apple_std to text item delimiters | |
set text item delimiters to ":" | |
set aa_list to aa's text items |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- user options | |
set KillWindows_User to {"app1", "app2"} | |
set KillWindows_with_window to {"BCompare", "app2"} | |
set display_dialog_if_magic_mouse_or_magic_keyboard_connected to "on" -- "on" or "off" | |
set keyboard to "Magic Keyboard" -- name of magic keybord: system preferences > bluetooth | |
set mouse to "Magic Mouse 2" -- name of magic mouse: system preferences > bluetooth | |
-- end of user options | |
----------------------------------------------- | |
-- s23.6 - supported: TextMate | |
-- s23.5 - supported: FreeFileSync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- user options | |
set KillWindows_User to {"app1", "app2"} | |
set KillWindows_with_window to {"BCompare", "app2"} | |
-- end of user options | |
----------------------------------------------- | |
-- s23.6 - supported: TextMate | |
-- s23.5 - supported: FreeFileSync | |
-- s23.4 - fixed: closing windows of Finder on Mac Catalina, hang caused by some apps | improved: killing apps listed in KillWindows_User | |
-- s23.3 - supported: Audacity | |
-- s23.2 - supported: wine-preloader, wine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "title": "disable mouse click", | |
"rules": [ | |
{ | |
"description": "disable mouse click", | |
"manipulators": [ | |
{ | |
"from": { | |
"pointing_button": "button3" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "title": "disable key", | |
"rules": [ | |
{ | |
"description": "disable key", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_shift" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- user options ---------------------------------------------- | |
set file_name to "untitled" | |
set file_name_with_current_date_time to "on" -- "on" or "off | |
set extension to ".txt" | |
-- end of user options --------------------------------------- | |
tell application "Finder" | |
activate |