@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
23 lines • 622 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @action Run Script
* @section Actions > Scripting > Pythonista
* @icon Pythonista
*
* Runs the specified script in Pythonista and waits to continue the shortcut until you return to the Shortcuts app.
*
* ```js
* runScript({
* script: 'MyScript.py',
* });
* ```
*/
const runScript = ({ script = '', }) => ({
WFWorkflowActionIdentifier: 'com.omz-software.Pythonista.runscript',
WFWorkflowActionParameters: {
PythonistaScript: script,
},
});
exports.default = runScript;
//# sourceMappingURL=runScript.js.map