Action
Select Module
Using select boxes, load a specified module.
Steps
-
script
// Module Select - using select boxes /* ------ Prompt ------- */ var modules = [ "General", "GTD", "Journal", "Reading", "Scripting", "Work", "Writing", ]; var p = Prompt.create(); p.title = "Select Module to Load"; p.addSelect("module", "Module", modules, [""], false); p.addButton("Load"); var con = p.show(); var sel = p.fieldValues["module"]; var module = sel+" Module"; if (con) { // find action var action = Action.find(module); app.queueAction(action, draft) } else { context.cancel(); }
Options
-
After Success Default Notification Error Log Level Error
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.