Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
41 lines (33 loc) · 2.9 KB

hs.tabs.md

File metadata and controls

41 lines (33 loc) · 2.9 KB

docs » hs.tabs


Place the windows of an application into tabs drawn on its titlebar

API Overview

API Documentation

Functions

Signature hs.tabs.enableForApp(app)
Type Function
Description Places all the windows of an app into one place and tab them
Parameters
  • app - An hs.application object or the app title
Returns
  • None
Signature hs.tabs.focusTab(app, num)
Type Function
Description Focuses a specific tab of an app
Parameters
  • app - An hs.application object previously enabled for tabbing
  • num - A tab number to switch to
Returns
  • None
Notes
  • If num is higher than the number of tabs, the last tab will be focussed
Signature hs.tabs.tabWindows(app)
Type Function
Description Gets a list of the tabs of a window
Parameters
  • app - An hs.application object
Returns
  • An array of the tabbed windows of an app in the same order as they would be tabbed
Notes
  • This function can be used when writing tab switchers