Skip to content

steventheworker/alt-tab-macos

Folders and files

NameName
Last commit message
Last commit date
Mar 30, 2025
Apr 9, 2025
Apr 9, 2025
Mar 10, 2020
Apr 5, 2025
Apr 5, 2025
Apr 5, 2025
Apr 5, 2025
Apr 29, 2025
Feb 15, 2025
Oct 31, 2024
Oct 10, 2024
Jan 3, 2025
Oct 10, 2024
Apr 9, 2025
Oct 27, 2023
Apr 15, 2025
Oct 15, 2019
Oct 10, 2024
Oct 10, 2024
Apr 9, 2025
Apr 9, 2025
Apr 9, 2025
Jul 30, 2020
Feb 16, 2021
Apr 1, 2025
Aug 27, 2019
Nov 6, 2023
Apr 5, 2025
Apr 17, 2024
Sep 25, 2023
Oct 27, 2023
Dec 24, 2024

Repository files navigation

"scriptable" branch of lwouis/alt-tab-macos

Download: AltTab-scriptable-1.94.0.zip

Made for use with DockAltTab (adds window previews to the MacOS dock)... it does so by sending AppleScript commands to AltTab.

basic commands

  • hide: Hide Overlay/UI.
  • show: Show all app windows. (Regular AltTab shortcut)
  • showApp: Show specific app's windows. (ignores blacklist)
    • appBID: The bundle identifier of the app whose windows you want to show.
    • x: X-coordinate (optional)
    • y: Y-coordinate (optional)
    • dockPos: (optional) Helps AltTab know where previews will be positioned / clip, (especially for docks on the right (preview 'panel' width is relevant))
  • trigger: Goes to the next window, without showing Overlay/UI.
Miscellaneous / DockAltTab commands

Miscellaneous / DockAltTab commands

  • appSetting: Read settings applied on showApp previews.
    • named: Name of the setting. (appsToShow, showHiddenWindows, showFullscreenWindows, showMinimizedWindows, spacesToShow, screensToShow, showTabsAsWindows)
  • countMinimizedWindowsCurrentSpace: The number of (minimized) windows for an app (FROM the current space, especially useful for keeping minimized windows contained in the space they were originally minimized in).
    • appBID
  • countWindows: The number of windows for an app (in all spaces).
    • appBID
  • countWindowsCurrentSpace: The number of windows for an app (in the current space, especially useful for counting hidden windows (otherwise especially hard to do for the current space)).
    • appBID
  • deminimizeFirstMinimizedWindowFromCurrentSpace: Deminimize app's first minimized window originally minimized on the current space.
    • appBID
  • keyState: Whether a certain key is being pressed (see if AltTab overlay is absorbing modifier keys)
    • key: Name of the key you want to check the state of.
  • thumbnailPreview: show focuspreview/targetpreview
    • ...

example usages:

tell application "AltTab" to showApp appBID "com.apple.Safari"

tell application "AltTab" to showApp appBID "com.apple.Safari" x 0 y 0

tell application "AltTab" to hide

Other Differences

Some other changes I made out of personal preference / hesitation to submit a pull request:

  • ignore some app's windows
  • Preview button order: Exit is 1st, Quit is last (opposed to vice-versa)
  • faster fading (if fading enabled): 111ms for DockAltTab previews, 333ms for regular previews
  • auto reopen controls after closing window (allows click spam to repeat close window quickly)

Contributing

How to build AltTab on Xcode --this youtube video shows how to build the official AltTab from lwouis (but this branch has been normalized to be able to build on m-series/apple silicon, so this may not be necessary)