diff --git a/SUMMARY.md b/SUMMARY.md index 0c9c75d..5782865 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -43,6 +43,9 @@ * [cp](api/cp/cp.md) * [18n](api/cp/cp.18n.md) + * [aftereffects](api/cp/cp.adobe.aftereffects.md) + * [app](api/cp/cp.adobe.aftereffects.app.md) + * [shortcuts](api/cp/cp.adobe.aftereffects.shortcuts.md) * [app](api/cp/cp.app.md) * [menu](api/cp/cp.app.menu.md) * [prefs](api/cp/cp.app.prefs.md) @@ -334,7 +337,11 @@ ## Bundled Plugins API * [plugins](api/plugins/index.md) - * [tangent](api/plugins/plugins.colorfinale.tangent.md) + * [manager](api/plugins/plugins.aftereffects.application.manager.md) + * [effects](api/plugins/plugins.aftereffects.effects.md) + * [preferences](api/plugins/plugins.aftereffects.preferences.md) + * [shortcuts](api/plugins/plugins.aftereffects.shortcuts.md) + * [manager](api/plugins/plugins.aftereffects.tangent.manager.md) * [manager](api/plugins/plugins.compressor.application.manager.md) * [bugreport](api/plugins/plugins.compressor.feedback.bugreport.md) * [media](api/plugins/plugins.compressor.watchfolders.panels.media.md) @@ -365,9 +372,8 @@ * [userguide](api/plugins/plugins.core.helpandsupport.userguide.md) * [language](api/plugins/plugins.core.language.md) * [prefs](api/plugins/plugins.core.loupedeck.prefs.md) - * [changeapplications](api/plugins/plugins.core.loupedeckct.changeapplications.md) - * [manager](api/plugins/plugins.core.loupedeckct.manager.md) - * [prefs](api/plugins/plugins.core.loupedeckct.prefs.md) + * [manager](api/plugins/plugins.core.loupedeckctandlive.manager.md) + * [prefs](api/plugins/plugins.core.loupedeckctandlive.prefs.md) * [prefs](api/plugins/plugins.core.loupedeckplus.prefs.md) * [manager](api/plugins/plugins.core.menu.manager.md) * [section](api/plugins/plugins.core.menu.manager.section.md) @@ -393,23 +399,16 @@ * [prefs](api/plugins/plugins.core.shortcuts.prefs.md) * [manager](api/plugins/plugins.core.streamdeck.manager.md) * [prefs](api/plugins/plugins.core.streamdeck.prefs.md) - * [commandpost](api/plugins/plugins.core.tangent.commandpost.md) - * [favourites](api/plugins/plugins.core.tangent.commandpost.favourites.md) - * [functions](api/plugins/plugins.core.tangent.commandpost.functions.md) * [manager](api/plugins/plugins.core.tangent.manager.md) * [action](api/plugins/plugins.core.tangent.manager.action.md) * [binding](api/plugins/plugins.core.tangent.manager.binding.md) + * [connection](api/plugins/plugins.core.tangent.manager.connection.md) * [controls](api/plugins/plugins.core.tangent.manager.controls.md) * [group](api/plugins/plugins.core.tangent.manager.group.md) * [menu](api/plugins/plugins.core.tangent.manager.menu.md) * [mode](api/plugins/plugins.core.tangent.manager.mode.md) * [named](api/plugins/plugins.core.tangent.manager.named.md) * [parameter](api/plugins/plugins.core.tangent.manager.parameter.md) - * [os](api/plugins/plugins.core.tangent.os.md) - * [display](api/plugins/plugins.core.tangent.os.display.md) - * [pasteboard](api/plugins/plugins.core.tangent.os.pasteboard.md) - * [sound](api/plugins/plugins.core.tangent.os.sound.md) - * [window](api/plugins/plugins.core.tangent.os.window.md) * [prefs](api/plugins/plugins.core.tangent.prefs.md) * [manager](api/plugins/plugins.core.toolbox.manager.md) * [caffeinate](api/plugins/plugins.core.tools.caffeinate.md) @@ -429,6 +428,7 @@ * [panel](api/plugins/plugins.core.watchfolders.manager.panel.md) * [menuitem](api/plugins/plugins.core.watchfolders.menuitem.md) * [manager](api/plugins/plugins.diskutility.application.manager.md) + * [manager](api/plugins/plugins.ecammlive.application.manager.md) * [custom](api/plugins/plugins.finalcutpro.actions.custom.md) * [backupinterval](api/plugins/plugins.finalcutpro.advanced.backupinterval.md) * [disablewaveforms](api/plugins/plugins.finalcutpro.advanced.disablewaveforms.md) @@ -510,15 +510,21 @@ * [audio](api/plugins/plugins.finalcutpro.tangent.audio.md) * [browser](api/plugins/plugins.finalcutpro.tangent.browser.md) * [clip](api/plugins/plugins.finalcutpro.tangent.clip.md) - * [commandpost](api/plugins/plugins.finalcutpro.tangent.commandpost.md) + * [color](api/plugins/plugins.finalcutpro.tangent.color.md) + * [functions](api/plugins/plugins.finalcutpro.tangent.commandpost.functions.md) * [common](api/plugins/plugins.finalcutpro.tangent.common.md) * [edit](api/plugins/plugins.finalcutpro.tangent.edit.md) + * [features](api/plugins/plugins.finalcutpro.tangent.features.md) * [generator](api/plugins/plugins.finalcutpro.tangent.generator.md) * [info](api/plugins/plugins.finalcutpro.tangent.info.md) * [manager](api/plugins/plugins.finalcutpro.tangent.manager.md) - * [modes](api/plugins/plugins.finalcutpro.tangent.modes.md) * [new](api/plugins/plugins.finalcutpro.tangent.new.md) * [open](api/plugins/plugins.finalcutpro.tangent.open.md) + * [os](api/plugins/plugins.finalcutpro.tangent.os.md) + * [display](api/plugins/plugins.finalcutpro.tangent.os.display.md) + * [pasteboard](api/plugins/plugins.finalcutpro.tangent.os.pasteboard.md) + * [sound](api/plugins/plugins.finalcutpro.tangent.os.sound.md) + * [window](api/plugins/plugins.finalcutpro.tangent.os.window.md) * [overlay](api/plugins/plugins.finalcutpro.tangent.overlay.md) * [pasteboard](api/plugins/plugins.finalcutpro.tangent.pasteboard.md) * [playback](api/plugins/plugins.finalcutpro.tangent.playback.md) @@ -586,6 +592,8 @@ * [manager](api/plugins/plugins.motion.application.manager.md) * [bugreport](api/plugins/plugins.motion.feedback.bugreport.md) * [manager](api/plugins/plugins.resolve.application.manager.md) + * [emulation === ](api/plugins/plugins.resolve.tangent.emulation === .md) + * [manager](api/plugins/plugins.resolve.tangent.manager.md) * [manager](api/plugins/plugins.skype.application.manager.md) * [shortcuts](api/plugins/plugins.skype.shortcuts.md) * [manager](api/plugins/plugins.systempreferences.application.manager.md) @@ -603,7 +611,9 @@ * [audiodevice](api/hs/hs.audiodevice.md) * [datasource](api/hs/hs.audiodevice.datasource.md) * [watcher](api/hs/hs.audiodevice.watcher.md) - * [audiounit](api/hs/hs.audiounit.md) + * [axuielement](api/hs/hs.axuielement.md) + * [axtextmarker](api/hs/hs.axuielement.axtextmarker.md) + * [observer](api/hs/hs.axuielement.observer.md) * [base64](api/hs/hs.base64.md) * [battery](api/hs/hs.battery.md) * [watcher](api/hs/hs.battery.watcher.md) @@ -691,6 +701,7 @@ * [socket](api/hs/hs.socket.md) * [udp](api/hs/hs.socket.udp.md) * [sound](api/hs/hs.sound.md) + * [spaces](api/hs/hs.spaces.md) * [watcher](api/hs/hs.spaces.watcher.md) * [speech](api/hs/hs.speech.md) * [listener](api/hs/hs.speech.listener.md) diff --git a/api/cp/cp.adobe.aftereffects.app.md b/api/cp/cp.adobe.aftereffects.app.md new file mode 100644 index 0000000..d3c6d19 --- /dev/null +++ b/api/cp/cp.adobe.aftereffects.app.md @@ -0,0 +1,19 @@ +# [docs](index.md) » cp.adobe.aftereffects.app +--- + +The `cp.app` for Adobe After Effects. + +## API Overview +* Constants - Useful values which cannot be changed + * [app](#app) + +## API Documentation + +### Constants + +#### [app](#app) +| **Signature** | `cp.adobe.aftereffects.app ` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | The `cp.app` for After Effects. | + diff --git a/api/cp/cp.adobe.aftereffects.md b/api/cp/cp.adobe.aftereffects.md new file mode 100644 index 0000000..e8cb734 --- /dev/null +++ b/api/cp/cp.adobe.aftereffects.md @@ -0,0 +1,80 @@ +# [docs](index.md) » cp.adobe.aftereffects +--- + +Adobe After Effects Extension + +## Submodules + * [cp.adobe.aftereffects.app](cp.adobe.aftereffects.app.md) + * [cp.adobe.aftereffects.shortcuts](cp.adobe.aftereffects.shortcuts.md) + +## API Overview +* Constants - Useful values which cannot be changed + * [preferences](#preferences) +* Functions - API calls offered directly by the extension + * [allowScriptsToWriteFilesAndAccessNetwork](#allowscriptstowritefilesandaccessnetwork) + * [preferencesFilePath](#preferencesfilepath) + * [preferencesPath](#preferencespath) + * [refreshPreferences](#refreshpreferences) + * [shortcutsPreferences](#shortcutspreferences) + * [shortcutsPreferencesPath](#shortcutspreferencespath) + +## API Documentation + +### Constants + +#### [preferences](#preferences) +| **Signature** | `cp.adobe.aftereffects.preferences ` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | The `cp.app.prefs` for After Effects. | + +### Functions + +#### [allowScriptsToWriteFilesAndAccessNetwork](#allowscriptstowritefilesandaccessnetwork) +| **Signature** | `cp.adobe.aftereffects:allowScriptsToWriteFilesAndAccessNetwork() -> boolean` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Is "Allow Scripts to Write Files and Access Network" enabled in After Effects Preferences? | +| **Parameters** | | +| **Returns** | | + +#### [preferencesFilePath](#preferencesfilepath) +| **Signature** | `cp.adobe.aftereffects:preferencesFilePath() -> string` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | The path to the main Preferences file. | +| **Parameters** | | +| **Returns** | | + +#### [preferencesPath](#preferencespath) +| **Signature** | `cp.adobe.aftereffects:preferencesPath() -> string | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | The path to After Effects Preferences folder. | +| **Parameters** | | +| **Returns** | | + +#### [refreshPreferences](#refreshpreferences) +| **Signature** | `cp.adobe.aftereffects:refreshPreferences() -> none` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | If After Effects is running, this forces the preferences file to be saved to disk. | +| **Parameters** | | +| **Returns** | | + +#### [shortcutsPreferences](#shortcutspreferences) +| **Signature** | `cp.adobe.aftereffects:shortcutsPreferences() -> table` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Gets a table of all the active After Effects keyboard shortcuts. | +| **Parameters** | | +| **Returns** | | + +#### [shortcutsPreferencesPath](#shortcutspreferencespath) +| **Signature** | `cp.adobe.aftereffects:shortcutsPreferencesPath() -> string` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Gets the active shortcut key preferences file path. | +| **Parameters** | | +| **Returns** | | + diff --git a/api/cp/cp.adobe.aftereffects.shortcuts.md b/api/cp/cp.adobe.aftereffects.shortcuts.md new file mode 100644 index 0000000..c360f28 --- /dev/null +++ b/api/cp/cp.adobe.aftereffects.shortcuts.md @@ -0,0 +1,33 @@ +# [docs](index.md) » cp.adobe.aftereffects.shortcuts +--- + +Translations between After Effects shortcuts and Hammerspoon-friendly shortcuts. + +## API Overview +* Constants - Useful values which cannot be changed + * [keys](#keys) + * [labels](#labels) + * [modifiers](#modifiers) + +## API Documentation + +### Constants + +#### [keys](#keys) +| **Signature** | `cp.adobe.aftereffects.shortcuts.keys -> table` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | Table containing key translations. | + +#### [labels](#labels) +| **Signature** | `cp.adobe.aftereffects.shortcuts.labels -> table` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | Table containing label translations. | + +#### [modifiers](#modifiers) +| **Signature** | `cp.adobe.aftereffects.shortcuts.modifiers -> table` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | Table containing modifier translations. | + diff --git a/api/cp/cp.apple.finalcutpro.inspector.color.CorrectionsBar.md b/api/cp/cp.apple.finalcutpro.inspector.color.CorrectionsBar.md index f8d7c2b..b75c233 100644 --- a/api/cp/cp.apple.finalcutpro.inspector.color.CorrectionsBar.md +++ b/api/cp/cp.apple.finalcutpro.inspector.color.CorrectionsBar.md @@ -15,6 +15,7 @@ Requires Final Cut Pro 10.4 or later. * Methods - API calls which can only be made on an object returned by a constructor * [activate](#activate) * [add](#add) + * [doActivate](#doactivate) * [doShow](#doshow) * [findCorrectionLabel](#findcorrectionlabel) * [show](#show) @@ -56,12 +57,12 @@ Requires Final Cut Pro 10.4 or later. ### Methods #### [activate](#activate) -| **Signature** | `cp.apple.finalcutpro.inspector.color.CorrectionsBar:activate(correctionType, number) -> cp.rx.go.Statement` | +| **Signature** | `cp.apple.finalcutpro.inspector.color.CorrectionsBar:activate(correctionType, number) -> cp.apple.finalcutpro.inspector.color.CorrectionsBar` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | -| **Description** | A Statement that activates a correction type. | +| **Description** | Activates a correction type. | | **Parameters** | | -| **Returns** | | +| **Returns** | | #### [add](#add) | **Signature** | `cp.apple.finalcutpro.inspector.color.CorrectionsBar:add(correctionType) -> cp.apple.finalcutpro.inspector.color.CorrectionsBar` | @@ -71,6 +72,14 @@ Requires Final Cut Pro 10.4 or later. | **Parameters** | | | **Returns** | | +#### [doActivate](#doactivate) +| **Signature** | `cp.apple.finalcutpro.inspector.color.CorrectionsBar:doActivate(correctionType, number) -> cp.rx.go.Statement` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | A Statement that activates a correction type. | +| **Parameters** | | +| **Returns** | | + #### [doShow](#doshow) | **Signature** | `cp.apple.finalcutpro.inspector.color.CorrectionsBar:doShow() -> cp.rx.go.Statement` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| diff --git a/api/cp/cp.json.md b/api/cp/cp.json.md index fa0753e..ceb59a0 100644 --- a/api/cp/cp.json.md +++ b/api/cp/cp.json.md @@ -34,7 +34,7 @@ A collection of handy JSON tools. | **Notes** | | #### [prop](#prop) -| **Signature** | `cp.json.prop(path, folder, filename, defaultValue) -> cp.prop` | +| **Signature** | `cp.json.prop(path, folder, filename, defaultValue[, errorCallbackFn]) -> cp.prop` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Returns a `cp.prop` instance for a JSON file. | diff --git a/api/cp/cp.md b/api/cp/cp.md index 03d4e58..cf87b3a 100644 --- a/api/cp/cp.md +++ b/api/cp/cp.md @@ -5,6 +5,7 @@ Core CommandPost functionality. ## Submodules * [cp.18n](cp.18n.md) + * [cp.adobe](cp.adobe.md) * [cp.app](cp.app.md) * [cp.apple](cp.apple.md) * [cp.battery](cp.battery.md) diff --git a/api/cp/cp.tools.md b/api/cp/cp.tools.md index d4c24f6..2348094 100644 --- a/api/cp/cp.tools.md +++ b/api/cp/cp.tools.md @@ -173,7 +173,7 @@ A collection of handy miscellaneous tools for Lua development. | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Ensures all steps on a provided path exist. If not, attempts to create them. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | #### [exactMatch](#exactmatch) diff --git a/api/cp/cp.ui.Menu.md b/api/cp/cp.ui.Menu.md index e6560c8..6686495 100644 --- a/api/cp/cp.ui.Menu.md +++ b/api/cp/cp.ui.Menu.md @@ -54,10 +54,10 @@ UI for AXMenus. | **Returns** | | #### [doSelectValue](#doselectvalue) -| **Signature** | `cp.ui.Menu:doSelectValue(value) -> cp.rx.go.Statement` | +| **Signature** | `cp.ui.Menu:doSelectValue(pattern[, altPattern]) -> cp.rx.go.Statement` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | A [Statement](cp.rx.go.Statement.md) that will select an item on the `Menu` by value. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | diff --git a/api/cp/cp.ui.MenuButton.md b/api/cp/cp.ui.MenuButton.md index 6e68ba1..61ab48b 100644 --- a/api/cp/cp.ui.MenuButton.md +++ b/api/cp/cp.ui.MenuButton.md @@ -88,11 +88,11 @@ Menu Button Module. | **Returns** | | #### [doSelectItemMatching](#doselectitemmatching) -| **Signature** | `cp.ui.MenuButton:doSelectItemMatching(pattern) -> cp.rx.go.Statement` | +| **Signature** | `cp.ui.MenuButton:doSelectItemMatching(pattern[, altPattern]) -> cp.rx.go.Statement` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | A [Statement](cp.rx.go.Statement.md) that will select an item on the `MenuButton` by pattern. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | #### [doSelectValue](#doselectvalue) diff --git a/api/cp/index.md b/api/cp/index.md index c225a30..ea5e209 100644 --- a/api/cp/index.md +++ b/api/cp/index.md @@ -4,20 +4,23 @@ ## Project Links | Resource | Link | | --------------- | -------------------------------- | -| Website | [http://www.hammerspoon.org/](http://www.hammerspoon.org/) | +| Website | [https://www.hammerspoon.org/](https://www.hammerspoon.org/) | | GitHub page | [https://github.com/Hammerspoon/hammerspoon](https://github.com/Hammerspoon/hammerspoon) | -| Getting Started Guide | [http://www.hammerspoon.org/go/](http://www.hammerspoon.org/go/) | +| Getting Started Guide | [https://www.hammerspoon.org/go/](https://www.hammerspoon.org/go/) | | Spoon Plugin Documentation | [https://github.com/Hammerspoon/hammerspoon/blob/master/SPOONS.md](https://github.com/Hammerspoon/hammerspoon/blob/master/SPOONS.md) | -| Official Spoon repository | [http://www.hammerspoon.org/Spoons](http://www.hammerspoon.org/Spoons) | +| Official Spoon repository | [https://www.hammerspoon.org/Spoons](https://www.hammerspoon.org/Spoons) | | IRC channel | [irc://chat.freenode.net/#hammerspoon](irc://chat.freenode.net/#hammerspoon) | | Mailing list | [https://groups.google.com/forum/#!forum/hammerspoon/](https://groups.google.com/forum/#!forum/hammerspoon/) | -| LuaSkin API docs | [http://www.hammerspoon.org/docs/LuaSkin/](http://www.hammerspoon.org/docs/LuaSkin/) | +| LuaSkin API docs | [https://www.hammerspoon.org/docs/LuaSkin/](https://www.hammerspoon.org/docs/LuaSkin/) | ## API Documentation | Module | Description | | ------------------------------------------------------------------ | --------------------- | | [cp](cp.md) | Core CommandPost functionality. | | [cp.18n](cp.18n.md) | CommandPost's Internationalisation & Localisation Manger. | +| [cp.adobe.aftereffects](cp.adobe.aftereffects.md) | Adobe After Effects Extension | +| [cp.adobe.aftereffects.app](cp.adobe.aftereffects.app.md) | The `cp.app` for Adobe After Effects. | +| [cp.adobe.aftereffects.shortcuts](cp.adobe.aftereffects.shortcuts.md) | Translations between After Effects shortcuts and Hammerspoon-friendly shortcuts. | | [cp.app](cp.app.md) | This class assists with working with macOS apps. It provides functions for | | [cp.app.menu](cp.app.menu.md) | Represents an app's menu bar, providing multi-lingual access to find and | | [cp.app.prefs](cp.app.prefs.md) | Provides access to application preferences, typically stored via `NSUserDefaults` or `CFProperties`. | diff --git a/api/hs/hs.application.md b/api/hs/hs.application.md index 6946268..4a07fc6 100644 --- a/api/hs/hs.application.md +++ b/api/hs/hs.application.md @@ -331,7 +331,7 @@ Manipulate running applications | **Signature** | `hs.application:name()` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | -| **Description** | Alias for `hs.application:title()` | +| **Description** | Alias for [`hs.application:title()`](#title) | #### [path](#path) | **Signature** | `hs.application:path() -> string` | diff --git a/api/hs/hs.audiodevice.md b/api/hs/hs.audiodevice.md index 298cac0..199f5d8 100644 --- a/api/hs/hs.audiodevice.md +++ b/api/hs/hs.audiodevice.md @@ -15,6 +15,7 @@ This module is based primarily on code from the previous incarnation of Mjolnir * [allInputDevices](#allinputdevices) * [allOutputDevices](#alloutputdevices) * [current](#current) + * [defaultEffectDevice](#defaulteffectdevice) * [defaultInputDevice](#defaultinputdevice) * [defaultOutputDevice](#defaultoutputdevice) * [findDeviceByName](#finddevicebyname) @@ -39,6 +40,7 @@ This module is based primarily on code from the previous incarnation of Mjolnir * [outputMuted](#outputmuted) * [outputVolume](#outputvolume) * [setBalance](#setbalance) + * [setDefaultEffectDevice](#setdefaulteffectdevice) * [setDefaultInputDevice](#setdefaultinputdevice) * [setDefaultOutputDevice](#setdefaultoutputdevice) * [setInputMuted](#setinputmuted) @@ -93,6 +95,14 @@ This module is based primarily on code from the previous incarnation of Mjolnir | **Parameters** | | | **Returns** | | +#### [defaultEffectDevice](#defaulteffectdevice) +| **Signature** | `hs.audiodevice.defaultEffectDevice() -> audio or nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Get the currently selected sound effect device | +| **Parameters** | | +| **Returns** | | + #### [defaultInputDevice](#defaultinputdevice) | **Signature** | `hs.audiodevice.defaultInputDevice() -> audio or nil` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| @@ -286,6 +296,14 @@ This module is based primarily on code from the previous incarnation of Mjolnir | **Returns** | | | **Notes** | | +#### [setDefaultEffectDevice](#setdefaulteffectdevice) +| **Signature** | `hs.audiodevice:setDefaultEffectDevice() -> bool` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Selects this device as the audio output device for system sound effects | +| **Parameters** | | +| **Returns** | | + #### [setDefaultInputDevice](#setdefaultinputdevice) | **Signature** | `hs.audiodevice:setDefaultInputDevice() -> bool` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| diff --git a/api/hs/hs.audiounit.md b/api/hs/hs.audiounit.md deleted file mode 100644 index 48789e5..0000000 --- a/api/hs/hs.audiounit.md +++ /dev/null @@ -1,22 +0,0 @@ -# [docs](index.md) » hs.audiounit ---- - -Audio Units Extension. - -## API Overview -* Functions - API calls offered directly by the extension - * [getAudioEffectNames](#getaudioeffectnames) - -## API Documentation - -### Functions - -#### [getAudioEffectNames](#getaudioeffectnames) -| **Signature** | `hs.audiounit.getAudioEffectNames() -> table` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Gets a table of installed Audio Units Effect names. | -| **Parameters** | | -| **Returns** | | -| **Notes** | | - diff --git a/api/hs/hs.axuielement.axtextmarker.md b/api/hs/hs.axuielement.axtextmarker.md new file mode 100644 index 0000000..f5c8767 --- /dev/null +++ b/api/hs/hs.axuielement.axtextmarker.md @@ -0,0 +1,97 @@ +# [docs](index.md) » hs.axuielement.axtextmarker +--- + +This submodule allows hs.axuielement to support using AXTextMarker and AXTextMarkerRange objects as parameters for parameterized Accessibility attributes with applications that support them. + +Most Accessibility object values correspond to the common data types found in most programming languages -- strings, numbers, tables (arrays and dictionaries), etc. AXTextMarker and AXTextMarkerRange types are application specific and do not have a direct mapping to a simple data type. The description I've found most apt comes from comments within the Chromium source for the Mac version of their browser: + +> // A serialization of a position as POD. Not for sharing on disk or sharing +> // across thread or process boundaries, just for passing a position to an +> // API that works with positions as opaque objects. + +This submodule allows Lua to represent these as userdata which can be passed in to parameterized attributes for the appliction from which they were retrieved. Examples are expected to be added to the Hammerspoon wiki soon. + +As this submodule utilizes private and undocumented functions in the HIServices framework, if you receive an error using any of these functions or methods indicating an undefined CF function (the function or method will return nil and a string of the format "CF function AX... undefined"), please make sure to include the output of the following in any issue you submit to the Hammerspoon github page (enter these into the Hammerspoon console): + + hs.inspect(hs.axuielement.axtextmarker._functionCheck()) + hs.inspect(hs.processInfo) + hs.host.operatingSystemVersionString() + +## API Overview +* Functions - API calls offered directly by the extension + * [_functionCheck](#_functioncheck) + * [bytes](#bytes) + * [endMarker](#endmarker) + * [length](#length) + * [startMarker](#startmarker) +* Constructors - API calls which return an object, typically one that offers API methods + * [newMarker](#newmarker) + * [newRange](#newrange) + +## API Documentation + +### Functions + +#### [_functionCheck](#_functioncheck) +| **Signature** | `hs.axuielement.axtextmarker._functionCheck() -> table` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Returns a table of the AXTextMarker and AXTextMarkerRange functions that have been discovered and are used within this module. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [bytes](#bytes) +| **Signature** | `hs.axuielement.axtextmarker:bytes() -> string | nil, errorString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Returns a string containing the opaque binary data contained within the axTextMarkerObject | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [endMarker](#endmarker) +| **Signature** | `hs.axuielement.axtextmarker:endMarker() -> axTextMarkerObject | nil, errorString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Returns the ending marker for an axTextMarkerRangeObject | +| **Parameters** | | +| **Returns** | | + +#### [length](#length) +| **Signature** | `hs.axuielement.axtextmarker:length() -> integer | nil, errorString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Returns an integer specifying the number of bytes in the data portion of the axTextMarkerObject. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [startMarker](#startmarker) +| **Signature** | `hs.axuielement.axtextmarker:startMarker() -> axTextMarkerObject | nil, errorString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Returns the starting marker for an axTextMarkerRangeObject | +| **Parameters** | | +| **Returns** | | + +### Constructors + +#### [newMarker](#newmarker) +| **Signature** | `hs.axuielement.axtextmarker.newMarker(string) -> axTextMarkerObject | nil, errorString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Creates a new AXTextMarker object from the string of binary data provided | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [newRange](#newrange) +| **Signature** | `hs.axuielement.axtextmarker.newRange(startMarker, endMarker) -> axTextMarkerRangeObject | nil, errorString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Creates a new AXTextMarkerRange object from the start and end markers provided | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + diff --git a/api/hs/hs.axuielement.md b/api/hs/hs.axuielement.md new file mode 100644 index 0000000..fa74c88 --- /dev/null +++ b/api/hs/hs.axuielement.md @@ -0,0 +1,413 @@ +# [docs](index.md) » hs.axuielement +--- + +This module allows you to access the accessibility objects of running applications, their windows, menus, and other user interface elements that support the OS X accessibility API. + +This module works through the use of axuielementObjects, which is the Hammerspoon representation for an accessibility object. An accessibility object represents any object or component of an OS X application which can be manipulated through the OS X Accessibility API -- it can be an application, a window, a button, selected text, etc. As such, it can only support those features and objects within an application that the application developers make available through the Accessibility API. + +In addition to the formal methods described in this documentation, dynamic methods exist for accessing element attributes and actions. These will differ somewhat between objects as the specific attributes and actions will depend upon the accessibility object's role and purpose, but the following outlines the basics. + +Getting and Setting Attribute values: + * `object.attribute` is a shortcut for `object:attributeValue(attribute)` + * `object.attribute = value` is a shortcut for `object:setAttributeValue(attribute, value)` + * If detecting accessiblity errors that may occur is necessary, you must use the formal methods [hs.axuielement:attributeValue](#attributeValue) and [hs.axuielement:setAttributeValue](#setAttributeValue) + * Note that setting an attribute value is not guaranteeed to work with either method: + * internal logic within the receiving application may decline to accept the newly assigned value + * an accessibility error may occur + * the element may not be settable (surprisingly this does not return an error, even when [hs.axuielement:isAttributeSettable](#isAttributeSettable) returns false for the attribute specified) + * If you require confirmation of the change, you will need to check the value of the attribute with one of the methods described above after setting it. + +Iteration over Attributes: + * `for k,v in pairs(object) do ... end` is a shortcut for `for k,_ in ipairs(object:attributeNames()) do local v = object:attributeValue(k) ; ... end` or `for k,v in pairs(object:allAttributeValues()) do ... end` (though see note below) + * If detecting accessiblity errors that may occur is necessary, you must use one of the formal approaches [hs.axuielement:allAttributeValues](#allAttributeValues) or [hs.axuielement:attributeNames](#attributeNames) and [hs.axuielement:attributeValue](#attributeValue) + * By default, [hs.axuielement:allAttributeValues](#allAttributeValues) will not include key-value pairs for which the attribute (key) exists for the element but has no assigned value (nil) at the present time. This is because the value of `nil` prevents the key from being retained in the table returned. See [hs.axuielement:allAttributeValues](#allAttributeValues) for details and a workaround. + +Iteration over Child Elements (AXChildren): + * `for i,v in ipairs(object) do ... end` is a shortcut for `for i,v in pairs(object:attributeValue("AXChildren") or {}) do ... end` + * Note that `object:attributeValue("AXChildren")` *may* return nil if the object does not have the `AXChildren` attribute; the shortcut does not have this limitation. + * `#object` is a shortcut for `#object:attributeValue("AXChildren")` + * `object[i]` is a shortcut for `object:attributeValue("AXChildren")[i]` + * If detecting accessiblity errors that may occur is necessary, you must use the formal method [hs.axuielement:attributeValue](#attributeValue) to get the "AXChildren" attribute. + +Actions ([hs.axuielement:actionNames](#actionNames)): + * `object:do()` is a shortcut for `object:performAction(action)` + * See [hs.axuielement:performAction](#performAction) for a description of the return values and [hs.axuielement:actionNames](#actionNames) to get a list of actions that the element supports. + +ParameterizedAttributes: + * `object:WithParameter(value)` is a shortcut for `object:parameterizedAttributeValue(attribute, value) + * See [hs.axuielement:parameterizedAttributeValue](#parameterizedAttributeValue) for a description of the return values and [hs.axuielement:parameterizedAttributeNames](#parameterizedAttributeNames) to get a list of parameterized values that the element supports + + * The specific value required for a each parameterized attribute is different and is often application specific thus requiring some experimentation. Notes regarding identified parameter types and thoughts on some still being investigated will be provided in the Hammerspoon Wiki, hopefully shortly after this module becomes part of a Hammerspoon release. + +## Submodules + * [hs.axuielement.axtextmarker](hs.axuielement.axtextmarker.md) + * [hs.axuielement.observer](hs.axuielement.observer.md) + +## API Overview +* Constants - Useful values which cannot be changed + * [actions](#actions) + * [attributes](#attributes) + * [orientations](#orientations) + * [parameterizedAttributes](#parameterizedattributes) + * [roles](#roles) + * [rulerMarkers](#rulermarkers) + * [sortDirections](#sortdirections) + * [subroles](#subroles) + * [units](#units) +* Functions - API calls offered directly by the extension + * [searchCriteriaFunction](#searchcriteriafunction) +* Constructors - API calls which return an object, typically one that offers API methods + * [applicationElement](#applicationelement) + * [applicationElementForPID](#applicationelementforpid) + * [systemElementAtPosition](#systemelementatposition) + * [systemWideElement](#systemwideelement) + * [windowElement](#windowelement) +* Methods - API calls which can only be made on an object returned by a constructor + * [actionDescription](#actiondescription) + * [actionNames](#actionnames) + * [allAttributeValues](#allattributevalues) + * [allDescendantElements](#alldescendantelements) + * [asHSApplication](#ashsapplication) + * [asHSWindow](#ashswindow) + * [attributeNames](#attributenames) + * [attributeValue](#attributevalue) + * [attributeValueCount](#attributevaluecount) + * [buildTree](#buildtree) + * [copy](#copy) + * [elementAtPosition](#elementatposition) + * [elementSearch](#elementsearch) + * [isAttributeSettable](#isattributesettable) + * [isValid](#isvalid) + * [matchesCriteria](#matchescriteria) + * [parameterizedAttributeNames](#parameterizedattributenames) + * [parameterizedAttributeValue](#parameterizedattributevalue) + * [path](#path) + * [performAction](#performaction) + * [pid](#pid) + * [setAttributeValue](#setattributevalue) + * [setTimeout](#settimeout) + +## API Documentation + +### Constants + +#### [actions](#actions) +| **Signature** | `hs.axuielement.actions[]` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | A table of common accessibility object action names, provided for reference. | +| **Notes** | | + +#### [attributes](#attributes) +| **Signature** | `hs.axuielement.attributes[]` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | A table of common accessibility object attribute names which may be used with [hs.axuielement:elementSearch](#elementSearch) or [hs.axuielement:matchesCriteria](#matchesCriteria) as keys in the match criteria argument. | +| **Notes** | | + +#### [orientations](#orientations) +| **Signature** | `hs.axuielement.orientations[]` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | A table of orientation types which may be used with [hs.axuielement:elementSearch](#elementSearch) or [hs.axuielement:matchesCriteria](#matchesCriteria) as attribute values for "AXOrientation" in the match criteria argument. | +| **Notes** | | + +#### [parameterizedAttributes](#parameterizedattributes) +| **Signature** | `hs.axuielement.parameterizedAttributes[]` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | A table of common accessibility object parameterized attribute names, provided for reference. | +| **Notes** | | + +#### [roles](#roles) +| **Signature** | `hs.axuielement.roles[]` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | A table of common accessibility object roles which may be used with [hs.axuielement:elementSearch](#elementSearch) or [hs.axuielement:matchesCriteria](#matchesCriteria) as attribute values for "AXRole" in the match criteria argument. | +| **Notes** | | + +#### [rulerMarkers](#rulermarkers) +| **Signature** | `hs.axuielement.rulerMarkers[]` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | A table of ruler marker types which may be used with [hs.axuielement:elementSearch](#elementSearch) or [hs.axuielement:matchesCriteria](#matchesCriteria) as attribute values for "AXMarkerType" in the match criteria argument. | +| **Notes** | | + +#### [sortDirections](#sortdirections) +| **Signature** | `hs.axuielement.sortDirections[]` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | A table of sort direction types which may be used with [hs.axuielement:elementSearch](#elementSearch) or [hs.axuielement:matchesCriteria](#matchesCriteria) as attribute values for "AXSortDirection" in the match criteria argument. | +| **Notes** | | + +#### [subroles](#subroles) +| **Signature** | `hs.axuielement.subroles[]` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | A table of common accessibility object subroles which may be used with [hs.axuielement:elementSearch](#elementSearch) or [hs.axuielement:matchesCriteria](#matchesCriteria) as attribute values for "AXSubrole" in the match criteria argument. | +| **Notes** | | + +#### [units](#units) +| **Signature** | `hs.axuielement.units[]` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | A table of measurement unit types which may be used with [hs.axuielement:elementSearch](#elementSearch) or [hs.axuielement:matchesCriteria](#matchesCriteria) as attribute values for attributes which specify measurement unit types (e.g. "AXUnits", "AXHorizontalUnits", and "AXVerticalUnits") in the match criteria argument. | +| **Notes** | | + +### Functions + +#### [searchCriteriaFunction](#searchcriteriafunction) +| **Signature** | `hs.axuielement.searchCriteriaFunction(criteria) -> function` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Returns a function for use with [hs.axuielement:elementSearch](#elementSearch) that uses [hs.axuielement:matchesCriteria](#matchesCriteria) with the specified criteria. | +| **Parameters** | | +| **Returns** | | + +### Constructors + +#### [applicationElement](#applicationelement) +| **Signature** | `hs.axuielement.applicationElement(applicationObject) -> axuielementObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Returns the top-level accessibility object for the application specified by the `hs.application` object. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [applicationElementForPID](#applicationelementforpid) +| **Signature** | `hs.axuielement.applicationElementForPID(pid) -> axuielementObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Returns the top-level accessibility object for the application with the specified process ID. | +| **Parameters** | | +| **Returns** | | + +#### [systemElementAtPosition](#systemelementatposition) +| **Signature** | `hs.axuielement.systemElementAtPosition(x, y | pointTable) -> axuielementObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Returns the accessibility object at the specified position on the screen. The top-left corner of the primary screen is 0, 0. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [systemWideElement](#systemwideelement) +| **Signature** | `hs.axuielement.systemWideElement() -> axuielementObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Returns an accessibility object that provides access to system attributes. | +| **Parameters** | | +| **Returns** | | + +#### [windowElement](#windowelement) +| **Signature** | `hs.axuielement.windowElement(windowObject) -> axuielementObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Returns the accessibility object for the window specified by the `hs.window` object. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +### Methods + +#### [actionDescription](#actiondescription) +| **Signature** | `hs.axuielement:actionDescription(action) -> string | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns a localized description of the specified accessibility object's action. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [actionNames](#actionnames) +| **Signature** | `hs.axuielement:actionNames() -> table | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns a list of all the actions the specified accessibility object can perform. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [allAttributeValues](#allattributevalues) +| **Signature** | `hs.axuielement:allAttributeValues([includeErrors]) -> table | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns a table containing key-value pairs for all attributes of the accessibility object. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [allDescendantElements](#alldescendantelements) +| **Signature** | `hs.axuielement:allDescendantElements(callback, [withParents]) -> elementSearchObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Query the accessibility object for all child accessibility objects and their descendants | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [asHSApplication](#ashsapplication) +| **Signature** | `hs.axuielement:asHSApplication() -> hs.application object | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | If the element referes to an application, return an `hs.application` object for the element. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [asHSWindow](#ashswindow) +| **Signature** | `hs.axuielement:asHSWindow() -> hs.window object | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | If the element referes to a window, return an `hs.window` object for the element. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [attributeNames](#attributenames) +| **Signature** | `hs.axuielement:attributeNames() -> table | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns a list of all the attributes supported by the specified accessibility object. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [attributeValue](#attributevalue) +| **Signature** | `hs.axuielement:attributeValue(attribute) -> value | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns the value of an accessibility object's attribute. | +| **Parameters** | | +| **Returns** | | + +#### [attributeValueCount](#attributevaluecount) +| **Signature** | `hs.axuielement:attributeValueCount(attribute) -> integer | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns the count of the array of an accessibility object's attribute value. | +| **Parameters** | | +| **Returns** | | + +#### [buildTree](#buildtree) +| **Signature** | `hs.axuielement:buildTree(callback, [depth], [withParents]) -> elementSearchObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Captures all of the available information for the accessibility object and its descendants and returns it in a table for inspection. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [copy](#copy) +| **Signature** | `hs.axuielement:copy() -> axuielementObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Return a duplicate userdata reference to the Accessibility object. | +| **Parameters** | | +| **Returns** | | + +#### [elementAtPosition](#elementatposition) +| **Signature** | `hs.axuielement:elementAtPosition(x, y | pointTable) -> axuielementObject | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns the accessibility object at the specified position on the screen. The top-left corner of the primary screen is 0, 0. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [elementSearch](#elementsearch) +| **Signature** | `hs.axuielement:elementSearch(callback, [criteria], [namedModifiers]) -> elementSearchObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Search for and generate a table of the accessibility elements for the attributes and descendants of this object based on the specified criteria. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [isAttributeSettable](#isattributesettable) +| **Signature** | `hs.axuielement:isAttributeSettable(attribute) -> boolean | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns whether the specified accessibility object's attribute can be modified. | +| **Parameters** | | +| **Returns** | | + +#### [isValid](#isvalid) +| **Signature** | `hs.axuielement:isValid() -> boolean | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns whether the specified accessibility object is still valid. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [matchesCriteria](#matchescriteria) +| **Signature** | `hs.axuielement:matchesCriteria(criteria) -> boolean` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns true if the axuielementObject matches the specified criteria or false if it does not. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [parameterizedAttributeNames](#parameterizedattributenames) +| **Signature** | `hs.axuielement:parameterizedAttributeNames() -> table | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns a list of all the parameterized attributes supported by the specified accessibility object. | +| **Parameters** | | +| **Returns** | | + +#### [parameterizedAttributeValue](#parameterizedattributevalue) +| **Signature** | `hs.axuielement:parameterizedAttributeValue(attribute, parameter) -> value | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns the value of an accessibility object's parameterized attribute. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [path](#path) +| **Signature** | `hs.axuielement:path() -> table` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns a table of axuielements tracing this object through its parent objects to the root for this element, most likely an application object or the system wide object. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [performAction](#performaction) +| **Signature** | `hs.axuielement:performAction(action) -> axuielement | false | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Requests that the specified accessibility object perform the specified action. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [pid](#pid) +| **Signature** | `hs.axuielement:pid() -> integer | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns the process ID associated with the specified accessibility object. | +| **Parameters** | | +| **Returns** | | + +#### [setAttributeValue](#setattributevalue) +| **Signature** | `hs.axuielement:setAttributeValue(attribute, value) -> axuielementObject | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Sets the accessibility object's attribute to the specified value. | +| **Parameters** | | +| **Returns** | | + +#### [setTimeout](#settimeout) +| **Signature** | `hs.axuielement:setTimeout(value) -> axuielementObject | nil, errString` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Sets the timeout value used accessibility queries performed from this element. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + diff --git a/api/hs/hs.axuielement.observer.md b/api/hs/hs.axuielement.observer.md new file mode 100644 index 0000000..f76b906 --- /dev/null +++ b/api/hs/hs.axuielement.observer.md @@ -0,0 +1,105 @@ +# [docs](index.md) » hs.axuielement.observer +--- + +This submodule allows you to create observers for accessibility elements and be notified when they trigger notifications. Not all notifications are supported by all elements and not all elements support notifications, so some trial and error will be necessary, but for compliant applications, this can allow your code to be notified when an application's user interface changes in some way. + +## API Overview +* Constants - Useful values which cannot be changed + * [notifications](#notifications) +* Constructors - API calls which return an object, typically one that offers API methods + * [new](#new) +* Methods - API calls which can only be made on an object returned by a constructor + * [addWatcher](#addwatcher) + * [callback](#callback) + * [isRunning](#isrunning) + * [removeWatcher](#removewatcher) + * [start](#start) + * [stop](#stop) + * [watching](#watching) + +## API Documentation + +### Constants + +#### [notifications](#notifications) +| **Signature** | `hs.axuielement.observer.notifications[]` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constant | +| **Description** | A table of common accessibility object notification names, provided for reference. | +| **Notes** | | + +### Constructors + +#### [new](#new) +| **Signature** | `hs.axuielement.observer.new(pid) -> observerObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Creates a new observer object for the application with the specified process ID. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +### Methods + +#### [addWatcher](#addwatcher) +| **Signature** | `hs.axuielement.observer:addWatcher(element, notification) -> observerObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Registers the specified notification for the specified accesibility element with the observer. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [callback](#callback) +| **Signature** | `hs.axuielement.observer:callback([fn]) -> observerObject | fn | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Get or set the callback for the observer. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [isRunning](#isrunning) +| **Signature** | `hs.axuielement.observer:isRunning() -> boolean` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns true or false indicating whether the observer is currently watching for notifications and generating callbacks. | +| **Parameters** | | +| **Returns** | | + +#### [removeWatcher](#removewatcher) +| **Signature** | `hs.axuielement.observer:removeWatcher(element, notification) -> observerObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Unregisters the specified notification for the specified accessibility element from the observer. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [start](#start) +| **Signature** | `hs.axuielement.observer:start() -> observerObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Start observing the application and trigger callbacks for the elements and notifications assigned. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [stop](#stop) +| **Signature** | `hs.axuielement.observer:stop() -> observerObject` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Stop observing the application; no further callbacks will be generated. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [watching](#watching) +| **Signature** | `hs.axuielement.observer:watching([element]) -> table` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns a table of the notifications currently registered with the observer. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + diff --git a/api/hs/hs.bonjour.service.md b/api/hs/hs.bonjour.service.md index d8a1712..cf5f5bf 100644 --- a/api/hs/hs.bonjour.service.md +++ b/api/hs/hs.bonjour.service.md @@ -147,6 +147,7 @@ Additional submodules which may address this limitation as well as provide addit | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Stop advertising or resolving the service specified by the serviceObject | +| **Parameters** | | | **Returns** | | | **Notes** | | diff --git a/api/hs/hs.brightness.md b/api/hs/hs.brightness.md index acc1809..09c4fee 100644 --- a/api/hs/hs.brightness.md +++ b/api/hs/hs.brightness.md @@ -24,7 +24,7 @@ This module is based primarily on code from the previous incarnation of Mjolnir | **Description** | Gets the current ambient brightness | | **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | #### [get](#get) | **Signature** | `hs.brightness.get() -> number` | diff --git a/api/hs/hs.canvas.md b/api/hs/hs.canvas.md index 15db760..01d378e 100644 --- a/api/hs/hs.canvas.md +++ b/api/hs/hs.canvas.md @@ -23,10 +23,9 @@ Some examples of how to use this module can be found at https://github.com/asmag * [windowLevels](#windowlevels) * Functions - API calls offered directly by the extension * [defaultTextStyle](#defaulttextstyle) - * [disableScreenUpdates](#disablescreenupdates) * [elementSpec](#elementspec) - * [enableScreenUpdates](#enablescreenupdates) * [help](#help) + * [useCustomAccessibilitySubrole](#usecustomaccessibilitysubrole) * Constructors - API calls which return an object, typically one that offers API methods * [new](#new) * Fields - Variables which can only be accessed from an object returned by a constructor @@ -34,6 +33,7 @@ Some examples of how to use this module can be found at https://github.com/asmag * [object](#object) * [percentages](#percentages) * Methods - API calls which can only be made on an object returned by a constructor + * [_accessibilitySubrole](#_accessibilitysubrole) * [alpha](#alpha) * [appendElements](#appendelements) * [assignElement](#assignelement) @@ -109,15 +109,6 @@ Some examples of how to use this module can be found at https://github.com/asmag | **Returns** | | | **Notes** | | -#### [disableScreenUpdates](#disablescreenupdates) -| **Signature** | `hs.canvas.disableScreenUpdates() -> None` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Tells the OS X window server to pause updating the physical displays for a short while. | -| **Parameters** | | -| **Returns** | | -| **Notes** | | - #### [elementSpec](#elementspec) | **Signature** | `hs.canvas.elementSpec() -> table` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| @@ -127,15 +118,6 @@ Some examples of how to use this module can be found at https://github.com/asmag | **Returns** | | | **Notes** | | -#### [enableScreenUpdates](#enablescreenupdates) -| **Signature** | `hs.canvas.enableScreenUpdates() -> None` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Tells the OS X window server to resume updating the physical displays after a previous pause. | -| **Parameters** | | -| **Returns** | | -| **Notes** | | - #### [help](#help) | **Signature** | `hs.canvas.help([attribute]) -> string` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| @@ -144,6 +126,15 @@ Some examples of how to use this module can be found at https://github.com/asmag | **Parameters** | | | **Returns** | | +#### [useCustomAccessibilitySubrole](#usecustomaccessibilitysubrole) +| **Signature** | `hs.canvas.useCustomAccessibilitySubrole([state]) -> boolean` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Get or set whether or not canvas objects use a custom accessibility subrole for the contaning system window. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + ### Constructors #### [new](#new) @@ -177,6 +168,15 @@ Some examples of how to use this module can be found at https://github.com/asmag ### Methods +#### [_accessibilitySubrole](#_accessibilitysubrole) +| **Signature** | `hs.canvas:_accessibilitySubrole([subrole]) -> canvasObject | current value` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Get or set the accessibility subrole returned by `hs.canvas` objects. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + #### [alpha](#alpha) | **Signature** | `hs.canvas:alpha([alpha]) -> canvasObject | currentValue` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| @@ -186,7 +186,7 @@ Some examples of how to use this module can be found at https://github.com/asmag | **Returns** | | #### [appendElements](#appendelements) -| **Signature** | `hs.canvas:appendElements(element, ...) -> canvasObject` | +| **Signature** | `hs.canvas:appendElements(element...) -> canvasObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Appends the elements specified to the canvas. | @@ -299,7 +299,7 @@ Some examples of how to use this module can be found at https://github.com/asmag | **Notes** | | #### [draggingCallback](#draggingcallback) -| **Signature** | `hs.canvas:draggingCallback(fn | nil) -> canvasObject` | +| **Signature** | `hs.canvas:draggingCallback(fn) -> canvasObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Sets or remove a callback for accepting dragging and dropping items onto the canvas. | @@ -456,7 +456,7 @@ Some examples of how to use this module can be found at https://github.com/asmag | **Returns** | | #### [replaceElements](#replaceelements) -| **Signature** | `hs.canvas:replaceElements(element, ...) -> canvasObject` | +| **Signature** | `hs.canvas:replaceElements(element...) -> canvasObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Replaces all of the elements in the canvas with the elements specified. Shortens or lengthens the canvas element count if necessary to accomodate the new canvas elements. | diff --git a/api/hs/hs.chooser.md b/api/hs/hs.chooser.md index b392326..a3cd2da 100644 --- a/api/hs/hs.chooser.md +++ b/api/hs/hs.chooser.md @@ -20,6 +20,7 @@ Notes: * [fgColor](#fgcolor) * [hide](#hide) * [hideCallback](#hidecallback) + * [invalidCallback](#invalidcallback) * [isVisible](#isvisible) * [placeholderText](#placeholdertext) * [query](#query) @@ -61,11 +62,11 @@ Notes: ### Methods #### [attachedToolbar](#attachedtoolbar) -| **Signature** | `hs.chooser:attachedToolbar([toolbar | nil]) -> hs.chooser object | currentValue` | +| **Signature** | `hs.chooser:attachedToolbar([toolbar]) -> hs.chooser object | currentValue` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Get or attach/detach a toolbar to/from the chooser. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | @@ -93,7 +94,7 @@ Notes: | **Description** | Sets the choices for a chooser | | **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | #### [delete](#delete) | **Signature** | `hs.chooser:delete()` | @@ -128,6 +129,15 @@ Notes: | **Returns** | | | **Notes** | | +#### [invalidCallback](#invalidcallback) +| **Signature** | `hs.chooser:invalidCallback([fn]) -> hs.chooser object` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Sets/clears a callback for invalid choices | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + #### [isVisible](#isvisible) | **Signature** | `hs.chooser:isVisible() -> boolean` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| diff --git a/api/hs/hs.console.md b/api/hs/hs.console.md index 9cd774f..3e85077 100644 --- a/api/hs/hs.console.md +++ b/api/hs/hs.console.md @@ -254,7 +254,7 @@ These functions allow altering the behavior and display of the Hammerspoon conso | **Notes** | | #### [toolbar](#toolbar) -| **Signature** | `hs.console.toolbar([toolbar | nil]) -> toolbarObject | currentValue` | +| **Signature** | `hs.console.toolbar([toolbar]) -> toolbarObject | currentValue` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Get or attach/detach a toolbar to/from the Hammerspoon console. | diff --git a/api/hs/hs.doc.hsdocs.md b/api/hs/hs.doc.hsdocs.md index 9b0a88a..df05029 100644 --- a/api/hs/hs.doc.hsdocs.md +++ b/api/hs/hs.doc.hsdocs.md @@ -11,7 +11,7 @@ Future enhancements to this module under consideration include: * Documentation for the LuaSkin Objective-C Framework * Lua Reference documentation -The intent of this sub-module is to provide as close a rendering of the same documentation available at the Hammerspoon Github site and Dash documentation as possible in a manner suitable for run-time modification so module developers can test out documentation additions without requiring a complete recompilation of the Hammerspoon source. As always, the most current and official documentation can be found at http://www.hammerspoon.org and in the official Hammerspoon Dash docset. +The intent of this sub-module is to provide as close a rendering of the same documentation available at the Hammerspoon Github site and Dash documentation as possible in a manner suitable for run-time modification so module developers can test out documentation additions without requiring a complete recompilation of the Hammerspoon source. As always, the most current and official documentation can be found at https://www.hammerspoon.org and in the official Hammerspoon Dash docset. ## API Overview * Functions - API calls offered directly by the extension diff --git a/api/hs/hs.dockicon.md b/api/hs/hs.dockicon.md index a8e22ac..631f6a4 100644 --- a/api/hs/hs.dockicon.md +++ b/api/hs/hs.dockicon.md @@ -11,6 +11,9 @@ This module is based primarily on code from the previous incarnation of Mjolnir * [hide](#hide) * [setBadge](#setbadge) * [show](#show) + * [tileCanvas](#tilecanvas) + * [tileSize](#tilesize) + * [tileUpdate](#tileupdate) * [visible](#visible) ## API Documentation @@ -47,6 +50,33 @@ This module is based primarily on code from the previous incarnation of Mjolnir | **Parameters** | | | **Returns** | | +#### [tileCanvas](#tilecanvas) +| **Signature** | `hs.dockicon.tileCanvas([canvas]) -> canvasObject | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Get or set a canvas object to be displayed as the Hamemrspoon dock icon | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [tileSize](#tilesize) +| **Signature** | `hs.dockicon.tileSize() -> size table` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Returns a table containing the size of the tile representing the dock icon. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +#### [tileUpdate](#tileupdate) +| **Signature** | `hs.dockicon.tileUpdate() -> none` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Force an update of the dock icon. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + #### [visible](#visible) | **Signature** | `hs.dockicon.visible() -> bool` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| diff --git a/api/hs/hs.drawing.md b/api/hs/hs.drawing.md index e9eb824..ef0b3d4 100644 --- a/api/hs/hs.drawing.md +++ b/api/hs/hs.drawing.md @@ -124,7 +124,7 @@ hs.drawing is now deprecated and will be removed in a future release. Its functi | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Get the size of the rectangle necessary to fully render the text with the specified style so that is will be completely visible. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | @@ -241,7 +241,7 @@ hs.drawing is now deprecated and will be removed in a future release. Its functi | **Notes** | | #### [clippingRectangle](#clippingrectangle) -| **Signature** | `hs.drawing:clippingRectangle([rect | nil]) -> drawingObject or current value` | +| **Signature** | `hs.drawing:clippingRectangle([rect]) -> drawingObject or current value` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Set the screen area in which the drawing contents are visible. | diff --git a/api/hs/hs.eventtap.event.md b/api/hs/hs.eventtap.event.md index c10f0cb..73a82a5 100644 --- a/api/hs/hs.eventtap.event.md +++ b/api/hs/hs.eventtap.event.md @@ -5,6 +5,25 @@ Create, modify and inspect events for `hs.eventtap` This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/). +`hs.eventtap.event.newGesture` uses an external library by Calf Trail Software, LLC. + +Touch +Copyright (C) 2010 Calf Trail Software, LLC + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + ## API Overview * Constants - Useful values which cannot be changed * [properties](#properties) @@ -16,6 +35,7 @@ This module is based primarily on code from the previous incarnation of Mjolnir * [copy](#copy) * [newEvent](#newevent) * [newEventFromData](#neweventfromdata) + * [newGesture](#newgesture) * [newKeyEvent](#newkeyevent) * [newMouseEvent](#newmouseevent) * [newScrollEvent](#newscrollevent) @@ -28,6 +48,8 @@ This module is based primarily on code from the previous incarnation of Mjolnir * [getKeyCode](#getkeycode) * [getProperty](#getproperty) * [getRawEventData](#getraweventdata) + * [getTouchDetails](#gettouchdetails) + * [getTouches](#gettouches) * [getType](#gettype) * [getUnicodeString](#getunicodestring) * [location](#location) @@ -50,7 +72,6 @@ This module is based primarily on code from the previous incarnation of Mjolnir | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constant | | **Description** | A table containing property types for use with `hs.eventtap.event:getProperty()` and `hs.eventtap.event:setProperty()`. The table supports forward (label to number) and reverse (number to label) lookups to increase its flexibility. | -| **Notes** | | #### [rawFlagMasks](#rawflagmasks) | **Signature** | `hs.eventtap.event.rawFlagMasks[]` | @@ -63,7 +84,6 @@ This module is based primarily on code from the previous incarnation of Mjolnir | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constant | | **Description** | A table containing event types to be used with `hs.eventtap.new(...)` and returned by `hs.eventtap.event:type()`. The table supports forward (label to number) and reverse (number to label) lookups to increase its flexibility. | -| **Notes** | | ### Functions @@ -103,6 +123,15 @@ This module is based primarily on code from the previous incarnation of Mjolnir | **Parameters** | | | **Returns** | | +#### [newGesture](#newgesture) +| **Signature** | `hs.eventtap.event.newGesture(gestureType[, gestureValue]) -> event` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Creates an gesture event. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + #### [newKeyEvent](#newkeyevent) | **Signature** | `hs.eventtap.event.newKeyEvent([mods], key, isdown) -> event` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| @@ -146,7 +175,7 @@ This module is based primarily on code from the previous incarnation of Mjolnir | **Description** | Returns a string containing binary data representing the event. This can be used to record events for later use. | | **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | #### [getButtonState](#getbuttonstate) | **Signature** | `hs.eventtap.event:getButtonState(button) -> bool` | @@ -201,13 +230,31 @@ This module is based primarily on code from the previous incarnation of Mjolnir | **Returns** | | | **Notes** | | +#### [getTouchDetails](#gettouchdetails) +| **Signature** | `hs.eventtap.event:getTouchDetails() -> table | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns a table contining more information about some touch related events. | +| **Parameters** | | +| **Returns** | | + +#### [getTouches](#gettouches) +| **Signature** | `hs.eventtap.event:getTouches() -> table | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns a table of details containing information about touches on the trackpad associated with this event if the event is of the type `hs.eventtap.event.types.gesture`. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + #### [getType](#gettype) -| **Signature** | `hs.eventtap.event:getType() -> number` | +| **Signature** | `hs.eventtap.event:getType([nsSpecificType]) -> number` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Gets the type of the event | -| **Parameters** | | +| **Parameters** | | | **Returns** | | +| **Notes** | | #### [getUnicodeString](#getunicodestring) | **Signature** | `hs.eventtap.event:getUnicodeString()` | diff --git a/api/hs/hs.eventtap.md b/api/hs/hs.eventtap.md index 6e4815d..b6d367f 100644 --- a/api/hs/hs.eventtap.md +++ b/api/hs/hs.eventtap.md @@ -49,7 +49,7 @@ This module is based primarily on code from the previous incarnation of Mjolnir | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Returns a table containing the current mouse buttons being pressed *at this instant*. | -| **Parameters** |

