#plugins.core.watchfolders.manager

Manager for the CommandPost Watch Folders Panel.


#Submodules


#API Overview

Constants - Useful values which cannot be changed

Functions - API calls offered directly by the extension


#API Documentation

#Constants

Signatureplugins.core.watchfolders.manager.DEFAULT_HEIGHT -> number
TypeConstant
DescriptionDefault Height of the Watch Folder Window
NotesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 48

Signatureplugins.core.watchfolders.manager.DEFAULT_TITLE -> number
TypeConstant
DescriptionDefault Title of the Watch Folder Window
NotesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 53

Signatureplugins.core.watchfolders.manager.DEFAULT_WIDTH -> number
TypeConstant
DescriptionDefault Width of the Watch Folder Window
NotesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 43

Signatureplugins.core.watchfolders.manager.DEFAULT_WINDOW_STYLE -> table
TypeConstant
DescriptionTable of Default Window Style
NotesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 38

Signatureplugins.core.watchfolders.manager.position <cp.prop: table>
TypeConstant
DescriptionReturns the last frame saved in settings.
NotesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 73

Signatureplugins.core.watchfolders.manager.WEBVIEW_LABEL -> string
TypeConstant
DescriptionWebView Label
NotesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 33

#Functions

Signatureplugins.core.watchfolders.manager.addHandler(id, handlerFn) -> string
TypeFunction
DescriptionAdds a Handler
Parameters
  • id - The ID
  • handlerFn - the handler function
Returns
  • Nothing
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 91

Signatureplugins.core.watchfolders.manager.addPanel(params) -> plugins.core.watchfolders.manager.panel
TypeFunction
DescriptionAdds a new panel with the specified params to the preferences manager.
Parameters
  • params - The parameters table. Details below.
Returns
  • The new panel instance.
Notes
  • The params can have the following properties. The priority and id and properties are required.
  • ** priority - An integer value specifying the priority of the panel compared to others.
  • ** id - A string containing the unique ID of the panel.
  • ** label - The human-readable label for the panel icon.
  • ** image - The hs.image for the panel icon.
  • ** tooltip - The human-readable details for the toolbar icon when the mouse is hovering over it.
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 506

Signatureplugins.core.watchfolders.manager.getHandler(id) -> string
TypeFunction
DescriptionReturns the handler for a given ID.
Parameters
  • id - The ID
Returns
  • Table
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 105

Signatureplugins.core.watchfolders.manager.getLabel() -> string
TypeFunction
DescriptionReturns the Webview label.
Parameters
  • None
Returns
  • The Webview label as a string.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 78

Signatureplugins.core.watchfolders.manager.hide() -> boolean
TypeFunction
DescriptionHides the Watch Folders Window
Parameters
  • None
Returns
  • True if successful or nil if an error occurred
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 380

Signatureplugins.core.watchfolders.manager.init() -> none
TypeFunction
DescriptionInitialises the Watch Folder Manager.
Parameters
  • None
Returns
  • Nothing
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 534

Signatureplugins.core.watchfolders.manager.injectScript(script) -> none
TypeFunction
DescriptionInjects JavaScript into the Watch Folders Webview.
Parameters
  • script - The JavaScript code you want to inject in the form of a string.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 396

Signatureplugins.core.watchfolders.manager.maxPanelHeight() -> number
TypeFunction
DescriptionGets the maximum panel height as a number
Parameters
  • None
Returns
  • A number
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 230

Signatureplugins.core.watchfolders.manager.selectPanel(id) -> none
TypeFunction
DescriptionSelects a Preferences Panel.
Parameters
  • id - the ID of the panel you want to select.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 421

Signatureplugins.core.watchfolders.manager.setPanelRenderer(renderer) -> none
TypeFunction
DescriptionSets a Panel Renderer
Parameters
  • renderer - The renderer
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 118

Signatureplugins.core.watchfolders.manager.show([panelID]) -> boolean
TypeFunction
DescriptionShows the Watch Folders Window
Parameters
  • [panelID] - An optional panel ID
Returns
  • True if successful or nil if an error occurred
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/init.lua line 343