UNPKG

@joshfarrant/shortcuts-js

Version:
23 lines 622 B
"use strict"; 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