Action
Quick Action Launcher
created by @FlohGro / more on my Blog
Quick Action Launcher
This Action is a Quick Launcher for often used Actions. You can configure the Actions you use the most during your days. When you want to run one of them, just launch this Action and it will display a prompt where you can select the Action you want to run.
[Configuration]
To configure the Actions for this Action you need to edit it.
Navigate into the „Steps“ of the Action and select the Define Template Tag
step. Do NOT change the name of the tag action-config
.
Add the exact names of the Actions you want to run into the template field. Each Action must be added to a new line.
[Usage]
The best way to use this Action might be to trigger it with a keyboard Shortcut (e.g. Cmd+Shift+L) on the Mac and iPads with keyboard attached. Assign the keyboard shortcut you prefer and kick it off to quickly launch Actions.
Another great way to use it is to add it to the Action Bar where you can quickly launch it also on you iPhone.
If you find this useful and want to support me you can donate or buy me a coffe
Steps
-
defineTemplateTag
name action-config
template -
script
// quick action launcher by FlohGro const actionsConfig = draft.processTemplate("[[action-config]]") let actions = []; for (let potAction of actionsConfig.split("\n")) { // ignore empty lines if (potAction.trim().length == 0) { continue; } let action = Action.find(potAction.trim()) if (action) { actions.push(action) } else { alert("no action found for \"" + potAction + "\" please ensure the name is spelled correctly in the definition") } } if (actions.length > 0) { let p = new Prompt() p.title = "select action" for (let action of actions) { p.addButton(action.name, action) } if (p.show()) { app.queueAction(p.buttonPressed, draft); } } else { alert("no actions defined or found; read the documentation and configure the action") }
Options
-
After Success Nothing Notification Error Log Level Error