None

| +| **Parameters** | | | **Returns** | | | **Notes** | | @@ -87,20 +87,20 @@ This module is based primarily on code from the previous incarnation of Mjolnir | **Returns** | | #### [keyStroke](#keystroke) -| **Signature** | `hs.eventtap.keyStroke(modifiers, character[, delay])` | +| **Signature** | `hs.eventtap.keyStroke(modifiers, character[, delay, application])` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Generates and emits a single keystroke event pair for the supplied keyboard modifiers and character | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | #### [keyStrokes](#keystrokes) -| **Signature** | `hs.eventtap.keyStrokes(text)` | +| **Signature** | `hs.eventtap.keyStrokes(text[, application])` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Generates and emits keystroke events for the supplied text | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | diff --git a/api/hs/hs.expose.md b/api/hs/hs.expose.md index 9cf6004..3255fd4 100644 --- a/api/hs/hs.expose.md +++ b/api/hs/hs.expose.md @@ -91,5 +91,7 @@ hs.hotkey.bind('ctrl-cmd-shift','e','App Expose',function()expose_app:toggleShow | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Toggles the expose - see `hs.expose:show()` and `hs.expose:hide()` | +| **Parameters** | | | **Returns** | | +| **Notes** | | diff --git a/api/hs/hs.fs.md b/api/hs/hs.fs.md index 14bab03..f5ed002 100644 --- a/api/hs/hs.fs.md +++ b/api/hs/hs.fs.md @@ -3,9 +3,7 @@ Access/inspect the filesystem -Home: http://keplerproject.github.io/luafilesystem - -This module is produced by the Kepler Project under the name "Lua File System" +This module is partial superset of LuaFileSystem 1.8.0 (http://keplerproject.github.io/luafilesystem/). It has been modified to remove functions which do not apply to macOS filesystems and additional functions providing macOS specific filesystem information have been added. ## Submodules * [hs.fs.volume](hs.fs.volume.md) @@ -38,6 +36,7 @@ This module is produced by the Kepler Project under the name "Lua File System" * [temporaryDirectory](#temporarydirectory) * [touch](#touch) * [unlock](#unlock) + * [urlFromPath](#urlfrompath) ## API Documentation @@ -49,7 +48,7 @@ This module is produced by the Kepler Project under the name "Lua File System" | **Type** | Function | | **Description** | Gets the attributes of a file | | **Parameters** | | -| **Returns** | | +| **Returns** | | | **Notes** | | #### [chdir](#chdir) @@ -69,13 +68,13 @@ This module is produced by the Kepler Project under the name "Lua File System" | **Returns** | | #### [dir](#dir) -| **Signature** | `hs.fs.dir(path) -> iter_fn, dir_obj` | +| **Signature** | `hs.fs.dir(path) -> iter_fn, dir_obj, nil, dir_obj` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Creates an iterator for walking a filesystem path | | **Parameters** | | -| **Returns** | | -| **Notes** | | +| **Returns** | | +| **Notes** | | #### [displayName](#displayname) | **Signature** | `hs.fs.displayName(filepath) -> string` | @@ -158,7 +157,7 @@ This module is produced by the Kepler Project under the name "Lua File System" | **Type** | Function | | **Description** | Gets the absolute path of a given path | | **Parameters** | | -| **Returns** | | +| **Returns** | | #### [pathToBookmark](#pathtobookmark) | **Signature** | `hs.fs.pathToBookmark(path) -> string | nil` | @@ -192,7 +191,7 @@ This module is produced by the Kepler Project under the name "Lua File System" | **Description** | Gets the attributes of a symbolic link | | **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | #### [tagsAdd](#tagsadd) | **Signature** | `hs.fs.tagsAdd(filepath, tags)` | @@ -250,3 +249,11 @@ This module is produced by the Kepler Project under the name "Lua File System" | **Parameters** | | | **Returns** | | +#### [urlFromPath](#urlfrompath) +| **Signature** | `hs.fs.urlFromPath(path) -> string | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Returns the encoded URL from a path. | +| **Parameters** | | +| **Returns** | | + diff --git a/api/hs/hs.fs.xattr.md b/api/hs/hs.fs.xattr.md index 10a9594..43f939a 100644 --- a/api/hs/hs.fs.xattr.md +++ b/api/hs/hs.fs.xattr.md @@ -43,7 +43,7 @@ Note that the following options did not seem to be valid for the initial tests p | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | A wrapper to [hs.fs.xattr.get](#get) which returns non UTF-8 data as a hexadecimal dump provided by `hs.utf8.hexDump`. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | diff --git a/api/hs/hs.geometry.md b/api/hs/hs.geometry.md index 906d441..8cb5350 100644 --- a/api/hs/hs.geometry.md +++ b/api/hs/hs.geometry.md @@ -94,6 +94,7 @@ You can use any of these anywhere an hs.geometry object is expected in Hammerspo | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constructor | | **Description** | Creates a new hs.geometry object | +| **Parameters** | | | **Returns** | | #### [point](#point) diff --git a/api/hs/hs.grid.md b/api/hs/hs.grid.md index 57e4c55..38a192a 100644 --- a/api/hs/hs.grid.md +++ b/api/hs/hs.grid.md @@ -224,7 +224,7 @@ After highlighting enough cells, press enter to move/resize the window to the hi | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Shows the grid and starts the modal interactive resizing process for the focused or frontmost window. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | @@ -241,5 +241,6 @@ After highlighting enough cells, press enter to move/resize the window to the hi | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Toggles the grid and modal resizing mode - see `hs.grid.show()` and `hs.grid.hide()` | +| **Parameters** | | | **Returns** | | diff --git a/api/hs/hs.hid.md b/api/hs/hs.hid.md index c79a603..37176c2 100644 --- a/api/hs/hs.hid.md +++ b/api/hs/hs.hid.md @@ -23,6 +23,7 @@ Portions sourced from (https://discussions.apple.com/thread/7094207). | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Checks the state of the caps lock via HID | +| **Parameters** | | | **Returns** | | #### [set](#set) @@ -38,5 +39,6 @@ Portions sourced from (https://discussions.apple.com/thread/7094207). | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Toggles the state of caps lock via HID | +| **Parameters** | | | **Returns** | | diff --git a/api/hs/hs.hotkey.md b/api/hs/hs.hotkey.md index 3e1c716..393a6e3 100644 --- a/api/hs/hs.hotkey.md +++ b/api/hs/hs.hotkey.md @@ -90,13 +90,13 @@ Create and manage global keyboard shortcuts ### Constructors #### [bind](#bind) -| **Signature** | `hs.hotkey.bind(mods, key, message, pressedfn, releasedfn, repeatfn) -> hs.hotkey object` | +| **Signature** | `hs.hotkey.bind(mods, key, [message,] pressedfn, releasedfn, repeatfn) -> hs.hotkey object` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constructor | -| **Description** | Creates a hotkey and enables it immediately | -| **Parameters** | | -| **Returns** | | -| **Notes** | | +| **Description** | Creates a new hotkey and enables it immediately | +| **Parameters** | | +| **Returns** | | +| **Notes** | | #### [bindSpec](#bindspec) | **Signature** | `hs.hotkey.bindSpec(keyspec, ...) -> hs.hotkey object` | diff --git a/api/hs/hs.http.md b/api/hs/hs.http.md index e089f7d..6b9559f 100644 --- a/api/hs/hs.http.md +++ b/api/hs/hs.http.md @@ -54,7 +54,7 @@ Perform HTTP requests | **Description** | Convert all recognized HTML Entities in the `inString` to appropriate UTF8 byte sequences and returns the converted text. | | **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | #### [doAsyncRequest](#doasyncrequest) | **Signature** | `hs.http.doAsyncRequest(url, method, data, headers, callback, [cachePolicy])` | @@ -88,6 +88,7 @@ Perform HTTP requests | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Sends an HTTP GET request to a URL | +| **Parameters** | | | **Returns** | | | **Notes** | | @@ -96,6 +97,7 @@ Perform HTTP requests | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Sends an HTTP POST request to a URL | +| **Parameters** | | | **Returns** | | | **Notes** | | diff --git a/api/hs/hs.image.md b/api/hs/hs.image.md index 590f440..b7057f5 100644 --- a/api/hs/hs.image.md +++ b/api/hs/hs.image.md @@ -8,6 +8,8 @@ A module for capturing and manipulating image objects from other modules for use * Constants - Useful values which cannot be changed * [additionalImageNames](#additionalimagenames) * [systemImageNames](#systemimagenames) +* Functions - API calls offered directly by the extension + * [getExifFromPath](#getexiffrompath) * Constructors - API calls which return an object, typically one that offers API methods * [iconForFile](#iconforfile) * [iconForFileType](#iconforfiletype) @@ -48,6 +50,16 @@ A module for capturing and manipulating image objects from other modules for use | **Description** | Table containing the names of internal system images for use with hs.drawing.image | | **Notes** | | +### Functions + +#### [getExifFromPath](#getexiffrompath) +| **Signature** | `hs.image.getExifFromPath(path) -> table | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Gets the EXIF metadata information from an image file. | +| **Parameters** | | +| **Returns** | | + ### Constructors #### [iconForFile](#iconforfile) diff --git a/api/hs/hs.keycodes.md b/api/hs/hs.keycodes.md index d026dad..065d9ea 100644 --- a/api/hs/hs.keycodes.md +++ b/api/hs/hs.keycodes.md @@ -1,7 +1,7 @@ # [docs](index.md) » hs.keycodes --- -Convert between key-strings and key-codes. Also provides funcionality for querying and changing keyboard layouts. +Convert between key-strings and key-codes. Also provides functionality for querying and changing keyboard layouts. ## API Overview * Constants - Useful values which cannot be changed diff --git a/api/hs/hs.layout.md b/api/hs/hs.layout.md index e905517..4accea4 100644 --- a/api/hs/hs.layout.md +++ b/api/hs/hs.layout.md @@ -100,5 +100,5 @@ This extension allows you to trigger window placement/sizing to a number of wind | **Description** | Applies a layout to applications/windows | | **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | diff --git a/api/hs/hs.location.md b/api/hs/hs.location.md index 6ec00d2..6061941 100644 --- a/api/hs/hs.location.md +++ b/api/hs/hs.location.md @@ -180,7 +180,7 @@ The following labels are used to describe tables which are used by functions and | **Notes** | | #### [callback](#callback) -| **Signature** | `hs.location:callback(fn | nil) -> locationObject` | +| **Signature** | `hs.location:callback(fn) -> locationObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Sets or removes the callback function for this locationObject | diff --git a/api/hs/hs.math.md b/api/hs/hs.math.md index 4ca0a73..b43a86e 100644 --- a/api/hs/hs.math.md +++ b/api/hs/hs.math.md @@ -68,6 +68,7 @@ Additional functions and values that are specific to Hammerspoon which provide e | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Returns whether or not the value is a finite number | +| **Parameters** | | | **Returns** | | | **Notes** | | diff --git a/api/hs/hs.md b/api/hs/hs.md index 705ee8d..398daab 100644 --- a/api/hs/hs.md +++ b/api/hs/hs.md @@ -9,7 +9,7 @@ Core Hammerspoon functionality * [hs.applescript](hs.applescript.md) * [hs.application](hs.application.md) * [hs.audiodevice](hs.audiodevice.md) - * [hs.audiounit](hs.audiounit.md) + * [hs.axuielement](hs.axuielement.md) * [hs.base64](hs.base64.md) * [hs.battery](hs.battery.md) * [hs.bonjour](hs.bonjour.md) @@ -216,7 +216,7 @@ Core Hammerspoon functionality | **Signature** | `hs.accessibilityState(shouldPrompt) -> isEnabled` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | -| **Description** | | +| **Description** | Checks the Accessibility Permissions for Hammerspoon, and optionally allows you to prompt for permissions. | | **Parameters** | | | **Returns** | | | **Notes** | | @@ -251,7 +251,7 @@ Core Hammerspoon functionality | **Signature** | `hs.cameraState(shouldPrompt) -> boolean` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | -| **Description** | | +| **Description** | Checks the Camera Permissions for Hammerspoon, and optionally allows you to prompt for permissions. | | **Parameters** | | | **Returns** | | | **Notes** | | @@ -296,6 +296,7 @@ Core Hammerspoon functionality | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Closes the Hammerspoon Preferences window | +| **Parameters** | | | **Returns** | | #### [consoleOnTop](#consoleontop) @@ -338,6 +339,8 @@ Core Hammerspoon functionality | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Makes Hammerspoon the foreground app. | +| **Parameters** | | +| **Returns** | | #### [getObjectMetatable](#getobjectmetatable) | **Signature** | `hs.getObjectMetatable(name) -> table or nil` | @@ -372,7 +375,7 @@ Core Hammerspoon functionality | **Description** | Loads a Spoon | | **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | #### [menuIcon](#menuicon) | **Signature** | `hs.menuIcon([state]) -> bool` | @@ -386,7 +389,7 @@ Core Hammerspoon functionality | **Signature** | `hs.microphoneState(shouldPrompt) -> boolean` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | -| **Description** | | +| **Description** | Checks the Microphone Permissions for Hammerspoon, and optionally allows you to prompt for permissions. | | **Parameters** | | | **Returns** | | | **Notes** | | @@ -404,6 +407,8 @@ Core Hammerspoon functionality | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Displays the OS X About panel for Hammerspoon; implicitly focuses Hammerspoon. | +| **Parameters** | | +| **Returns** | | #### [openConsole](#openconsole) | **Signature** | `hs.openConsole([bringToFront])` | @@ -427,6 +432,8 @@ Core Hammerspoon functionality | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Displays the Hammerspoon Preferences panel; implicitly focuses Hammerspoon. | +| **Parameters** | | +| **Returns** | | #### [preferencesDarkMode](#preferencesdarkmode) | **Signature** | `hs.preferencesDarkMode([state]) -> bool` | @@ -467,12 +474,14 @@ Core Hammerspoon functionality | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Reloads your init-file in a fresh Lua environment. | +| **Parameters** | | +| **Returns** | | #### [screenRecordingState](#screenrecordingstate) | **Signature** | `hs.screenRecordingState(shouldPrompt) -> isEnabled` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | -| **Description** | | +| **Description** | Checks the Screen Recording Permissions for Hammerspoon, and optionally allows you to prompt for permissions. | | **Parameters** | | | **Returns** | | | **Notes** | | @@ -511,5 +520,5 @@ Core Hammerspoon functionality | **Description** | Get or set the "Upload Crash Data" preference for Hammerspoon | | **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | diff --git a/api/hs/hs.menubar.md b/api/hs/hs.menubar.md index b96b18d..fc30151 100644 --- a/api/hs/hs.menubar.md +++ b/api/hs/hs.menubar.md @@ -71,6 +71,7 @@ Create and manage menubar icons | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Returns the menubar item frame | +| **Parameters** | | | **Returns** | | | **Notes** | | diff --git a/api/hs/hs.midi.md b/api/hs/hs.midi.md index 25892c6..1eb3ae5 100644 --- a/api/hs/hs.midi.md +++ b/api/hs/hs.midi.md @@ -102,7 +102,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ### Methods #### [callback](#callback) -| **Signature** | `hs.midi:callback(callbackFn | nil)` | +| **Signature** | `hs.midi:callback(callbackFn)` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Sets or removes a callback function for the `hs.midi` object. | diff --git a/api/hs/hs.mouse.md b/api/hs/hs.mouse.md index d723da0..2232052 100644 --- a/api/hs/hs.mouse.md +++ b/api/hs/hs.mouse.md @@ -33,14 +33,13 @@ misrepresented as being the original software. ## API Overview * Functions - API calls offered directly by the extension + * [absolutePosition](#absoluteposition) * [count](#count) - * [getAbsolutePosition](#getabsoluteposition) * [getButtons](#getbuttons) * [getCurrentScreen](#getcurrentscreen) * [getRelativePosition](#getrelativeposition) * [names](#names) * [scrollDirection](#scrolldirection) - * [setAbsolutePosition](#setabsoluteposition) * [setRelativePosition](#setrelativeposition) * [trackingSpeed](#trackingspeed) @@ -48,6 +47,15 @@ misrepresented as being the original software. ### Functions +#### [absolutePosition](#absoluteposition) +| **Signature** | `hs.mouse.absolutePosition([point]) -> point` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Get or set the absolute co-ordinates of the mouse pointer | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + #### [count](#count) | **Signature** | `hs.mouse.count([includeInternal]) -> number` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| @@ -57,21 +65,12 @@ misrepresented as being the original software. | **Returns** | | | **Notes** | | -#### [getAbsolutePosition](#getabsoluteposition) -| **Signature** | `hs.mouse.getAbsolutePosition() -> point` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Gets the absolute co-ordinates of the mouse pointer | -| **Parameters** | | -| **Returns** | | -| **Notes** | | - #### [getButtons](#getbuttons) | **Signature** | `hs.mouse.getButtons() -> table` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Returns a table containing the current mouse buttons being pressed *at this instant*. | -| **Parameters** |

