CommandPost Developer Guide
Download
User Guide
Facebook Group
Search…
Getting Started
Introduction
Installation & Setup
Lua
Lua Overview
Memory Management
Contributing
Naming Conventions
CommandPost-App
CommandPost
Control CommandPost
AppleScript
URL Handler
Command Line Tool
Plugins
Plugins Overview
Internationalisation
Translating CommandPost
Bundled Extensions
i18n
mimetypes
moses
resty
semver
slaxml
CommandPost API
cp
18n
aftereffects
app
shortcuts
app
menu
prefs
commandeditor
compressor
app
fcpxml
compoundClip
event
gap
multicamClip
multicamResource
project
resource
secondaryStoryline
title
finalcutpro
app
menu
plugins
strings
motion
app
battery
bench
resolve
app
choices
builder
List
Queue
Set
commands
command
englishKeyCodes
shortcut
builder
config
dockIconClickCallback
fileDroppedToDockIconCallback
shutdownCallback
textDroppedToDockIconCallback
history
deferred
delegator
dev
dialog
disk
docs
feedback
highland2
app
Document
Sidebar
language
languageID
localeID
region
script
idle
ids
interpolate
is
json
just
lazy
localized
pattern
plist
archiver
plistParser
plugins
env
plugin
prop
protect
rx
AsyncSubject
BehaviorSubject
CooperativeScheduler
go
Do
Done
First
Given
If
Last
List
Require
Retry
Statement
Throw
WaitUntil
ImmediateScheduler
Observable
Observer
Reference
RelaySubject
Subject
TimeoutScheduler
sourcewatcher
spec
DefaultHandler
Definition
Error
expect
Handler
Message
Report
Run
This
Scenario
Specification
TestCase
Where
strings
test
text
matcher
flicks
tools
Alert
axutils
Button
Cell
CheckBox
ColorWell
Column
ComboBox
Dialog
DisclosureTriangle
Element
ElementCache
Grid
Group
Image
List
Menu
MenuButton
notifier
Outline
Popover
PopUpButton
PropertyRow
RadioButton
RadioGroup
Row
ScrollArea
ScrollBar
SearchField
Sheet
Slider
SplitGroup
Splitter
StaticText
Table
TextArea
TextField
Toolbar
Window
utf16
be
le
watcher
block
generate
html
text
ui
xml
Bundled Plugins API
plugins
Hammerspoon API
hs
alert
appfinder
applescript
application
watcher
audiodevice
datasource
watcher
axuielement
axtextmarker
observer
base64
battery
watcher
bonjour
service
brightness
caffeinate
watcher
canvas
matrix
chooser
console
crash
deezer
dialog
color
distributednotifications
doc
builder
hsdocs
markdown
dockicon
drawing
color
eventtap
event
expose
fnutils
fs
volume
xattr
geometry
grid
hash
hid
led
hints
host
locale
hotkey
modal
http
httpserver
hsminweb
cgilua
image
inspect
ipc
itunes
javascript
json
keycodes
layout
location
geocoder
logger
math
menubar
messages
midi
milight
mjomatic
mouse
network
configuration
host
ping
echoRequest
reachability
noises
notify
osascript
pasteboard
watcher
pathwatcher
plist
redshift
screen
watcher
serial
settings
sharing
socket
udp
sound
spaces
watcher
speech
listener
spoons
spotify
spotlight
group
item
sqlite3
streamdeck
styledtext
tabs
tangent
task
timer
delayed
uielement
watcher
urlevent
usb
watcher
utf8
vox
watchable
websocket
webview
datastore
toolbar
usercontent
wifi
watcher
window
filter
highlight
layout
switcher
tiling
Powered By
GitBook
tabs
​
Place the windows of an application into tabs drawn on its titlebar
API Overview
Functions - API calls offered directly by the extension
​
enableForApp
​
​
focusTab
​
​
tabWindows
​
API Documentation
Functions
​
enableForApp
​
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
​
focusTab
​
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
​
tabWindows
​
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
Hammerspoon API - Previous
styledtext
Next - Hammerspoon API
tangent
Last modified
6mo ago
Export as PDF
Copy link
Contents
API Overview
API Documentation
Functions