docs » hs.osascript
Execute Open Scripting Architecture (OSA) code - AppleScript and JavaScript
- Functions - API calls offered directly by the extension
- _osascript
- applescript
- applescriptFromFile
- javascript
- javascriptFromFile
Signature | hs.osascript._osascript(source, language) -> bool, object, descriptor |
---|---|
Type | Function |
Description | Runs osascript code |
Parameters |
|
Returns |
|
Signature | hs.osascript.applescript(source) -> bool, object, descriptor |
---|---|
Type | Function |
Description | Runs AppleScript code |
Parameters |
|
Returns |
|
Notes |
|
Signature | hs.osascript.applescriptFromFile(fileName) -> bool, object, descriptor |
---|---|
Type | Function |
Description | Runs AppleScript code from a source file. |
Parameters |
|
Returns |
|
Notes |
|
Signature | hs.osascript.javascript(source) -> bool, object, descriptor |
---|---|
Type | Function |
Description | Runs JavaScript code |
Parameters |
|
Returns |
|
Notes |
|
Signature | hs.osascript.javascriptFromFile(fileName) -> bool, object, descriptor |
---|---|
Type | Function |
Description | Runs JavaScript code from a source file. |
Parameters |
|
Returns |
|
Notes |
|