None

| +| **Parameters** | | | **Returns** | | | **Notes** | | @@ -109,15 +108,6 @@ misrepresented as being the original software. | **Parameters** | | | **Returns** | | -#### [setAbsolutePosition](#setabsoluteposition) -| **Signature** | `hs.mouse.setAbsolutePosition(point)` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Sets the absolute co-ordinates of the mouse pointer | -| **Parameters** | | -| **Returns** | | -| **Notes** | | - #### [setRelativePosition](#setrelativeposition) | **Signature** | `hs.mouse.setRelativePosition(point[, screen])` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| @@ -132,6 +122,6 @@ misrepresented as being the original software. | **Type** | Function | | **Description** | Gets/Sets the current system mouse tracking speed setting | | **Parameters** | | -| **Returns** | | -| **Notes** | | +| **Returns** | | +| **Notes** | | diff --git a/api/hs/hs.network.configuration.md b/api/hs/hs.network.configuration.md index c5c13e0..36fd1ce 100644 --- a/api/hs/hs.network.configuration.md +++ b/api/hs/hs.network.configuration.md @@ -125,7 +125,7 @@ This sub-module provides access to the current location set configuration settin | **Notes** | | #### [setCallback](#setcallback) -| **Signature** | `hs.network.configuration:setCallback(function | nil) -> storeObject` | +| **Signature** | `hs.network.configuration:setCallback(function) -> storeObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Set or remove the callback function for a store object | diff --git a/api/hs/hs.network.md b/api/hs/hs.network.md index 929b636..93f369f 100644 --- a/api/hs/hs.network.md +++ b/api/hs/hs.network.md @@ -22,11 +22,11 @@ This module provides functions for inquiring about and monitoring changes to the ### Functions #### [addresses](#addresses) -| **Signature** | `hs.network.addresses([interface, ...]) -> table` | +| **Signature** | `hs.network.addresses([interface_list]) -> table` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Returns a list of the IPv4 and IPv6 addresses for the specified interfaces, or all interfaces if no arguments are given. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | @@ -44,6 +44,7 @@ This module provides functions for inquiring about and monitoring changes to the | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Returns the user defined name for the specified interface or the primary interface if no interface is specified. | +| **Parameters** | | | **Returns** | | | **Notes** | | diff --git a/api/hs/hs.network.ping.echoRequest.md b/api/hs/hs.network.ping.echoRequest.md index df20f72..90281cb 100644 --- a/api/hs/hs.network.ping.echoRequest.md +++ b/api/hs/hs.network.ping.echoRequest.md @@ -126,7 +126,7 @@ In cases where the callback receives a "receivedUnexpectedPacket" message becaus | **Notes** | | #### [setCallback](#setcallback) -| **Signature** | `hs.network.ping.echoRequest:setCallback(fn | nil) -> echoRequestObject` | +| **Signature** | `hs.network.ping.echoRequest:setCallback(fn) -> echoRequestObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Set or remove the object callback function | diff --git a/api/hs/hs.network.ping.md b/api/hs/hs.network.ping.md index f4548a3..918ee40 100644 --- a/api/hs/hs.network.ping.md +++ b/api/hs/hs.network.ping.md @@ -122,7 +122,7 @@ This module provides a basic ping function which can test host availability. Pin | **Returns** | | #### [setCallback](#setcallback) -| **Signature** | `hs.network.ping:setCallback(fn | nil) -> pingObject` | +| **Signature** | `hs.network.ping:setCallback(fn) -> pingObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Set or remoce the callback function for the pingObject. | diff --git a/api/hs/hs.network.reachability.md b/api/hs/hs.network.reachability.md index 112eaaf..f49334c 100644 --- a/api/hs/hs.network.reachability.md +++ b/api/hs/hs.network.reachability.md @@ -107,7 +107,7 @@ A specific test for determining if an OpenVPN network is available. This exampl ### Methods #### [setCallback](#setcallback) -| **Signature** | `hs.network.reachability:setCallback(function | nil) -> reachabilityObject` | +| **Signature** | `hs.network.reachability:setCallback(function) -> reachabilityObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Set or remove the callback function for a reachability object | diff --git a/api/hs/hs.notify.md b/api/hs/hs.notify.md index dfb2b71..dc42f48 100644 --- a/api/hs/hs.notify.md +++ b/api/hs/hs.notify.md @@ -46,7 +46,6 @@ This module is based in part on code from the previous incarnation of Mjolnir by * [informativeText](#informativetext) * [otherButtonTitle](#otherbuttontitle) * [presented](#presented) - * [release](#release) * [response](#response) * [responsePlaceholder](#responseplaceholder) * [schedule](#schedule) @@ -124,7 +123,7 @@ This module is based in part on code from the previous incarnation of Mjolnir by | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Unregisters a function callback so that it is no longer available as a callback when notifications corresponding to the specified entry are interacted with. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | #### [unregisterall](#unregisterall) @@ -313,15 +312,6 @@ This module is based in part on code from the previous incarnation of Mjolnir by | **Returns** | | | **Notes** | | -#### [release](#release) -| **Signature** | `hs.notify:release() -> notificationObject` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Method | -| **Description** | This is a no-op included for backwards compatibility. | -| **Parameters** | | -| **Returns** | | -| **Notes** | | - #### [response](#response) | **Signature** | `hs.notify:response() -> string | nil` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| @@ -398,12 +388,13 @@ This module is based in part on code from the previous incarnation of Mjolnir by | **Type** | Method | | **Description** | Withdraws a delivered notification from the Notification Center. | | **Parameters** | | -| **Returns** | | +| **Returns** | | #### [withdrawAfter](#withdrawafter) | **Signature** | `hs.notify:withdrawAfter([seconds]) -> notificationObject | number` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Get or set the number of seconds after which to automatically withdraw a notification | +| **Parameters** | | | **Returns** | | diff --git a/api/hs/hs.pasteboard.md b/api/hs/hs.pasteboard.md index 49d9575..f62d7fd 100644 --- a/api/hs/hs.pasteboard.md +++ b/api/hs/hs.pasteboard.md @@ -11,6 +11,7 @@ This module is based partially on code from the previous incarnation of Mjolnir ## API Overview * Functions - API calls offered directly by the extension * [allContentTypes](#allcontenttypes) + * [callbackWhenChanged](#callbackwhenchanged) * [changeCount](#changecount) * [clearContents](#clearcontents) * [contentTypes](#contenttypes) @@ -48,6 +49,15 @@ This module is based partially on code from the previous incarnation of Mjolnir | **Parameters** | | | **Returns** | | +#### [callbackWhenChanged](#callbackwhenchanged) +| **Signature** | `hs.pasteboard.callbackWhenChanged([name], [timeout], callback) -> None` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Invokes callback when the specified pasteoard has changed or the timeout is reached. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + #### [changeCount](#changecount) | **Signature** | `hs.pasteboard.changeCount([name]) -> number` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| diff --git a/api/hs/hs.plist.md b/api/hs/hs.plist.md index 24e3675..8080e40 100644 --- a/api/hs/hs.plist.md +++ b/api/hs/hs.plist.md @@ -8,6 +8,7 @@ Read and write Property List files * [read](#read) * [readString](#readstring) * [write](#write) + * [writeString](#writestring) ## API Documentation @@ -22,11 +23,11 @@ Read and write Property List files | **Returns** | | #### [readString](#readstring) -| **Signature** | `hs.plist.readString(value) -> table | nil` | +| **Signature** | `hs.plist.readString(value, [binary]) -> table | nil` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Interpretes a property list file within a string into a table. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | #### [write](#write) @@ -38,3 +39,11 @@ Read and write Property List files | **Returns** | | | **Notes** | | +#### [writeString](#writestring) +| **Signature** | `hs.plist.writeString(data, [binary]) -> string | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Interpretes a property list file within a string into a table. | +| **Parameters** | | +| **Returns** | | + diff --git a/api/hs/hs.screen.md b/api/hs/hs.screen.md index cbe5155..d38afb7 100644 --- a/api/hs/hs.screen.md +++ b/api/hs/hs.screen.md @@ -37,6 +37,8 @@ System Preferences->Displays->Arrangement). The origin `0,0` is at the top left * [getUUID](#getuuid) * [id](#id) * [localToAbsolute](#localtoabsolute) + * [mirrorOf](#mirrorof) + * [mirrorStop](#mirrorstop) * [name](#name) * [next](#next) * [position](#position) @@ -147,8 +149,8 @@ System Preferences->Displays->Arrangement). The origin `0,0` is at the top left | **Type** | Method | | **Description** | Returns a table containing the screen modes supported by the screen. A screen mode is a combination of resolution, scaling factor and colour depth | | **Parameters** | | -| **Returns** | | -| **Notes** | | +| **Returns** | | +| **Notes** | | #### [currentMode](#currentmode) | **Signature** | `hs.screen:currentMode() -> table` | @@ -156,7 +158,7 @@ System Preferences->Displays->Arrangement). The origin `0,0` is at the top left | **Type** | Method | | **Description** | Returns a table describing the current screen mode | | **Parameters** | | -| **Returns** | | +| **Returns** | | #### [desktopImageURL](#desktopimageurl) | **Signature** | `hs.screen:desktopImageURL([imageURL])` | @@ -248,6 +250,22 @@ System Preferences->Displays->Arrangement). The origin `0,0` is at the top left | **Parameters** | | | **Returns** | | +#### [mirrorOf](#mirrorof) +| **Signature** | `hs.screen:mirrorOf(aScreen[, permanent]) -> bool` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Make this screen mirror another | +| **Parameters** | | +| **Returns** | | + +#### [mirrorStop](#mirrorstop) +| **Signature** | `hs.screen:mirrorStop([permanent]) -> bool` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Stops this screen mirroring another | +| **Parameters** | | +| **Returns** | | + #### [name](#name) | **Signature** | `hs.screen:name() -> string or nil` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| @@ -322,11 +340,11 @@ System Preferences->Displays->Arrangement). The origin `0,0` is at the top left | **Returns** | | #### [setMode](#setmode) -| **Signature** | `hs.screen:setMode(width, height, scale) -> boolean` | +| **Signature** | `hs.screen:setMode(width, height, scale, frequency, depth) -> boolean` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Sets the screen to a new mode | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | @@ -371,7 +389,7 @@ System Preferences->Displays->Arrangement). The origin `0,0` is at the top left | **Returns** | | #### [toEast](#toeast) -| **Signature** | `hs.screen:toEast() -> hs.screen object` | +| **Signature** | `hs.screen:toEast(from, strict) -> hs.screen object` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Gets the first screen to the east of this one, ordered by proximity to its center or a specified point. | @@ -379,7 +397,7 @@ System Preferences->Displays->Arrangement). The origin `0,0` is at the top left | **Returns** | | #### [toNorth](#tonorth) -| **Signature** | `hs.screen:toNorth() -> hs.screen object` | +| **Signature** | `hs.screen:toNorth(from, strict) -> hs.screen object` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Gets the first screen to the north of this one, ordered by proximity to its center or a specified point. | @@ -387,7 +405,7 @@ System Preferences->Displays->Arrangement). The origin `0,0` is at the top left | **Returns** | | #### [toSouth](#tosouth) -| **Signature** | `hs.screen:toSouth() -> hs.screen object` | +| **Signature** | `hs.screen:toSouth(from, strict) -> hs.screen object` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Gets the first screen to the south of this one, ordered by proximity to its center or a specified point. | @@ -404,7 +422,7 @@ System Preferences->Displays->Arrangement). The origin `0,0` is at the top left | **Notes** | | #### [toWest](#towest) -| **Signature** | `hs.screen:toWest() -> hs.screen object` | +| **Signature** | `hs.screen:toWest(from, strict) -> hs.screen object` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Gets the first screen to the west of this one, ordered by proximity to its center or a specified point. | diff --git a/api/hs/hs.screen.watcher.md b/api/hs/hs.screen.watcher.md index 4c6c2b4..f231e58 100644 --- a/api/hs/hs.screen.watcher.md +++ b/api/hs/hs.screen.watcher.md @@ -27,7 +27,7 @@ This module is based primarily on code from the previous incarnation of Mjolnir | **Description** | Creates a new screen-watcher. | | **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | #### [newWithActiveScreen](#newwithactivescreen) | **Signature** | `hs.screen.watcher.newWithActiveScreen(fn) -> watcher` | @@ -36,7 +36,7 @@ This module is based primarily on code from the previous incarnation of Mjolnir | **Description** | Creates a new screen-watcher that is also called when the active screen changes. | | **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | ### Methods diff --git a/api/hs/hs.serial.md b/api/hs/hs.serial.md index 2304bc1..cbc1d87 100644 --- a/api/hs/hs.serial.md +++ b/api/hs/hs.serial.md @@ -98,7 +98,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI | **Notes** | | #### [callback](#callback) -| **Signature** | `hs.serial:callback(callbackFn | nil) -> serialPortObject` | +| **Signature** | `hs.serial:callback(callbackFn) -> serialPortObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Sets or removes a callback function for the `hs.serial` object. | @@ -119,8 +119,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Gets or sets the number of data bits for the serial port. | -| **Parameters** | | -| **Returns** | | +| **Parameters** | | +| **Returns** | | #### [isOpen](#isopen) | **Signature** | `hs.serial:isOpen() -> boolean` | @@ -152,7 +152,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI | **Type** | Method | | **Description** | Gets or sets the parity for the serial port. | | **Parameters** | | -| **Returns** | | +| **Returns** | | #### [path](#path) | **Signature** | `hs.serial:path() -> string` | @@ -184,7 +184,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI | **Type** | Method | | **Description** | Gets or sets the number of stop bits for the serial port. | | **Parameters** | | -| **Returns** | | +| **Returns** | | #### [usesDTRDSRFlowControl](#usesdtrdsrflowcontrol) | **Signature** | `hs.serial:usesDTRDSRFlowControl([value]) -> boolean | serialPortObject` | diff --git a/api/hs/hs.settings.md b/api/hs/hs.settings.md index 2dad75f..125cfc8 100644 --- a/api/hs/hs.settings.md +++ b/api/hs/hs.settings.md @@ -69,9 +69,9 @@ This module is based partially on code from the previous incarnation of Mjolnir | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Saves a setting with common datatypes | -| **Parameters** | | +| **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | #### [setData](#setdata) | **Signature** | `hs.settings.setData(key, val)` | @@ -91,7 +91,7 @@ This module is based partially on code from the previous incarnation of Mjolnir | **Notes** | | #### [watchKey](#watchkey) -| **Signature** | `hs.settings.watchKey(identifier, key, [fn | nil]) -> identifier | current value` | +| **Signature** | `hs.settings.watchKey(identifier, key, [fn]) -> identifier | current value` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Get or set a watcher to invoke a callback when the specified settings key changes | diff --git a/api/hs/hs.sharing.md b/api/hs/hs.sharing.md index aa98d02..6a4b22f 100644 --- a/api/hs/hs.sharing.md +++ b/api/hs/hs.sharing.md @@ -126,11 +126,11 @@ Common item data types that can be shared with Sharing Services include (but are | **Notes** | | #### [callback](#callback) -| **Signature** | `hs.sharing:callback(function | nil) -> sharingObject` | +| **Signature** | `hs.sharing:callback(fn) -> sharingObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Set or clear the callback for the sharingObject. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | diff --git a/api/hs/hs.sound.md b/api/hs/hs.sound.md index 6600108..4998d4e 100644 --- a/api/hs/hs.sound.md +++ b/api/hs/hs.sound.md @@ -5,6 +5,7 @@ Load/play/manipulate sound files ## API Overview * Functions - API calls offered directly by the extension + * [getAudioEffectNames](#getaudioeffectnames) * [soundFileTypes](#soundfiletypes) * [soundTypes](#soundtypes) * [systemSounds](#systemsounds) @@ -30,6 +31,15 @@ Load/play/manipulate sound files ### Functions +#### [getAudioEffectNames](#getaudioeffectnames) +| **Signature** | `hs.sound.getAudioEffectNames() -> table` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Gets a table of installed Audio Units Effect names. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + #### [soundFileTypes](#soundfiletypes) | **Signature** | `hs.sound.soundFileTypes() -> table` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| diff --git a/api/hs/hs.spaces.md b/api/hs/hs.spaces.md new file mode 100644 index 0000000..2942d94 --- /dev/null +++ b/api/hs/hs.spaces.md @@ -0,0 +1,12 @@ +# [docs](index.md) » hs.spaces +--- + +Controls for macOS Spaces. Currenly only used by `hs.spaces.watcher`. + +## Submodules + * [hs.spaces.watcher](hs.spaces.watcher.md) + +## API Overview + +## API Documentation + diff --git a/api/hs/hs.speech.listener.md b/api/hs/hs.speech.listener.md index f7066a1..4b3239e 100644 --- a/api/hs/hs.speech.listener.md +++ b/api/hs/hs.speech.listener.md @@ -77,7 +77,7 @@ The speech recognizer functions and methods provide a way to add commands which | **Returns** | | #### [setCallback](#setcallback) -| **Signature** | `hs.speech.listener:setCallback(fn | nil) -> recognizerObject` | +| **Signature** | `hs.speech.listener:setCallback(fn) -> recognizerObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Sets or removes a callback function for the speech recognizer. | diff --git a/api/hs/hs.speech.md b/api/hs/hs.speech.md index a368c3c..f264c24 100644 --- a/api/hs/hs.speech.md +++ b/api/hs/hs.speech.md @@ -180,7 +180,7 @@ A discussion concerning the embedding of commands into the text to be spoken can | **Notes** | | #### [setCallback](#setcallback) -| **Signature** | `hs.speech:setCallback(fn | nil) -> synthesizerObject` | +| **Signature** | `hs.speech:setCallback(fn) -> synthesizerObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Sets or removes a callback function for the synthesizer. | diff --git a/api/hs/hs.spoons.md b/api/hs/hs.spoons.md index c860e7f..8c418ce 100644 --- a/api/hs/hs.spoons.md +++ b/api/hs/hs.spoons.md @@ -3,7 +3,7 @@ Utility and management functions for Spoons Spoons are Lua plugins for Hammerspoon. -See http://www.hammerspoon.org/Spoons/ for more information +See https://www.hammerspoon.org/Spoons/ for more information ## API Overview * Functions - API calls offered directly by the extension @@ -53,7 +53,7 @@ See http://www.hammerspoon.org/Spoons/ for more information | **Returns** | | #### [newSpoon](#newspoon) -| **Signature** | `hs.spoons.newSpoon(name, basedir, metadata) -> string | nil` | +| **Signature** | `hs.spoons.newSpoon(name, basedir, metadata, [template]) -> string | nil` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Create a skeleton for a new Spoon | @@ -77,7 +77,7 @@ See http://www.hammerspoon.org/Spoons/ for more information | **Returns** | | #### [use](#use) -| **Signature** | `hs.spoons.use(name, arg) -> boolean | nil` | +| **Signature** | `hs.spoons.use(name, arg, [noerror]) -> boolean | nil` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Declaratively load and configure a Spoon | diff --git a/api/hs/hs.spotlight.md b/api/hs/hs.spotlight.md index 93fbfe5..014a15a 100644 --- a/api/hs/hs.spotlight.md +++ b/api/hs/hs.spotlight.md @@ -166,7 +166,7 @@ You can access the individual results of the query with the [hs.spotlight:result | **Notes** | | #### [setCallback](#setcallback) -| **Signature** | `hs.spotlight:setCallback(fn | nil) -> spotlightObject` | +| **Signature** | `hs.spotlight:setCallback(fn) -> spotlightObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Set or remove the callback function for the Spotlight search object. | diff --git a/api/hs/hs.sqlite3.md b/api/hs/hs.sqlite3.md index f0e3640..3bc7c01 100644 --- a/api/hs/hs.sqlite3.md +++ b/api/hs/hs.sqlite3.md @@ -4,7 +4,7 @@ Interact with SQLite databases Notes: - * This module is LSQLite 0.9.4 as found at http://lua.sqlite.org/index.cgi/index + * This module is LSQLite 0.9.5 as found at http://lua.sqlite.org/index.cgi/index * It is unmodified apart from removing `db:load_extension()` as this feature is not available in Apple's libsqlite3.dylib * For API documentation please see [http://lua.sqlite.org](http://lua.sqlite.org) diff --git a/api/hs/hs.streamdeck.md b/api/hs/hs.streamdeck.md index bb17a78..43adfab 100644 --- a/api/hs/hs.streamdeck.md +++ b/api/hs/hs.streamdeck.md @@ -78,6 +78,7 @@ This module would not have been possible without standing on the shoulders of ot | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Gets the layout of buttons the device has | +| **Parameters** | | | **Returns** | | #### [firmwareVersion](#firmwareversion) diff --git a/api/hs/hs.styledtext.md b/api/hs/hs.styledtext.md index 6070ba3..2cd1606 100644 --- a/api/hs/hs.styledtext.md +++ b/api/hs/hs.styledtext.md @@ -215,6 +215,7 @@ Note that due to differences in the way Lua determines when to use metamethods f | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Loads a font from a file at the specified path. | +| **Parameters** | | | **Returns** | | #### [validFont](#validfont) diff --git a/api/hs/hs.task.md b/api/hs/hs.task.md index ba8cef1..ed06000 100644 --- a/api/hs/hs.task.md +++ b/api/hs/hs.task.md @@ -35,7 +35,7 @@ Notes: ### Functions #### [new](#new) -| **Signature** | `hs.task.new(launchPath, callbackFn[, streamCallbackFn, arguments]) -> hs.task object` | +| **Signature** | `hs.task.new(launchPath, callbackFn[, streamCallbackFn][, arguments]) -> hs.task object` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Creates a new hs.task object | diff --git a/api/hs/hs.timer.delayed.md b/api/hs/hs.timer.delayed.md index 67df1a6..3f82119 100644 --- a/api/hs/hs.timer.delayed.md +++ b/api/hs/hs.timer.delayed.md @@ -24,7 +24,7 @@ Specialized timer objects to coalesce processing of unpredictable asynchronous e | **Description** | Creates a new delayed timer. | | **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | ### Methods @@ -58,7 +58,7 @@ Specialized timer objects to coalesce processing of unpredictable asynchronous e | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Starts or restarts the callback countdown | -| **Parameters** | | +| **Parameters** | | | **Returns** | | #### [stop](#stop) diff --git a/api/hs/hs.timer.md b/api/hs/hs.timer.md index faa600e..ece9c59 100644 --- a/api/hs/hs.timer.md +++ b/api/hs/hs.timer.md @@ -3,6 +3,10 @@ Execute functions with various timing rules +**NOTE**: timers use NSTimer internally, which will be paused when computers sleep. +Especially, repeating timers won't be triggered at the specificed time when there are sleeps in between. +The workaround is to prevent system from sleeping, configured in Energy Saver in System Preferences. + ## Submodules * [hs.timer.delayed](hs.timer.delayed.md) diff --git a/api/hs/hs.watchable.md b/api/hs/hs.watchable.md index 6264a70..51a9b65 100644 --- a/api/hs/hs.watchable.md +++ b/api/hs/hs.watchable.md @@ -44,7 +44,7 @@ The goal is to provide a mechanism for sharing state information between separat ### Methods #### [callback](#callback) -| **Signature** | `hs.watchable:callback(fn | nil) -> watchableObject` | +| **Signature** | `hs.watchable:callback(fn) -> watchableObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Change or remove the callback function for the watchableObject. | diff --git a/api/hs/hs.websocket.md b/api/hs/hs.websocket.md index c802f84..7152fc4 100644 --- a/api/hs/hs.websocket.md +++ b/api/hs/hs.websocket.md @@ -35,12 +35,13 @@ Simple websocket client. | **Returns** | | #### [send](#send) -| **Signature** | `hs.websocket:send(message) -> object` | +| **Signature** | `hs.websocket:send(message[, isData]) -> object` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | -| **Description** | Sends a message to the websocket client | -| **Parameters** | | +| **Description** | Sends a message to the websocket client. | +| **Parameters** | | | **Returns** | | +| **Notes** | | #### [status](#status) | **Signature** | `hs.websocket:status() -> string` | diff --git a/api/hs/hs.webview.md b/api/hs/hs.webview.md index e43f0c2..1a6e69e 100644 --- a/api/hs/hs.webview.md +++ b/api/hs/hs.webview.md @@ -148,7 +148,7 @@ Any suggestions or updates to the code to address any of these or other limitati | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constructor | | **Description** | Create a webviewObject and optionally modify its preferences. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | @@ -157,9 +157,9 @@ Any suggestions or updates to the code to address any of these or other limitati | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constructor | | **Description** | Create a webviewObject with some presets common to an interactive web browser. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | ### Methods @@ -214,7 +214,7 @@ Any suggestions or updates to the code to address any of these or other limitati | **Returns** | | #### [attachedToolbar](#attachedtoolbar) -| **Signature** | `hs.webview:attachedToolbar([toolbar | nil]) -> webviewObject | currentValue` | +| **Signature** | `hs.webview:attachedToolbar([toolbar]) -> webviewObject | currentValue` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Get or attach/detach a toolbar to/from the webview. | diff --git a/api/hs/hs.webview.toolbar.md b/api/hs/hs.webview.toolbar.md index 7286677..bda2d81 100644 --- a/api/hs/hs.webview.toolbar.md +++ b/api/hs/hs.webview.toolbar.md @@ -96,7 +96,7 @@ Notes: | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Get or attach/detach a toolbar to the webview, chooser, or console. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | @@ -278,7 +278,7 @@ Notes: | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Remove the toolbar item at the index position specified, or with the specified identifier, if currently present in the toolbar. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | @@ -318,7 +318,7 @@ Notes: | **Returns** | | #### [setCallback](#setcallback) -| **Signature** | `hs.webview.toolbar:setCallback(fn | nil) -> toolbarObject` | +| **Signature** | `hs.webview.toolbar:setCallback(fn) -> toolbarObject` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Sets or removes the global callback function for the toolbar. | diff --git a/api/hs/hs.window.md b/api/hs/hs.window.md index a94e061..631ba9c 100644 --- a/api/hs/hs.window.md +++ b/api/hs/hs.window.md @@ -120,7 +120,7 @@ Notes: | **Type** | Function | | **Description** | Returns the desktop "window" | | **Parameters** | | -| **Returns** | | +| **Returns** | | | **Notes** | | #### [invisibleWindows](#invisiblewindows) @@ -291,18 +291,27 @@ Notes: | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Focuses the nearest possible window to the north (i.e. up) | +| **Parameters** | | +| **Returns** | | +| **Notes** | | #### [focusWindowSouth](#focuswindowsouth) | **Signature** | `hs.window:focusWindowSouth([candidateWindows[, frontmost[, strict]]]) -> boolean` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Focuses the nearest possible window to the south (i.e. down) | +| **Parameters** | | +| **Returns** | | +| **Notes** | | #### [focusWindowWest](#focuswindowwest) | **Signature** | `hs.window:focusWindowWest([candidateWindows[, frontmost[, strict]]]) -> boolean` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Focuses the nearest possible window to the west (i.e. left) | +| **Parameters** | | +| **Returns** | | +| **Notes** | | #### [frame](#frame) | **Signature** | `hs.window:frame() -> hs.geometry rect` | @@ -333,6 +342,7 @@ Notes: | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Determines if a window is maximizable | +| **Parameters** | | | **Returns** | | #### [isMinimized](#isminimized) @@ -400,18 +410,24 @@ Notes: | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Moves the window one screen north (i.e. up) | +| **Parameters** | | +| **Returns** | | #### [moveOneScreenSouth](#moveonescreensouth) | **Signature** | `hs.window:moveOneScreenSouth([noResize, ensureInScreenBounds][, duration]) -> hs.window object` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Moves the window one screen south (i.e. down) | +| **Parameters** | | +| **Returns** | | #### [moveOneScreenWest](#moveonescreenwest) | **Signature** | `hs.window:moveOneScreenWest([noResize, ensureInScreenBounds][, duration]) -> hs.window object` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Moves the window one screen west (i.e. left) | +| **Parameters** | | +| **Returns** | | #### [moveToScreen](#movetoscreen) | **Signature** | `hs.window:moveToScreen(screen[, noResize, ensureInScreenBounds][, duration]) -> hs.window object` | @@ -607,27 +623,36 @@ Notes: | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Gets all windows to the east of this window | -| **Parameters** | | +| **Parameters** | | | **Returns** | | -| **Notes** | | +| **Notes** | | #### [windowsToNorth](#windowstonorth) | **Signature** | `hs.window:windowsToNorth([candidateWindows[, frontmost[, strict]]]) -> list of hs.window objects` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Gets all windows to the north of this window | +| **Parameters** | | +| **Returns** | | +| **Notes** | | #### [windowsToSouth](#windowstosouth) | **Signature** | `hs.window:windowsToSouth([candidateWindows[, frontmost[, strict]]]) -> list of hs.window objects` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Gets all windows to the south of this window | +| **Parameters** | | +| **Returns** | | +| **Notes** | | #### [windowsToWest](#windowstowest) | **Signature** | `hs.window:windowsToWest([candidateWindows[, frontmost[, strict]]]) -> list of hs.window objects` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Method | | **Description** | Gets all windows to the west of this window | +| **Parameters** | | +| **Returns** | | +| **Notes** | | #### [zoomButtonRect](#zoombuttonrect) | **Signature** | `hs.window:zoomButtonRect() -> rect-table or nil` | diff --git a/api/hs/hs.window.tiling.md b/api/hs/hs.window.tiling.md index 95d65c3..8a13ae6 100644 --- a/api/hs/hs.window.tiling.md +++ b/api/hs/hs.window.tiling.md @@ -24,7 +24,7 @@ The `tileWindows` function in this module is primarily meant for use by `hs.wind | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Tile (or fit) windows into a rect | -| **Parameters** | | +| **Parameters** | | | **Returns** | | | **Notes** | | diff --git a/api/hs/index.md b/api/hs/index.md index 5accfd8..3b3869c 100644 --- a/api/hs/index.md +++ b/api/hs/index.md @@ -4,14 +4,14 @@ ## Project Links | Resource | Link | | --------------- | -------------------------------- | -| Website | [http://www.hammerspoon.org/](http://www.hammerspoon.org/) | +| Website | [https://www.hammerspoon.org/](https://www.hammerspoon.org/) | | GitHub page | [https://github.com/Hammerspoon/hammerspoon](https://github.com/Hammerspoon/hammerspoon) | -| Getting Started Guide | [http://www.hammerspoon.org/go/](http://www.hammerspoon.org/go/) | +| Getting Started Guide | [https://www.hammerspoon.org/go/](https://www.hammerspoon.org/go/) | | Spoon Plugin Documentation | [https://github.com/Hammerspoon/hammerspoon/blob/master/SPOONS.md](https://github.com/Hammerspoon/hammerspoon/blob/master/SPOONS.md) | -| Official Spoon repository | [http://www.hammerspoon.org/Spoons](http://www.hammerspoon.org/Spoons) | +| Official Spoon repository | [https://www.hammerspoon.org/Spoons](https://www.hammerspoon.org/Spoons) | | IRC channel | [irc://chat.freenode.net/#hammerspoon](irc://chat.freenode.net/#hammerspoon) | | Mailing list | [https://groups.google.com/forum/#!forum/hammerspoon/](https://groups.google.com/forum/#!forum/hammerspoon/) | -| LuaSkin API docs | [http://www.hammerspoon.org/docs/LuaSkin/](http://www.hammerspoon.org/docs/LuaSkin/) | +| LuaSkin API docs | [https://www.hammerspoon.org/docs/LuaSkin/](https://www.hammerspoon.org/docs/LuaSkin/) | ## API Documentation | Module | Description | @@ -25,7 +25,9 @@ | [hs.audiodevice](hs.audiodevice.md) | Manipulate the system's audio devices | | [hs.audiodevice.datasource](hs.audiodevice.datasource.md) | Inspect/manipulate the data sources of an audio device | | [hs.audiodevice.watcher](hs.audiodevice.watcher.md) | Watch for system level audio hardware events | -| [hs.audiounit](hs.audiounit.md) | Audio Units Extension. | +| [hs.axuielement](hs.axuielement.md) | This module allows you to access the accessibility objects of running applications, their windows, menus, and other user interface elements that support the OS X accessibility API. | +| [hs.axuielement.axtextmarker](hs.axuielement.axtextmarker.md) | This submodule allows hs.axuielement to support using AXTextMarker and AXTextMarkerRange objects as parameters for parameterized Accessibility attributes with applications that support them. | +| [hs.axuielement.observer](hs.axuielement.observer.md) | This submodule allows you to create observers for accessibility elements and be notified when they trigger notifications. Not all notifications are supported by all elements and not all elements support notifications, so some trial and error will be necessary, but for compliant applications, this can allow your code to be notified when an application's user interface changes in some way. | | [hs.base64](hs.base64.md) | Base64 encoding and decoding | | [hs.battery](hs.battery.md) | Battery/power information | | [hs.battery.watcher](hs.battery.watcher.md) | Watch for battery/power state changes | @@ -79,7 +81,7 @@ | [hs.itunes](hs.itunes.md) | Controls for iTunes music player | | [hs.javascript](hs.javascript.md) | Execute JavaScript code | | [hs.json](hs.json.md) | JSON encoding and decoding | -| [hs.keycodes](hs.keycodes.md) | Convert between key-strings and key-codes. Also provides funcionality for querying and changing keyboard layouts. | +| [hs.keycodes](hs.keycodes.md) | Convert between key-strings and key-codes. Also provides functionality for querying and changing keyboard layouts. | | [hs.layout](hs.layout.md) | Window layout manager | | [hs.location](hs.location.md) | Determine the machine's location and useful information about that location | | [hs.location.geocoder](hs.location.geocoder.md) | Converts between GPS coordinates and more user friendly representations like an address or points of interest. | @@ -113,6 +115,7 @@ | [hs.socket](hs.socket.md) | Talk to custom protocols using asynchronous TCP sockets | | [hs.socket.udp](hs.socket.udp.md) | Talk to custom protocols using asynchronous UDP sockets | | [hs.sound](hs.sound.md) | Load/play/manipulate sound files | +| [hs.spaces](hs.spaces.md) | Controls for macOS Spaces. Currenly only used by `hs.spaces.watcher`. | | [hs.spaces.watcher](hs.spaces.watcher.md) | Watches for the current Space being changed | | [hs.speech](hs.speech.md) | This module provides access to the Speech Synthesizer component of OS X. | | [hs.speech.listener](hs.speech.listener.md) | This module provides access to the Speech Recognizer component of OS X. | diff --git a/api/plugins/index.md b/api/plugins/index.md index 63c4640..0aaeb08 100644 --- a/api/plugins/index.md +++ b/api/plugins/index.md @@ -4,19 +4,23 @@ ## Project Links | Resource | Link | | --------------- | -------------------------------- | -| Website | [http://www.hammerspoon.org/](http://www.hammerspoon.org/) | +| Website | [https://www.hammerspoon.org/](https://www.hammerspoon.org/) | | GitHub page | [https://github.com/Hammerspoon/hammerspoon](https://github.com/Hammerspoon/hammerspoon) | -| Getting Started Guide | [http://www.hammerspoon.org/go/](http://www.hammerspoon.org/go/) | +| Getting Started Guide | [https://www.hammerspoon.org/go/](https://www.hammerspoon.org/go/) | | Spoon Plugin Documentation | [https://github.com/Hammerspoon/hammerspoon/blob/master/SPOONS.md](https://github.com/Hammerspoon/hammerspoon/blob/master/SPOONS.md) | -| Official Spoon repository | [http://www.hammerspoon.org/Spoons](http://www.hammerspoon.org/Spoons) | +| Official Spoon repository | [https://www.hammerspoon.org/Spoons](https://www.hammerspoon.org/Spoons) | | IRC channel | [irc://chat.freenode.net/#hammerspoon](irc://chat.freenode.net/#hammerspoon) | | Mailing list | [https://groups.google.com/forum/#!forum/hammerspoon/](https://groups.google.com/forum/#!forum/hammerspoon/) | -| LuaSkin API docs | [http://www.hammerspoon.org/docs/LuaSkin/](http://www.hammerspoon.org/docs/LuaSkin/) | +| LuaSkin API docs | [https://www.hammerspoon.org/docs/LuaSkin/](https://www.hammerspoon.org/docs/LuaSkin/) | ## API Documentation | Module | Description | | ------------------------------------------------------------------ | --------------------- | -| [plugins.colorfinale.tangent](plugins.colorfinale.tangent.md) | This plugin basically just disables CP's Tangent Manager when ColorFinale is running. | +| [plugins.aftereffects.application.manager](plugins.aftereffects.application.manager.md) | Registers After Effects with the Core Application Manager if installed. | +| [plugins.aftereffects.effects](plugins.aftereffects.effects.md) | Apply an After Effect effect to selected layer | +| [plugins.aftereffects.preferences](plugins.aftereffects.preferences.md) | After Effects Preferences Panel | +| [plugins.aftereffects.shortcuts](plugins.aftereffects.shortcuts.md) | Trigger After Effects Shortcuts | +| [plugins.aftereffects.tangent.manager](plugins.aftereffects.tangent.manager.md) | Manager for After Effects Tangent Support | | [plugins.compressor.application.manager](plugins.compressor.application.manager.md) | Registers Compressor with the Core Application Manager. | | [plugins.compressor.feedback.bugreport](plugins.compressor.feedback.bugreport.md) | Sends Apple a Bug Report or Feature Request for Compressor. | | [plugins.compressor.watchfolders.panels.media](plugins.compressor.watchfolders.panels.media.md) | Compressor Watch Folder Plugin. | @@ -47,9 +51,8 @@ | [plugins.core.helpandsupport.userguide](plugins.core.helpandsupport.userguide.md) | User Guide Menu Item. | | [plugins.core.language](plugins.core.language.md) | Language Module. | | [plugins.core.loupedeck.prefs](plugins.core.loupedeck.prefs.md) | Loupedeck+ Preferences Panel | -| [plugins.core.loupedeckct.changeapplications](plugins.core.loupedeckct.changeapplications.md) | Allows you to change the Loupedeck CT application if set to manual. | -| [plugins.core.loupedeckct.manager](plugins.core.loupedeckct.manager.md) | Loupedeck CT Manager Plugin. | -| [plugins.core.loupedeckct.prefs](plugins.core.loupedeckct.prefs.md) | Loupedeck CT Preferences Panel | +| [plugins.core.loupedeckctandlive.manager](plugins.core.loupedeckctandlive.manager.md) | Loupedeck CT & Loupedeck Live Manager Plugin. | +| [plugins.core.loupedeckctandlive.prefs](plugins.core.loupedeckctandlive.prefs.md) | Loupedeck CT & Loupedeck Live Preferences Panels | | [plugins.core.loupedeckplus.prefs](plugins.core.loupedeckplus.prefs.md) | Loupedeck+ Preferences Panel | | [plugins.core.menu.manager](plugins.core.menu.manager.md) | Menu Manager Plugin. | | [plugins.core.menu.manager.section](plugins.core.menu.manager.section.md) | Controls sections for the CommandPost menu. | @@ -75,23 +78,16 @@ | [plugins.core.shortcuts.prefs](plugins.core.shortcuts.prefs.md) | Shortcuts Preferences Panel | | [plugins.core.streamdeck.manager](plugins.core.streamdeck.manager.md) | Elgato Stream Deck Manager Plugin. | | [plugins.core.streamdeck.prefs](plugins.core.streamdeck.prefs.md) | Stream Deck Preferences Panel | -| [plugins.core.tangent.commandpost](plugins.core.tangent.commandpost.md) | CommandPost Group for the Tangent. | -| [plugins.core.tangent.commandpost.favourites](plugins.core.tangent.commandpost.favourites.md) | Tangent Favourites. | -| [plugins.core.tangent.commandpost.functions](plugins.core.tangent.commandpost.functions.md) | CommandPost Functions for Tangent. | | [plugins.core.tangent.manager](plugins.core.tangent.manager.md) | Tangent Control Surface Manager | | [plugins.core.tangent.manager.action](plugins.core.tangent.manager.action.md) | Represents a Tangent Action | | [plugins.core.tangent.manager.binding](plugins.core.tangent.manager.binding.md) | Represents a Tangent Binding | +| [plugins.core.tangent.manager.connection](plugins.core.tangent.manager.connection.md) | Represents a Tangent Connection. | | [plugins.core.tangent.manager.controls](plugins.core.tangent.manager.controls.md) | Represents a Tangent Group | | [plugins.core.tangent.manager.group](plugins.core.tangent.manager.group.md) | Represents a Tangent Group. Groups can also be used to enable/disable multiple | | [plugins.core.tangent.manager.menu](plugins.core.tangent.manager.menu.md) | Represents a Tangent Menu. Menus are controls that have a fixed set of | | [plugins.core.tangent.manager.mode](plugins.core.tangent.manager.mode.md) | Represents a Tangent Mode | | [plugins.core.tangent.manager.named](plugins.core.tangent.manager.named.md) | Provides common functions for 'named' Tangent nodes | | [plugins.core.tangent.manager.parameter](plugins.core.tangent.manager.parameter.md) | Represents a Tangent Parameter control. | -| [plugins.core.tangent.os](plugins.core.tangent.os.md) | macOS Group for the Tangent. | -| [plugins.core.tangent.os.display](plugins.core.tangent.os.display.md) | Tangent Display Functions. | -| [plugins.core.tangent.os.pasteboard](plugins.core.tangent.os.pasteboard.md) | Pasteboard Tools for Tangent. | -| [plugins.core.tangent.os.sound](plugins.core.tangent.os.sound.md) | Tangent Display Functions. | -| [plugins.core.tangent.os.window](plugins.core.tangent.os.window.md) | Window Management Tools for Tangent. | | [plugins.core.tangent.prefs](plugins.core.tangent.prefs.md) | Tangent Preferences Panel | | [plugins.core.toolbox.manager](plugins.core.toolbox.manager.md) | Manager for the CommandPost Toolbox Window. | | [plugins.core.tools.caffeinate](plugins.core.tools.caffeinate.md) | Prevents your Mac from going to sleep. | @@ -111,6 +107,7 @@ | [plugins.core.watchfolders.manager.panel](plugins.core.watchfolders.manager.panel.md) | Watch Folder Panel Manager. | | [plugins.core.watchfolders.menuitem](plugins.core.watchfolders.menuitem.md) | Adds the "Setup Watch Folders" to the menu bar. | | [plugins.diskutility.application.manager](plugins.diskutility.application.manager.md) | Registers Disk Utility with the Core Application Manager. | +| [plugins.ecammlive.application.manager](plugins.ecammlive.application.manager.md) | Registers Ecamm Live with the Core Application Manager. | | [plugins.finalcutpro.actions.custom](plugins.finalcutpro.actions.custom.md) | Creates a bunch of commands that can be used to assign actions to. | | [plugins.finalcutpro.advanced.backupinterval](plugins.finalcutpro.advanced.backupinterval.md) | Change Final Cut Pro's Backup Interval. | | [plugins.finalcutpro.advanced.disablewaveforms](plugins.finalcutpro.advanced.disablewaveforms.md) | Disable Waveforms Plugin. | @@ -192,15 +189,21 @@ | [plugins.finalcutpro.tangent.audio](plugins.finalcutpro.tangent.audio.md) | Final Cut Pro Audio Inspector for Tangent | | [plugins.finalcutpro.tangent.browser](plugins.finalcutpro.tangent.browser.md) | Final Cut Pro Tangent Browser Group | | [plugins.finalcutpro.tangent.clip](plugins.finalcutpro.tangent.clip.md) | Final Cut Pro Tangent View Group | -| [plugins.finalcutpro.tangent.commandpost](plugins.finalcutpro.tangent.commandpost.md) | Final Cut Pro CommandPost Actions for Tangent | +| [plugins.finalcutpro.tangent.color](plugins.finalcutpro.tangent.color.md) | Final Cut Pro Tangent Color Manager. | +| [plugins.finalcutpro.tangent.commandpost.functions](plugins.finalcutpro.tangent.commandpost.functions.md) | CommandPost Functions for Tangent. | | [plugins.finalcutpro.tangent.common](plugins.finalcutpro.tangent.common.md) | Common Final Cut Pro functions for Tangent | | [plugins.finalcutpro.tangent.edit](plugins.finalcutpro.tangent.edit.md) | Final Cut Pro Tangent View Group | +| [plugins.finalcutpro.tangent.features](plugins.finalcutpro.tangent.features.md) | Final Cut Pro CommandPost Actions for Tangent | | [plugins.finalcutpro.tangent.generator](plugins.finalcutpro.tangent.generator.md) | Final Cut Pro Generator Inspector for Tangent | | [plugins.finalcutpro.tangent.info](plugins.finalcutpro.tangent.info.md) | Final Cut Pro Info Inspector for Tangent | -| [plugins.finalcutpro.tangent.manager](plugins.finalcutpro.tangent.manager.md) | Final Cut Pro Tangent Color Manager. | -| [plugins.finalcutpro.tangent.modes](plugins.finalcutpro.tangent.modes.md) | Final Cut Pro Modes for Tangent | +| [plugins.finalcutpro.tangent.manager](plugins.finalcutpro.tangent.manager.md) | Manager for Final Cut Pro's Tangent Support | | [plugins.finalcutpro.tangent.new](plugins.finalcutpro.tangent.new.md) | Final Cut Pro Tangent View Group | | [plugins.finalcutpro.tangent.open](plugins.finalcutpro.tangent.open.md) | Final Cut Pro Tangent Open FCPX. | +| [plugins.finalcutpro.tangent.os](plugins.finalcutpro.tangent.os.md) | macOS Group for the Tangent. | +| [plugins.finalcutpro.tangent.os.display](plugins.finalcutpro.tangent.os.display.md) | Tangent Display Functions. | +| [plugins.finalcutpro.tangent.os.pasteboard](plugins.finalcutpro.tangent.os.pasteboard.md) | Pasteboard Tools for Tangent. | +| [plugins.finalcutpro.tangent.os.sound](plugins.finalcutpro.tangent.os.sound.md) | Tangent Sound Functions. | +| [plugins.finalcutpro.tangent.os.window](plugins.finalcutpro.tangent.os.window.md) | Window Management Tools for Tangent. | | [plugins.finalcutpro.tangent.overlay](plugins.finalcutpro.tangent.overlay.md) | Final Cut Pro Tangent Viewer Overlay Group | | [plugins.finalcutpro.tangent.pasteboard](plugins.finalcutpro.tangent.pasteboard.md) | Final Cut Pro Tangent Pasteboard Group | | [plugins.finalcutpro.tangent.playback](plugins.finalcutpro.tangent.playback.md) | Final Cut Pro Tangent Playback Group/Management | @@ -268,6 +271,8 @@ | [plugins.motion.application.manager](plugins.motion.application.manager.md) | Registers Motion with the Core Application Manager. | | [plugins.motion.feedback.bugreport](plugins.motion.feedback.bugreport.md) | Sends Apple a Bug Report or Feature Request for Motion. | | [plugins.resolve.application.manager](plugins.resolve.application.manager.md) | Registers Motion with the Core Application Manager. | +| [plugins.resolve.tangent.emulation === ](plugins.resolve.tangent.emulation === .md) | Emulates a Tangent Element Panel. | +| [plugins.resolve.tangent.manager](plugins.resolve.tangent.manager.md) | Manager for DaVinci Resolve's Tangent Support | | [plugins.skype.application.manager](plugins.skype.application.manager.md) | Registers Skype with the Core Application Manager if installed. | | [plugins.skype.shortcuts](plugins.skype.shortcuts.md) | Trigger Skype Shortcuts | | [plugins.systempreferences.application.manager](plugins.systempreferences.application.manager.md) | Registers System Preferences with the Core Application Manager. | diff --git a/api/plugins/plugins.aftereffects.application.manager.md b/api/plugins/plugins.aftereffects.application.manager.md new file mode 100644 index 0000000..191c77f --- /dev/null +++ b/api/plugins/plugins.aftereffects.application.manager.md @@ -0,0 +1,9 @@ +# [docs](index.md) » plugins.aftereffects.application.manager +--- + +Registers After Effects with the Core Application Manager if installed. + +## API Overview + +## API Documentation + diff --git a/api/plugins/plugins.aftereffects.effects.md b/api/plugins/plugins.aftereffects.effects.md new file mode 100644 index 0000000..dddf720 --- /dev/null +++ b/api/plugins/plugins.aftereffects.effects.md @@ -0,0 +1,9 @@ +# [docs](index.md) » plugins.aftereffects.effects +--- + +Apply an After Effect effect to selected layer + +## API Overview + +## API Documentation + diff --git a/api/plugins/plugins.aftereffects.preferences.md b/api/plugins/plugins.aftereffects.preferences.md new file mode 100644 index 0000000..9626b27 --- /dev/null +++ b/api/plugins/plugins.aftereffects.preferences.md @@ -0,0 +1,9 @@ +# [docs](index.md) » plugins.aftereffects.preferences +--- + +After Effects Preferences Panel + +## API Overview + +## API Documentation + diff --git a/api/plugins/plugins.aftereffects.shortcuts.md b/api/plugins/plugins.aftereffects.shortcuts.md new file mode 100644 index 0000000..4bc2d2d --- /dev/null +++ b/api/plugins/plugins.aftereffects.shortcuts.md @@ -0,0 +1,9 @@ +# [docs](index.md) » plugins.aftereffects.shortcuts +--- + +Trigger After Effects Shortcuts + +## API Overview + +## API Documentation + diff --git a/api/plugins/plugins.aftereffects.tangent.manager.md b/api/plugins/plugins.aftereffects.tangent.manager.md new file mode 100644 index 0000000..2e9de44 --- /dev/null +++ b/api/plugins/plugins.aftereffects.tangent.manager.md @@ -0,0 +1,9 @@ +# [docs](index.md) » plugins.aftereffects.tangent.manager +--- + +Manager for After Effects Tangent Support + +## API Overview + +## API Documentation + diff --git a/api/plugins/plugins.colorfinale.tangent.md b/api/plugins/plugins.colorfinale.tangent.md deleted file mode 100644 index 18f909d..0000000 --- a/api/plugins/plugins.colorfinale.tangent.md +++ /dev/null @@ -1,52 +0,0 @@ -# [docs](index.md) » plugins.colorfinale.tangent ---- - -This plugin basically just disables CP's Tangent Manager when ColorFinale is running. - -## API Overview -* Variables - Configurable values - * [colorFinaleActive](#colorfinaleactive) - * [colorFinaleInstalled](#colorfinaleinstalled) - * [colorFinaleVisible](#colorfinalevisible) - * [colorFinaleWindowUI](#colorfinalewindowui) -* Functions - API calls offered directly by the extension - * [init](#init) - -## API Documentation - -### Variables - -#### [colorFinaleActive](#colorfinaleactive) -| **Signature** | `plugins.colorfinale.tangent.colorFinaleActive ` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Variable | -| **Description** | Checks to see if ColorFinale is active. | - -#### [colorFinaleInstalled](#colorfinaleinstalled) -| **Signature** | `plugins.colorfinale.tangent.colorFinaleInstalled ` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Variable | -| **Description** | Checks to see if ColorFinale is installed. This prop is cached to improve performance. | - -#### [colorFinaleVisible](#colorfinalevisible) -| **Signature** | `plugins.colorfinale.tangent.colorFinaleVisible ` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Variable | -| **Description** | Checks to see if an object is a Color Finale window. | - -#### [colorFinaleWindowUI](#colorfinalewindowui) -| **Signature** | `plugins.colorfinale.tangent.colorFinaleWindowUI ` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Variable | -| **Description** | Returns the `axuielement` for the ColorFinale window, if present. | - -### Functions - -#### [init](#init) -| **Signature** | `plugins.colorfinale.tangent.init(tangentManager) -> module` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Initialise the module. | -| **Parameters** | | -| **Returns** | | - diff --git a/api/plugins/plugins.core.action.handler.md b/api/plugins/plugins.core.action.handler.md index c048fea..e3474d5 100644 --- a/api/plugins/plugins.core.action.handler.md +++ b/api/plugins/plugins.core.action.handler.md @@ -26,6 +26,7 @@ containing the details of the action to execute if the choice is selected. * [execute](#execute) * [group](#group) * [id](#id) + * [label](#label) * [onActionId](#onactionid) * [onChoices](#onchoices) * [onExecute](#onexecute) @@ -40,7 +41,7 @@ containing the details of the action to execute if the choice is selected. | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constructor | | **Description** | Creates a new handler with the specified ID. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | ### Fields @@ -89,6 +90,14 @@ containing the details of the action to execute if the choice is selected. | **Parameters** | | | **Returns** | | +#### [label](#label) +| **Signature** | `plugins.core.action.handler:label() -> string` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns the label for this handler. | +| **Parameters** | | +| **Returns** | | + #### [onActionId](#onactionid) | **Signature** | `plugins.core.action.handler:onActionId(actionFn) -> handler` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| diff --git a/api/plugins/plugins.core.action.manager.md b/api/plugins/plugins.core.action.manager.md index 81bf2ad..4b6565f 100644 --- a/api/plugins/plugins.core.action.manager.md +++ b/api/plugins/plugins.core.action.manager.md @@ -37,7 +37,7 @@ Action Manager Module. | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Adds a new action handler with the specified unique ID and returns it for further configuration. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | #### [getActivator](#getactivator) @@ -45,7 +45,7 @@ Action Manager Module. | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Returns an activator with the specified ID. If it doesn't exist, it will be created. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | #### [getHandler](#gethandler) @@ -53,7 +53,7 @@ Action Manager Module. | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Returns an existing handler with the specified ID. | -| **Parameters** | | +| **Parameters** | | | **Returns** | | #### [getURL](#geturl) diff --git a/api/plugins/plugins.core.loupedeckctandlive.manager.md b/api/plugins/plugins.core.loupedeckctandlive.manager.md new file mode 100644 index 0000000..efd051f --- /dev/null +++ b/api/plugins/plugins.core.loupedeckctandlive.manager.md @@ -0,0 +1,79 @@ +# [docs](index.md) » plugins.core.loupedeckctandlive.manager +--- + +Loupedeck CT & Loupedeck Live Manager Plugin. + +## API Overview +* Constructors - API calls which return an object, typically one that offers API methods + * [new](#new) +* Methods - API calls which can only be made on an object returned by a constructor + * [callback](#callback) + * [clearCache](#clearcache) + * [getFlashDrivePath](#getflashdrivepath) + * [refresh](#refresh) + * [refreshItems](#refreshitems) + * [reset](#reset) + +## API Documentation + +### Constructors + +#### [new](#new) +| **Signature** | `plugins.core.loupedeckctandlive.manager.new() -> Loupedeck` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Creates a new Loupedeck object. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +### Methods + +#### [callback](#callback) +| **Signature** | `plugins.core.loupedeckctandlive.manager:callback(data) -> none` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | The Loupedeck callback. | +| **Parameters** | | +| **Returns** | | + +#### [clearCache](#clearcache) +| **Signature** | `plugins.core.loupedeckctandlive.manager:clearCache() -> none` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Clears the cache. | +| **Parameters** | | +| **Returns** | | + +#### [getFlashDrivePath](#getflashdrivepath) +| **Signature** | `plugins.core.loupedeckctandlive.manager:getFlashDrivePath() -> string` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Gets the Loupedeck Flash Drive path. | +| **Parameters** | | +| **Returns** | | + +#### [refresh](#refresh) +| **Signature** | `plugins.core.loupedeckctandlive.manager:refresh()` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Refreshes the Loupedeck screens and LED buttons. | +| **Parameters** | | +| **Returns** | | + +#### [refreshItems](#refreshitems) +| **Signature** | `plugins.core.loupedeckctandlive.manager:refreshItems() -> self` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Refreshes the items to either either local drive or the Loupedeck Flash Drive. | +| **Parameters** | | +| **Returns** | | + +#### [reset](#reset) +| **Signature** | `plugins.core.loupedeckctandlive.manager:reset()` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Resets the config back to the default layout. | +| **Parameters** | | +| **Returns** | | + diff --git a/api/plugins/plugins.core.loupedeckctandlive.prefs.md b/api/plugins/plugins.core.loupedeckctandlive.prefs.md new file mode 100644 index 0000000..5f9e2ff --- /dev/null +++ b/api/plugins/plugins.core.loupedeckctandlive.prefs.md @@ -0,0 +1,99 @@ +# [docs](index.md) » plugins.core.loupedeckctandlive.prefs +--- + +Loupedeck CT & Loupedeck Live Preferences Panels + +## API Overview +* Variables - Configurable values + * [defaultIconPath](#defaulticonpath) + * [supportedExtensions](#supportedextensions) +* Functions - API calls offered directly by the extension + * [updateUI](#updateui) +* Constructors - API calls which return an object, typically one that offers API methods + * [new](#new) +* Methods - API calls which can only be made on an object returned by a constructor + * [generateContent](#generatecontent) + * [generateKnobImages](#generateknobimages) + * [panelCallback](#panelcallback) + * [renderPanel](#renderpanel) + * [setItem](#setitem) + +## API Documentation + +### Variables + +#### [defaultIconPath](#defaulticonpath) +| **Signature** | `plugins.core.loupedeckctandlive.prefs.defaultIconPath -> string` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Variable | +| **Description** | Default Path where built-in icons are stored | + +#### [supportedExtensions](#supportedextensions) +| **Signature** | `plugins.core.loupedeckctandlive.prefs.supportedExtensions -> string` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Variable | +| **Description** | Table of supported extensions for Icons. | + +### Functions + +#### [updateUI](#updateui) +| **Signature** | `plugins.core.loupedeckctandlive.prefs:updateUI([params]) -> none` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Function | +| **Description** | Update the Preferences Panel UI. | +| **Parameters** | | +| **Returns** | | + +### Constructors + +#### [new](#new) +| **Signature** | `plugins.core.loupedeckctandlive.prefs.new() -> Loupedeck` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Creates a new Loupedeck Preferences panel. | +| **Parameters** | | +| **Returns** | | +| **Notes** | | + +### Methods + +#### [generateContent](#generatecontent) +| **Signature** | `plugins.core.loupedeckctandlive.prefs:generateContent() -> string` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Generates the Preference Panel HTML Content. | +| **Parameters** | | +| **Returns** | | + +#### [generateKnobImages](#generateknobimages) +| **Signature** | `plugins.core.loupedeckctandlive.prefs:generateKnobImages(app, bank, id) -> none` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Generates a combined image for all the knobs. | +| **Parameters** | | +| **Returns** | | + +#### [panelCallback](#panelcallback) +| **Signature** | `plugins.core.loupedeckctandlive.prefs:panelCallback() -> none` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | JavaScript Callback for the Preferences Panel | +| **Parameters** | | +| **Returns** | | + +#### [renderPanel](#renderpanel) +| **Signature** | `plugins.core.loupedeckctandlive.prefs:renderPanel(context) -> none` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Generates the Preference Panel HTML Content. | +| **Parameters** | | +| **Returns** | | + +#### [setItem](#setitem) +| **Signature** | `plugins.core.loupedeckctandlive.prefs:setItem(app, bank, controlType, id, valueA, valueB) -> none` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Update the Loupedeck CT layout file. | +| **Parameters** | | +| **Returns** | | + diff --git a/api/plugins/plugins.core.tangent.commandpost.favourites.md b/api/plugins/plugins.core.tangent.commandpost.favourites.md deleted file mode 100644 index fd99a55..0000000 --- a/api/plugins/plugins.core.tangent.commandpost.favourites.md +++ /dev/null @@ -1,57 +0,0 @@ -# [docs](index.md) » plugins.core.tangent.commandpost.favourites ---- - -Tangent Favourites. - -## API Overview -* Functions - API calls offered directly by the extension - * [clearAction](#clearaction) - * [favourites](#favourites) - * [init](#init) - * [saveAction](#saveaction) - * [updateControls](#updatecontrols) - -## API Documentation - -### Functions - -#### [clearAction](#clearaction) -| **Signature** | `plugins.core.tangent.commandpost.favourites.clearAction(buttonID) -> none` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Clears an Action from Favourites. | -| **Parameters** | | -| **Returns** | | - -#### [favourites](#favourites) -| **Signature** | `plugins.core.tangent.commandpost.favourites.favourites() -> table` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Gets a table of favourites from file. | -| **Parameters** | | -| **Returns** | | - -#### [init](#init) -| **Signature** | `plugins.core.tangent.commandpost.favourites.init() -> none` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Initialise Module. | -| **Parameters** | | -| **Returns** | | - -#### [saveAction](#saveaction) -| **Signature** | `plugins.core.tangent.commandpost.favourites.saveAction(buttonID, actionTitle, handlerID, action) -> none` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Saves an action to Favourites. | -| **Parameters** | | -| **Returns** | | - -#### [updateControls](#updatecontrols) -| **Signature** | `plugins.core.tangent.commandpost.favourites.updateControls() -> none` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Update Controls | -| **Parameters** | | -| **Returns** | | - diff --git a/api/plugins/plugins.core.tangent.commandpost.md b/api/plugins/plugins.core.tangent.commandpost.md deleted file mode 100644 index 9b6cfee..0000000 --- a/api/plugins/plugins.core.tangent.commandpost.md +++ /dev/null @@ -1,13 +0,0 @@ -# [docs](index.md) » plugins.core.tangent.commandpost ---- - -CommandPost Group for the Tangent. - -## Submodules - * [plugins.core.tangent.commandpost.favourites](plugins.core.tangent.commandpost.favourites.md) - * [plugins.core.tangent.commandpost.functions](plugins.core.tangent.commandpost.functions.md) - -## API Overview - -## API Documentation - diff --git a/api/plugins/plugins.core.tangent.manager.connection.md b/api/plugins/plugins.core.tangent.manager.connection.md new file mode 100644 index 0000000..a8a6bb8 --- /dev/null +++ b/api/plugins/plugins.core.tangent.manager.connection.md @@ -0,0 +1,169 @@ +# [docs](index.md) » plugins.core.tangent.manager.connection +--- + +Represents a Tangent Connection. + +## API Overview +* Variables - Configurable values + * [connections](#connections) +* Constructors - API calls which return an object, typically one that offers API methods + * [connection](#connection) +* Methods - API calls which can only be made on an object returned by a constructor + * [addMode](#addmode) + * [applicationName](#applicationname) + * [device](#device) + * [displayName](#displayname) + * [getControlsXML](#getcontrolsxml) + * [getMode](#getmode) + * [pluginPath](#pluginpath) + * [setupTangentConnection](#setuptangentconnection) + * [systemPath](#systempath) + * [task](#task) + * [update](#update) + * [updateControls](#updatecontrols) + * [updateFavourites](#updatefavourites) + * [userPath](#userpath) + * [writeControlsXML](#writecontrolsxml) + +## API Documentation + +### Variables + +#### [connections](#connections) +| **Signature** | `plugins.core.tangent.manager.connections -> table` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Variable | +| **Description** | A table containing all the Tangent connections. | + +### Constructors + +#### [connection](#connection) +| **Signature** | `plugins.core.tangent.manager.connection(bundleID, manager) -> Connection object` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Constructor | +| **Description** | Creates a new `Connection` object. | +| **Parameters** | | +| **Returns** | | + +### Methods + +#### [addMode](#addmode) +| **Signature** | `plugins.core.tangent.manager.connection:addMode(id, name) -> plugins.core.tangent.manager.mode` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Adds a new `mode` with the specified details and returns it. | +| **Parameters** | | +| **Returns** | | + +#### [applicationName](#applicationname) +| **Signature** | `plugins.core.tangent.manager.connection:applicationName() -> string | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Gets the application name. | +| **Parameters** | | +| **Returns** | | + +#### [device](#device) +| **Signature** | `plugins.core.tangent.manager.connection:device() -> hs.tangent` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Gets the `hs.tangent` object for the connnection. | +| **Parameters** | | +| **Returns** | | + +#### [displayName](#displayname) +| **Signature** | `plugins.core.tangent.manager.connection:displayName() -> string` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Gets the display name for the connnection. | +| **Parameters** | | +| **Returns** | | + +#### [getControlsXML](#getcontrolsxml) +| **Signature** | `plugins.core.tangent.manager.connection:getControlsXML() -> string` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Gets the controls XML. | +| **Parameters** | | +| **Returns** | | + +#### [getMode](#getmode) +| **Signature** | `plugins.core.tangent.manager.connection:getMode(id) -> plugins.core.tangent.manager.mode` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Returns the `mode` with the specified ID, or `nil`. | +| **Parameters** | | +| **Returns** | | + +#### [pluginPath](#pluginpath) +| **Signature** | `plugins.core.tangent.manager.connection:pluginPath() -> string | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Gets the plugin path. | +| **Parameters** | | +| **Returns** | | + +#### [setupTangentConnection](#setuptangentconnection) +| **Signature** | `plugins.core.tangent.manager.connection:setupTangentConnection() -> hs.tangent` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Sets up a new Tangent Connection. | +| **Parameters** | | +| **Returns** | | + +#### [systemPath](#systempath) +| **Signature** | `plugins.core.tangent.manager.connection:systemPath() -> string | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Gets the system path. | +| **Parameters** | | +| **Returns** | | + +#### [task](#task) +| **Signature** | `plugins.core.tangent.manager.connection:task() -> string | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Gets the task. | +| **Parameters** | | +| **Returns** | | + +#### [update](#update) +| **Signature** | `plugins.core.tangent.manager.connection:update() -> none` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Updates the Tangent GUIs. | +| **Parameters** | | +| **Returns** | | + +#### [updateControls](#updatecontrols) +| **Signature** | `plugins.core.tangent.manager.connection:updateControls() -> none` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Update Controls. | +| **Parameters** | | +| **Returns** | | + +#### [updateFavourites](#updatefavourites) +| **Signature** | `plugins.core.tangent.manager.connection:updateFavourites() -> boolean, string` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Updates the Favourites. | +| **Parameters** | | +| **Returns** | | + +#### [userPath](#userpath) +| **Signature** | `plugins.core.tangent.manager.connection:userPath() -> string | nil` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Gets the user path. | +| **Parameters** | | +| **Returns** | | + +#### [writeControlsXML](#writecontrolsxml) +| **Signature** | `plugins.core.tangent.manager.connection:writeControlsXML() -> boolean, string` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | Writes the Tangent controls.xml File to the User's Application Support folder. | +| **Parameters** | | +| **Returns** | | + diff --git a/api/plugins/plugins.core.tangent.manager.controls.md b/api/plugins/plugins.core.tangent.manager.controls.md index 0f146de..b82418c 100644 --- a/api/plugins/plugins.core.tangent.manager.controls.md +++ b/api/plugins/plugins.core.tangent.manager.controls.md @@ -18,6 +18,7 @@ Represents a Tangent Group * [parameter](#parameter) * [parent](#parent) * [register](#register) + * [tangent](#tangent) * [unregister](#unregister) * [xml](#xml) @@ -108,6 +109,14 @@ Represents a Tangent Group | **Parameters** | | | **Returns** | | +#### [tangent](#tangent) +| **Signature** | `plugins.core.tangent.manager.controls:tangent() -> hs.tangent` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | The `hs.tangent` connection. | +| **Parameters** | | +| **Returns** | | + #### [unregister](#unregister) | **Signature** | `plugins.core.tangent.manager.controls:unregister(control) -> self` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| diff --git a/api/plugins/plugins.core.tangent.manager.group.md b/api/plugins/plugins.core.tangent.manager.group.md index cc7d8d3..dae74e2 100644 --- a/api/plugins/plugins.core.tangent.manager.group.md +++ b/api/plugins/plugins.core.tangent.manager.group.md @@ -23,6 +23,7 @@ Parameters/Actions/Menus by enabling/disabling the containing group. * [parameter](#parameter) * [parent](#parent) * [reset](#reset) + * [tangent](#tangent) * [xml](#xml) ## API Documentation @@ -40,11 +41,11 @@ Parameters/Actions/Menus by enabling/disabling the containing group. ### Constructors #### [group](#group) -| **Signature** | `plugins.core.tangent.manager.group(name[, parent[, localActive]])` | +| **Signature** | `plugins.core.tangent.manager.group(name, manager, [, parent[, localActive]])` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constructor | | **Description** | Creates a new `Group` instance. | -| **Parameters** | | +| **Parameters** | | ### Fields @@ -135,6 +136,14 @@ Parameters/Actions/Menus by enabling/disabling the containing group. | **Parameters** | | | **Returns** | | +#### [tangent](#tangent) +| **Signature** | `plugins.core.tangent.manager.group:tangent() -> hs.tangent` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | The `hs.tangent` connection. | +| **Parameters** | | +| **Returns** | | + #### [xml](#xml) | **Signature** | `plugins.core.tangent.manager.group:xml() -> cp.web.xml` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| diff --git a/api/plugins/plugins.core.tangent.manager.md b/api/plugins/plugins.core.tangent.manager.md index 7dda0b7..9048f54 100644 --- a/api/plugins/plugins.core.tangent.manager.md +++ b/api/plugins/plugins.core.tangent.manager.md @@ -12,6 +12,7 @@ here: http://www.tangentwave.co.uk/developer-support ## Submodules * [plugins.core.tangent.manager.action](plugins.core.tangent.manager.action.md) * [plugins.core.tangent.manager.binding](plugins.core.tangent.manager.binding.md) + * [plugins.core.tangent.manager.connection](plugins.core.tangent.manager.connection.md) * [plugins.core.tangent.manager.controls](plugins.core.tangent.manager.controls.md) * [plugins.core.tangent.manager.group](plugins.core.tangent.manager.group.md) * [plugins.core.tangent.manager.menu](plugins.core.tangent.manager.menu.md) @@ -21,82 +22,59 @@ here: http://www.tangentwave.co.uk/developer-support ## API Overview * Constants - Useful values which cannot be changed - * [activeMode](#activemode) - * [FCP_KEYPRESS_APPS_PATH](#fcp_keypress_apps_path) - * [HIDE_FILE_PATH](#hide_file_path) - * [LAUNCH_AGENT_PATH](#launch_agent_path) - * [TANGENT_MAPPER_BUNDLE_ID](#tangent_mapper_bundle_id) + * [APPLICATION_NAME_SUFFIX](#application_name_suffix) + * [MAXIMUM_CONNECTIONS](#maximum_connections) + * [NUMBER_OF_FAVOURITES](#number_of_favourites) + * [USER_CONTROL_MAPS_FOLDER](#user_control_maps_folder) * Variables - Configurable values - * [connectable](#connectable) - * [connected](#connected) + * [customApplications](#customapplications) * [enabled](#enabled) - * [interrupted](#interrupted) - * [requiresConnection](#requiresconnection) - * [requiresDisconnection](#requiresdisconnection) * [tangentHubInstalled](#tangenthubinstalled) * [tangentMapperInstalled](#tangentmapperinstalled) - * [tangentMapperRunning](#tangentmapperrunning) * Functions - API calls offered directly by the extension - * [addMode](#addmode) - * [areMappingsInstalled](#aremappingsinstalled) - * [disableFinalCutProInTangentHub](#disablefinalcutprointangenthub) - * [getControlsXML](#getcontrolsxml) - * [getMode](#getmode) - * [interruptWhen](#interruptwhen) + * [applicationNames](#applicationnames) + * [getConnection](#getconnection) * [launchTangentMapper](#launchtangentmapper) - * [update](#update) - * [updateControls](#updatecontrols) - * [writeControlsXML](#writecontrolsxml) -* Fields - Variables which can only be accessed from an object returned by a constructor - * [activeModeID](#activemodeid) + * [newConnection](#newconnection) + * [registerCustomApplication](#registercustomapplication) + * [removeCustomApplication](#removecustomapplication) + * [setupCustomApplications](#setupcustomapplications) ## API Documentation ### Constants -#### [activeMode](#activemode) -| **Signature** | `plugins.core.tangent.manager.activeMode ` | +#### [APPLICATION_NAME_SUFFIX](#application_name_suffix) +| **Signature** | `plugins.core.tangent.manager.APPLICATION_NAME_SUFFIX -> string` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constant | -| **Description** | Represents the currently active `mode`. | +| **Description** | A suffix applied to the end of Application Names as they appear in Tangent Mapper | -#### [FCP_KEYPRESS_APPS_PATH](#fcp_keypress_apps_path) -| **Signature** | `plugins.core.tangent.manager.FCP_KEYPRESS_APPS_PATH -> string` | +#### [MAXIMUM_CONNECTIONS](#maximum_connections) +| **Signature** | `plugins.core.tangent.manager.MAXIMUM_CONNECTIONS -> number` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constant | -| **Description** | Final Cut Pro Keypress Apps Path for Tangent Mapper. | +| **Description** | Maximum number of socket connections to Tangent Hub. | -#### [HIDE_FILE_PATH](#hide_file_path) -| **Signature** | `plugins.core.tangent.manager.HIDE_FILE_PATH -> string` | +#### [NUMBER_OF_FAVOURITES](#number_of_favourites) +| **Signature** | `plugins.core.tangent.manager.NUMBER_OF_FAVOURITES -> number` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constant | -| **Description** | Tangent Mapper Hide File Path. | +| **Description** | Maximum number of favourites. | -#### [LAUNCH_AGENT_PATH](#launch_agent_path) -| **Signature** | `plugins.core.tangent.manager.LAUNCH_AGENT_PATH -> string` | +#### [USER_CONTROL_MAPS_FOLDER](#user_control_maps_folder) +| **Signature** | `plugins.core.tangent.manager.USER_CONTROL_MAPS_FOLDER -> string` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Constant | -| **Description** | Path to Tangent Hub's Launch Agent. | - -#### [TANGENT_MAPPER_BUNDLE_ID](#tangent_mapper_bundle_id) -| **Signature** | `plugins.core.tangent.manager.TANGENT_MAPPER_BUNDLE_ID -> string` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Constant | -| **Description** | Tangent Mapper Bundle ID. | +| **Description** | The full name for storing User Control Maps | ### Variables -#### [connectable](#connectable) -| **Signature** | `plugins.core.tangent.manager.connectable ` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Variable | -| **Description** | Is the Tangent Enabled, Not Interrupted, and the Tangent Hub Installed? | - -#### [connected](#connected) -| **Signature** | `plugins.core.tangent.manager.connected ` | +#### [customApplications](#customapplications) +| **Signature** | `plugins.core.tangent.manager.customApplications ` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Variable | -| **Description** | A `cp.prop` that tracks the connection status to the Tangent Hub. | +| **Description** | Table of Custom Applications | #### [enabled](#enabled) | **Signature** | `plugins.core.tangent.manager.enabled ` | @@ -104,24 +82,6 @@ here: http://www.tangentwave.co.uk/developer-support | **Type** | Variable | | **Description** | Enable or disables the Tangent Manager. | -#### [interrupted](#interrupted) -| **Signature** | `plugins.core.tangent.manager.interrupted ` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Variable | -| **Description** | If this property is `true` it will temporarily interrupt the Tangent connection, if it is enabled. | - -#### [requiresConnection](#requiresconnection) -| **Signature** | `plugins.core.tangent.manager.requiresConnection ` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Variable | -| **Description** | Is `true` when the Tangent Manager is both `enabled` but not `connected`. | - -#### [requiresDisconnection](#requiresdisconnection) -| **Signature** | `plugins.core.tangent.manager.requiresDisconnection ` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Variable | -| **Description** | Is `true` when the Tangent Manager is both not `enabled` but is `connected`. | - #### [tangentHubInstalled](#tangenthubinstalled) | **Signature** | `plugins.core.tangent.manager.tangentHubInstalled ` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| @@ -134,61 +94,23 @@ here: http://www.tangentwave.co.uk/developer-support | **Type** | Variable | | **Description** | Is Tangent Mapper Installed? | -#### [tangentMapperRunning](#tangentmapperrunning) -| **Signature** | `plugins.core.tangent.manager.tangentMapperRunning ` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Variable | -| **Description** | Is Tangent Mapper Running? | - ### Functions -#### [addMode](#addmode) -| **Signature** | `plugins.core.tangent.manager.addMode(id, name) -> plugins.core.tangent.manager.mode` | +#### [applicationNames](#applicationnames) +| **Signature** | `plugins.core.tangent.manager.applicationNames() -> table` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | -| **Description** | Adds a new `mode` with the specified details and returns it. | -| **Parameters** | | -| **Returns** | | - -#### [areMappingsInstalled](#aremappingsinstalled) -| **Signature** | `plugins.core.tangent.manager.areMappingsInstalled() -> boolean` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Are mapping files installed? | +| **Description** | Gets a table listing all the connections application names. | | **Parameters** | | -| **Returns** | | +| **Returns** | | -#### [disableFinalCutProInTangentHub](#disablefinalcutprointangenthub) -| **Signature** | `plugins.core.tangent.manager.disableFinalCutProInTangentHub() -> none` | +#### [getConnection](#getconnection) +| **Signature** | `plugins.core.tangent.manager.getConnection(applicationName) -> connection` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | -| **Description** | Disables the Final Cut Pro preset in the Tangent Hub Application. | -| **Parameters** | | -| **Returns** | | - -#### [getControlsXML](#getcontrolsxml) -| **Signature** | `plugins.core.tangent.manager.getControlsXML() -> string` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Gets the controls XML. | -| **Parameters** | | -| **Returns** | | - -#### [getMode](#getmode) -| **Signature** | `plugins.core.tangent.manager.getMode(id) -> plugins.core.tangent.manager.mode` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Returns the `mode` with the specified ID, or `nil`. | -| **Parameters** | | -| **Returns** | | - -#### [interruptWhen](#interruptwhen) -| **Signature** | `plugins.core.tangent.manager.interruptWhen(aProp) -> nil` | -| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Function | -| **Description** | Adds a `cp.prop` that will cause an interruption to the Tangent connection when it is `true`. | -| **Parameters** | | -| **Returns** | | +| **Description** | Gets a Tangent connection object. | +| **Parameters** | | +| **Returns** | | #### [launchTangentMapper](#launchtangentmapper) | **Signature** | `plugins.core.tangent.manager.launchTangentMapper() -> none` | @@ -198,35 +120,35 @@ here: http://www.tangentwave.co.uk/developer-support | **Parameters** | | | **Returns** | | -#### [update](#update) -| **Signature** | `plugins.core.tangent.manager.update() -> none` | +#### [newConnection](#newconnection) +| **Signature** | `plugins.core.tangent.manager.newConnection(applicationName, systemPath, userPath, task, pluginPath, addDefaultModes, setupFn, transportFn) -> connection` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | -| **Description** | Updates the Tangent GUIs. | -| **Parameters** | | -| **Returns** | | +| **Description** | Creates a new Tangent Connection | +| **Parameters** | | +| **Returns** | | -#### [updateControls](#updatecontrols) -| **Signature** | `plugins.core.tangent.manager.updateControls() -> none` | +#### [registerCustomApplication](#registercustomapplication) +| **Signature** | `plugins.core.tangent.manager.registerCustomApplication(applicationName, bundleExecutable) -> none` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | -| **Description** | Update Controls. | -| **Parameters** | | -| **Returns** | | +| **Description** | Registers a new Custom Application | +| **Parameters** | | +| **Returns** | | -#### [writeControlsXML](#writecontrolsxml) -| **Signature** | `plugins.core.tangent.manager.writeControlsXML() -> boolean, string` | +#### [removeCustomApplication](#removecustomapplication) +| **Signature** | `plugins.core.tangent.manager.removeCustomApplication(applicationName) -> none` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | -| **Description** | Writes the Tangent controls.xml File to the User's Application Support folder. | -| **Parameters** | | -| **Returns** | | - -### Fields +| **Description** | Removes a Custom Application. | +| **Parameters** | | +| **Returns** | | -#### [activeModeID](#activemodeid) -| **Signature** | `plugins.core.tangent.manager.activeModeID ` | +#### [setupCustomApplications](#setupcustomapplications) +| **Signature** | `plugins.core.tangent.manager.setupCustomApplications() -> none` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| -| **Type** | Field | -| **Description** | The current active mode ID. | +| **Type** | Function | +| **Description** | Setup the Custom Applications. | +| **Parameters** | | +| **Returns** | | diff --git a/api/plugins/plugins.core.tangent.manager.named.md b/api/plugins/plugins.core.tangent.manager.named.md index 8e501dd..8210720 100644 --- a/api/plugins/plugins.core.tangent.manager.named.md +++ b/api/plugins/plugins.core.tangent.manager.named.md @@ -20,6 +20,7 @@ as described below. * [name](#name) * [nameX](#namex) * [parent](#parent) + * [tangent](#tangent) ## API Documentation @@ -98,3 +99,11 @@ as described below. | **Parameters** | | | **Returns** | | +#### [tangent](#tangent) +| **Signature** | `plugins.core.tangent.manager.named:tangent() -> hs.tangent` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Method | +| **Description** | The Tangent Hub connection for this value, from the `parent`. | +| **Parameters** | | +| **Returns** | | + diff --git a/api/plugins/plugins.core.tangent.os.md b/api/plugins/plugins.core.tangent.os.md deleted file mode 100644 index e483d18..0000000 --- a/api/plugins/plugins.core.tangent.os.md +++ /dev/null @@ -1,15 +0,0 @@ -# [docs](index.md) » plugins.core.tangent.os ---- - -macOS Group for the Tangent. - -## Submodules - * [plugins.core.tangent.os.display](plugins.core.tangent.os.display.md) - * [plugins.core.tangent.os.pasteboard](plugins.core.tangent.os.pasteboard.md) - * [plugins.core.tangent.os.sound](plugins.core.tangent.os.sound.md) - * [plugins.core.tangent.os.window](plugins.core.tangent.os.window.md) - -## API Overview - -## API Documentation - diff --git a/api/plugins/plugins.ecammlive.application.manager.md b/api/plugins/plugins.ecammlive.application.manager.md new file mode 100644 index 0000000..75f30e6 --- /dev/null +++ b/api/plugins/plugins.ecammlive.application.manager.md @@ -0,0 +1,9 @@ +# [docs](index.md) » plugins.ecammlive.application.manager +--- + +Registers Ecamm Live with the Core Application Manager. + +## API Overview + +## API Documentation + diff --git a/api/plugins/plugins.finalcutpro.tangent.color.md b/api/plugins/plugins.finalcutpro.tangent.color.md new file mode 100644 index 0000000..9700c0d --- /dev/null +++ b/api/plugins/plugins.finalcutpro.tangent.color.md @@ -0,0 +1,9 @@ +# [docs](index.md) » plugins.finalcutpro.tangent.color +--- + +Final Cut Pro Tangent Color Manager. + +## API Overview + +## API Documentation + diff --git a/api/plugins/plugins.core.tangent.commandpost.functions.md b/api/plugins/plugins.finalcutpro.tangent.commandpost.functions.md similarity index 52% rename from api/plugins/plugins.core.tangent.commandpost.functions.md rename to api/plugins/plugins.finalcutpro.tangent.commandpost.functions.md index c343361..4b52abf 100644 --- a/api/plugins/plugins.core.tangent.commandpost.functions.md +++ b/api/plugins/plugins.finalcutpro.tangent.commandpost.functions.md @@ -1,4 +1,4 @@ -# [docs](index.md) » plugins.core.tangent.commandpost.functions +# [docs](index.md) » plugins.finalcutpro.tangent.commandpost.functions --- CommandPost Functions for Tangent. diff --git a/api/plugins/plugins.finalcutpro.tangent.commandpost.md b/api/plugins/plugins.finalcutpro.tangent.features.md similarity index 59% rename from api/plugins/plugins.finalcutpro.tangent.commandpost.md rename to api/plugins/plugins.finalcutpro.tangent.features.md index 8bcd8aa..fc9251b 100644 --- a/api/plugins/plugins.finalcutpro.tangent.commandpost.md +++ b/api/plugins/plugins.finalcutpro.tangent.features.md @@ -1,4 +1,4 @@ -# [docs](index.md) » plugins.finalcutpro.tangent.commandpost +# [docs](index.md) » plugins.finalcutpro.tangent.features --- Final Cut Pro CommandPost Actions for Tangent diff --git a/api/plugins/plugins.finalcutpro.tangent.manager.md b/api/plugins/plugins.finalcutpro.tangent.manager.md index 9372cdc..747d790 100644 --- a/api/plugins/plugins.finalcutpro.tangent.manager.md +++ b/api/plugins/plugins.finalcutpro.tangent.manager.md @@ -1,7 +1,7 @@ # [docs](index.md) » plugins.finalcutpro.tangent.manager --- -Final Cut Pro Tangent Color Manager. +Manager for Final Cut Pro's Tangent Support ## API Overview diff --git a/api/plugins/plugins.finalcutpro.tangent.modes.md b/api/plugins/plugins.finalcutpro.tangent.modes.md deleted file mode 100644 index 2944a78..0000000 --- a/api/plugins/plugins.finalcutpro.tangent.modes.md +++ /dev/null @@ -1,9 +0,0 @@ -# [docs](index.md) » plugins.finalcutpro.tangent.modes ---- - -Final Cut Pro Modes for Tangent - -## API Overview - -## API Documentation - diff --git a/api/plugins/plugins.core.tangent.os.display.md b/api/plugins/plugins.finalcutpro.tangent.os.display.md similarity index 78% rename from api/plugins/plugins.core.tangent.os.display.md rename to api/plugins/plugins.finalcutpro.tangent.os.display.md index 5b97afb..fa3b03d 100644 --- a/api/plugins/plugins.core.tangent.os.display.md +++ b/api/plugins/plugins.finalcutpro.tangent.os.display.md @@ -1,4 +1,4 @@ -# [docs](index.md) » plugins.core.tangent.os.display +# [docs](index.md) » plugins.finalcutpro.tangent.os.display --- Tangent Display Functions. @@ -12,7 +12,7 @@ Tangent Display Functions. ### Functions #### [init](#init) -| **Signature** | `plugins.core.tangent.os.display.init() -> self` | +| **Signature** | `plugins.finalcutpro.tangent.os.display.init() -> self` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Initialise the module. | diff --git a/api/plugins/plugins.finalcutpro.tangent.os.md b/api/plugins/plugins.finalcutpro.tangent.os.md new file mode 100644 index 0000000..37d982a --- /dev/null +++ b/api/plugins/plugins.finalcutpro.tangent.os.md @@ -0,0 +1,15 @@ +# [docs](index.md) » plugins.finalcutpro.tangent.os +--- + +macOS Group for the Tangent. + +## Submodules + * [plugins.finalcutpro.tangent.os.display](plugins.finalcutpro.tangent.os.display.md) + * [plugins.finalcutpro.tangent.os.pasteboard](plugins.finalcutpro.tangent.os.pasteboard.md) + * [plugins.finalcutpro.tangent.os.sound](plugins.finalcutpro.tangent.os.sound.md) + * [plugins.finalcutpro.tangent.os.window](plugins.finalcutpro.tangent.os.window.md) + +## API Overview + +## API Documentation + diff --git a/api/plugins/plugins.core.tangent.os.pasteboard.md b/api/plugins/plugins.finalcutpro.tangent.os.pasteboard.md similarity index 53% rename from api/plugins/plugins.core.tangent.os.pasteboard.md rename to api/plugins/plugins.finalcutpro.tangent.os.pasteboard.md index 75ab064..3292663 100644 --- a/api/plugins/plugins.core.tangent.os.pasteboard.md +++ b/api/plugins/plugins.finalcutpro.tangent.os.pasteboard.md @@ -1,4 +1,4 @@ -# [docs](index.md) » plugins.core.tangent.os.pasteboard +# [docs](index.md) » plugins.finalcutpro.tangent.os.pasteboard --- Pasteboard Tools for Tangent. diff --git a/api/plugins/plugins.core.tangent.os.sound.md b/api/plugins/plugins.finalcutpro.tangent.os.sound.md similarity index 75% rename from api/plugins/plugins.core.tangent.os.sound.md rename to api/plugins/plugins.finalcutpro.tangent.os.sound.md index bbe7c7b..88a788e 100644 --- a/api/plugins/plugins.core.tangent.os.sound.md +++ b/api/plugins/plugins.finalcutpro.tangent.os.sound.md @@ -1,7 +1,7 @@ -# [docs](index.md) » plugins.core.tangent.os.sound +# [docs](index.md) » plugins.finalcutpro.tangent.os.sound --- -Tangent Display Functions. +Tangent Sound Functions. ## API Overview * Variables - Configurable values @@ -15,13 +15,13 @@ Tangent Display Functions. ### Variables #### [currentOutputDevice](#currentoutputdevice) -| **Signature** | `plugins.core.tangent.os.sound.currentOutputDevice ` | +| **Signature** | `plugins.finalcutpro.tangent.os.sound.currentOutputDevice ` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Variable | | **Description** | Current Output Device. | #### [group](#group) -| **Signature** | `plugins.core.tangent.os.sound.group ` | +| **Signature** | `plugins.finalcutpro.tangent.os.sound.group ` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Variable | | **Description** | Tangent Sound Group. | @@ -29,7 +29,7 @@ Tangent Display Functions. ### Functions #### [init](#init) -| **Signature** | `plugins.core.tangent.os.sound.init() -> self` | +| **Signature** | `plugins.finalcutpro.tangent.os.sound.init() -> self` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Function | | **Description** | Initialise the module. | diff --git a/api/plugins/plugins.core.tangent.os.window.md b/api/plugins/plugins.finalcutpro.tangent.os.window.md similarity index 57% rename from api/plugins/plugins.core.tangent.os.window.md rename to api/plugins/plugins.finalcutpro.tangent.os.window.md index 23a8c71..021a226 100644 --- a/api/plugins/plugins.core.tangent.os.window.md +++ b/api/plugins/plugins.finalcutpro.tangent.os.window.md @@ -1,4 +1,4 @@ -# [docs](index.md) » plugins.core.tangent.os.window +# [docs](index.md) » plugins.finalcutpro.tangent.os.window --- Window Management Tools for Tangent. diff --git a/api/plugins/plugins.finalcutpro.text2speech.md b/api/plugins/plugins.finalcutpro.text2speech.md index 2dcf416..484105f 100644 --- a/api/plugins/plugins.finalcutpro.text2speech.md +++ b/api/plugins/plugins.finalcutpro.text2speech.md @@ -7,8 +7,11 @@ Text to Speech Plugin. * Constants - Useful values which cannot be changed * [copyToMediaFolder](#copytomediafolder) * Variables - Configurable values + * [addCaption](#addcaption) + * [addCustomKeyword](#addcustomkeyword) + * [addKeywordForVoiceName](#addkeywordforvoicename) * [addTextToNotesFieldAfterImport](#addtexttonotesfieldafterimport) - * [createRoleForVoice](#createroleforvoice) + * [assignClipAudioRoleToVoiceName](#assignclipaudioroletovoicename) * [currentIncrementalNumber](#currentincrementalnumber) * [customPrefix](#customprefix) * [deleteFileAfterImport](#deletefileafterimport) @@ -38,17 +41,35 @@ Text to Speech Plugin. ### Variables +#### [addCaption](#addcaption) +| **Signature** | `plugins.finalcutpro.text2speech.addCaption` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Variable | +| **Description** | Option to Add Text to Notes Field After Importing | + +#### [addCustomKeyword](#addcustomkeyword) +| **Signature** | `plugins.finalcutpro.text2speech.addCustomKeyword` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Variable | +| **Description** | Boolean that sets whether or not to add a custom keyword. | + +#### [addKeywordForVoiceName](#addkeywordforvoicename) +| **Signature** | `plugins.finalcutpro.text2speech.addKeywordForVoiceName` | +| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| +| **Type** | Variable | +| **Description** | Boolean that sets whether or not a tag should be added for the voice. | + #### [addTextToNotesFieldAfterImport](#addtexttonotesfieldafterimport) | **Signature** | `plugins.finalcutpro.text2speech.addTextToNotesFieldAfterImport` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Variable | | **Description** | Option to Add Text to Notes Field After Importing | -#### [createRoleForVoice](#createroleforvoice) -| **Signature** | `plugins.finalcutpro.text2speech.createRoleForVoice` | +#### [assignClipAudioRoleToVoiceName](#assignclipaudioroletovoicename) +| **Signature** | `plugins.finalcutpro.text2speech.assignClipAudioRoleToVoiceName` | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | **Type** | Variable | -| **Description** | Boolean that sets whether or not a tag should be added for the voice. | +| **Description** | Assign Clip Audio Role to Voice Name | #### [currentIncrementalNumber](#currentincrementalnumber) | **Signature** | `plugins.finalcutpro.text2speech.currentIncrementalNumber` | diff --git "a/api/plugins/plugins.resolve.tangent.emulation ===\r.md" "b/api/plugins/plugins.resolve.tangent.emulation ===\r.md" new file mode 100644 index 0000000..96af8e2 --- /dev/null +++ "b/api/plugins/plugins.resolve.tangent.emulation ===\r.md" @@ -0,0 +1,9 @@ +# [docs](index.md) » plugins.resolve.tangent.emulation === +--- + +Emulates a Tangent Element Panel. + +## API Overview + +## API Documentation + diff --git a/api/plugins/plugins.resolve.tangent.manager.md b/api/plugins/plugins.resolve.tangent.manager.md new file mode 100644 index 0000000..4f731fa --- /dev/null +++ b/api/plugins/plugins.resolve.tangent.manager.md @@ -0,0 +1,9 @@ +# [docs](index.md) » plugins.resolve.tangent.manager +--- + +Manager for DaVinci Resolve's Tangent Support + +## API Overview + +## API Documentation +