Execute Open Scripting Architecture (OSA) code - AppleScript and JavaScript
Signature | hs.osascript._osascript(source, language) -> bool, object, descriptor |
---|---|
Type | Function |
Description | Runs osascript code |
Parameters |
|
Returns |
|
Source | extensions/osascript/libosascript.m line 5 |
Signature | hs.osascript.applescript(source) -> bool, object, descriptor |
---|---|
Type | Function |
Description | Runs AppleScript code |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/osascript/osascript.lua line 46 |
Signature | hs.osascript.applescriptFromFile(fileName) -> bool, object, descriptor |
---|---|
Type | Function |
Description | Runs AppleScript code from a source file. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/osascript/osascript.lua line 65 |
Signature | hs.osascript.javascript(source) -> bool, object, descriptor |
---|---|
Type | Function |
Description | Runs JavaScript code |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/osascript/osascript.lua line 86 |
Signature | hs.osascript.javascriptFromFile(fileName) -> bool, object, descriptor |
---|---|
Type | Function |
Description | Runs JavaScript code from a source file. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/osascript/osascript.lua line 105 |