{"id":13473081,"url":"https://github.com/steventheworker/applescripts","last_synced_at":"2026-03-04T05:12:47.244Z","repository":{"id":57825587,"uuid":"490854821","full_name":"steventheworker/applescripts","owner":"steventheworker","description":"This is where I keep my applescript's and BetterTouchTool configuration, and some apps/automation's I use.","archived":false,"fork":false,"pushed_at":"2023-10-05T07:44:32.000Z","size":4142,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-30T05:26:25.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"AppleScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steventheworker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-10T20:43:33.000Z","updated_at":"2024-10-01T07:31:44.000Z","dependencies_parsed_at":"2023-02-17T01:31:40.287Z","dependency_job_id":"f05ca7f3-5056-4028-9177-7e4609df7ac4","html_url":"https://github.com/steventheworker/applescripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steventheworker%2Fapplescripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steventheworker%2Fapplescripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steventheworker%2Fapplescripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steventheworker%2Fapplescripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steventheworker","download_url":"https://codeload.github.com/steventheworker/applescripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245702364,"owners_count":20658602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:01:00.597Z","updated_at":"2026-03-04T05:12:47.198Z","avatar_url":"https://github.com/steventheworker.png","language":"AppleScript","readme":"# Install\n\n[Watch on YouTube](https://www.youtube.com/channel/UCBcY4PTKNWXDXTt6RsHGRjQ/videos) (video coming soon)\n\n1. After cloning, in the \"BTT Settings\" folder, open \"triggers.bttpreset\", then replace all:\n\n\u0026nbsp; \u0026nbsp; \u0026nbsp;\"\\\\/Users\\\\/super\\\\/Desktop\\\\/important\\\\/SystemFiles\\\\/\" \u0026nbsp; --with the path you've placed the applescripts (and don't forget to add backslashes back in!)\n\n-   Note: I put all my apps in /Applications/MyApps (barring apps that came with macOS and apps that can't be moved (eg: Karabiner, Lulu, etc.)) \u0026nbsp; \u0026nbsp; --apps won't show in BTT unless you do a replace all for \"/MyApps\"\n\n2. Change APPLESCRIPTS_FOLDER in \"afterBTTLaunched.applescript\" to that same path (minus the blackslashes)\n\n3. Compile all .applescript to .scpt by running \u0026nbsp; `bash ./compile-all.sh`\n\n4. and finally, import the triggers (in \"BTT Settings\" folder) to BetterTouchTool in order to use the scripts\n\n\u0026nbsp;\n\n# BetterTouchTool bindings\n\n## Global Keyboard Shortcuts\n\n-   Autofocus textinput of many apps (eg: app store/maps/notes etc.) (With \"/\" or Cmd+/)\n-   Cmd+Shift+E (reveal in finder / open Finder path in iTerm2/terminal)\n-   Cmd+9 = switch to last space, Cmd+8 = switch to 2nd to last, Cmd 7 = switch to 3rd last\n-   Cmd+0 = zoom 100%\n-   Cmd+Option+Delete = Activity Monitor\n-   Cmd+Control+B = Connect Airpods\n-   Cmd+Option+Control+N = HTML/Network Inspector for mobile devices (Safari) (Must rename device se2020-\u003eyourdevicename)\n-   Cmd+Control+[ or ] = Move mouse left/right whole monitor in pixels\n-   Cmd+Option+LeftArrow or RightArrow = move to next/previous tab\n-   Cmd+Option+Enter = Duplicate Tab (Safari/iTerm2)\n\n### Windows™ window management: (requires [AltTab mod](https://github.com/steventheworker/alt-tab-macos/releases/download/1.3/DockAltTab.AltTab.v6.51.0.zip))\n\n🟢 (green-button-click.applescript) clicking the green button will maximize the windows or restore the old window size \u0026 position like on Windows™ (w/ exceptions eg: Finder QuickLook Preview windows)\n\nThe 🌕 cmd-m, 🔴 cmd-w, \u0026 cmd-shift-w scripts minimize/close tabs or windows WITHOUT cycling (just like on Windows™).\n\n🖱️ \"click-cmd-cycle-windows\" \u0026 \"click-shift-file-new\" \u0026nbsp; \u0026nbsp; \u0026nbsp;--holding shift/cmd while clicking a dock icon creates a new window / cycles an apps windows\n\n**\u003cu\u003eTroubleshoot\u003c/u\u003e**: if an apps tabs or popup windows aren't closing (unimplemented in the script), remap cmd+w/cmd+shift+w (for that specific app) on BTT to cmd+w w/ \"prevent recursive triggers\" checked (for default behavior). And [report it!](https://github.com/steventheworker/applescripts/issues) \u0026nbsp; \u0026nbsp; --or disable BTT with [Fn + Ctrl + Opt + Cmd + D], close the window, and use the shortcut again to reenable BTT\n\n\u0026nbsp;\n\n\u0026nbsp;\n\n## Trackpad Gestures\n\n-   Tip tap to close window (middle, index, ring, and then pinky)\n-   Corner click bottom left \u0026\u0026\u0026 2 finger tap = right click\n-   5 finger swipe left/right = move to tab previous / next tab\n-   3 finger clickswipe up / down = Trigger (AltTab) Shortcut 1 \u0026 2\n-   4 finger swipe up/down = Show/Hide (AltTab) without switching apps\n-   pinch with thumb and fingers = (Rectangle) restore default window size/position\n-   spread with thumb and fingers = (Rectangle) maximize window\n\n## Miscellaneous / Caveats\n\n-   always show spaces thumbnails in mission control\n-   show desktop: (Fn+D)\n    -   Double click menu whitespace\n    -   Move mouse to Corner (right) (peak w/ delay using sceenhook)\n-   Cmd+Shift+H = hide on some apps (VSCode/text editors)\n    -   Cmd+H = find/replace on these apps\n-   Cmd+Shift+Q = quit on some apps (so I won't accidentally quit heavy apps)\n    -   Cmd+Q will trigger Cmd+W (Safari/Xcode/few others)\n-   Multiple instances of VLC / Blender (line 1 (APP_PATH) in click-shift-file-new)\n-   Alt+Drag to move window around\n\nFinder\n\n-   Cmd+Opt+N = new file prompt\n-   Cmd+Opt+T = new blank typescript file prompt\n-   Windows navigation... Enter = Open file/app, Backspace = back arrow\n-   Cmd+I =\u003e Cmd+Opt+I \u0026nbsp; \u0026nbsp; \u0026\u0026 \u0026nbsp; \u0026nbsp; Cmd+Opt+I =\u003e Cmd+I \u0026nbsp; \u0026nbsp; (prevents multiple info popups for selected items)\n\nFirefox\n\n-   (global browser shortcut) firefox-new-cmd-shift-m.applescript opens new windows in 1st container\n-   Command + T= new tab in 1st container (cmd+shift+1 = no container)\n-   screenhook specific features are listed in its README (paraphrased below)\n\nSafari\n\n-   Command+Option+Shift+M = 2nd global browser shortcut (\"make\" new window)\n\n    \u0026nbsp;\n\n\u0026nbsp;\n\n\u0026nbsp;\n\n## \"SteviaOS\" -aka the almagamation of these files and these apps:\n\n-   required:\n    -   **[BetterTouchTool](https://folivora.ai/)** \u0026nbsp; \u0026nbsp; --most scripts don't rely much, if at all on BTT and can be rewritten to work with other automation apps (eg: [Karabiner Elements](https://github.com/pqrs-org/Karabiner-Elements) (for mouse \u0026 key bindings only))\n    -   **[scriptable AltTab](https://github.com/steventheworker/alt-tab-macos/releases/)**\n        -   (global Keyboard Shortcuts) change the behavior of cmd-shift-w, cmd-w, cmd-m (cycle macOS windows like Windows™)\n        -   (BTT trackpad gestures) 4 swipe up/down \u0026nbsp; \u0026nbsp;--displays AltTab (all/single app view)\n        -   (BTT trackpad gestures) 3 clickswipe up/down \u0026nbsp; \u0026nbsp; --displays AltTab (all/single app view) \u0026nbsp; \u0026nbsp; \u0026nbsp;... waits 250 milliseconds \u0026 triggers a switch (select 1st preview in list)\n    -   **[screenhook](https://github.com/steventheworker/screenhook)** (listen to clicks without modifers / on the corners of the screen \u0026 run applescripts when monitors are attached)\n        -   used in \"cornerRightTowards\" Desktop peak (BTT named triggers) \u0026nbsp; \u0026nbsp; --keep Desktop Exposé showing even after \"cornerRightAway\" triggers\n        -   when monitor is attached: run applescript to clean/sort desktop icons\n    -   [Rectangle](https://rectangleapp.com/) (or whatever lets you map Cmd+Opt+Enter =\u003e maximize window \u0026 Cmd+Opt+Delete =\u003e restore window size) \u0026nbsp; --used in green-button-click.applescript\n-   recommended:\n    -   [DockAltTab](https://dockalttab.netlify.app/) \u0026nbsp; / \u0026nbsp; [Dock Exposé](https://dockexpose.netlify.app/)\n    -   [safari-userscripts](https://github.com/steventheworker/safari-userscripts)\n\n## ... and these System Settings\n\n-   handled by BTT \u0026nbsp; --leaving these on messes with remapping \"Mission Control Immediately\" / all directions of 3 finger clickswipes\n\n    -   Trackpad -\u003e More Gesture -\u003e Mission Control Off\n    -   and disable 3 finger swiping between desktop\n\nNote: I don't use 3 finger drag, and don't yet know if it will interfere\n","funding_links":[],"categories":["AppleScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteventheworker%2Fapplescripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteventheworker%2Fapplescripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteventheworker%2Fapplescripts/lists"}