@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
27 lines • 743 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
/**
* @action Set Name
* @section Actions > Scripting > Content
* @icon Scripting
*
* Sets the name of the item passed as input.
*
* ```js
* setName({
* name: 'Test',
* dontIncludeFileExtension: true,
* });
* ```
*/
const setName = ({ name, dontIncludeFileExtension = false, }) => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.setitemname',
WFWorkflowActionParameters: {
WFName: name,
WFDontIncludeFileExtension: dontIncludeFileExtension,
Advanced: dontIncludeFileExtension,
},
});
exports.default = utils_1.withActionOutput(setName);
//# sourceMappingURL=setName.js.map