docs » cp.dev
A set of handy developer tools for CommandPost.
- Functions - API calls offered directly by the extension
- elementAtMouse
- findUnusedLanguageStrings
- highlight
- highlightFrame
- highlightPoint
- hotkey
- inspect
- inspectAtMouse
- inspectElement
- inspectElementAtMousePath
- test
- which
Signature | cp.dev.elementAtMouse() -> axuielementObject |
---|---|
Type | Function |
Description | Gets the AX element under the current mouse position. |
Parameters |
|
Returns |
|
Signature | cp.dev.findUnusedLanguageStrings() -> string |
---|---|
Type | Function |
Description | Searches for any unused language strings in English.json. |
Parameters |
|
Returns |
|
Signature | cp.dev.highlight(element) -> axuielementObject |
---|---|
Type | Function |
Description | Highlights an AX element on the screen. |
Parameters |
|
Returns |
|
Signature | cp.dev.highlightFrame(frame) -> none |
---|---|
Type | Function |
Description | Highlights aa frame on the screen. |
Parameters |
|
Returns |
|
Signature | cp.dev.highlightPoint(point) -> none |
---|---|
Type | Function |
Description | Highlights a point on the screen. |
Parameters |
|
Returns |
|
Signature | cp.dev.hotkey(fn) -> none |
---|---|
Type | Function |
Description | Assigns a function to the CONTROL+OPTION+COMMAND+SHIFT+Q keyboard combination. |
Parameters |
|
Returns |
|
Signature | cp.dev.inspect(item, options) -> string |
---|---|
Type | Function |
Description | Inspect an item. |
Parameters |
|
Returns |
|
Signature | cp.dev.inspectAtMouse(options) -> none |
---|---|
Type | Function |
Description | Inspects an AX element under the current mouse position. |
Parameters |
|
Returns |
|
Signature | cp.dev.inspectElement(element[, options]) -> none |
---|---|
Type | Function |
Description | Inspect an AX element. Writes results to Debug Console. |
Parameters |
|
Returns |
|
Notes |
|
Signature | cp.dev.inspectElementAtMousePath() -> none |
---|---|
Type | Function |
Description | Inspects an AX element at the mouse path. |
Parameters |
|
Returns |
|
Signature | cp.dev.test(id) -> cp.test |
---|---|
Type | Function |
Description | This function will return a cp.test with either the |
Parameters |
|
Returns |
|
Signature | cp.dev.which(cmd) -> none |
---|---|
Type | Function |
Description | The which utility takes a list of command names and searches the path for |
Parameters |
|
Returns |
|