Action
switch Workspace
created by @FlohGro / more on my Blog
switch Workspace
This Action allows to quickly switch between your workspaces. It displays a prompt showing all the names of your workspaces. If you select one of them, it will be applied to the app
[Usage]
I add this Action as the first Action to every ActionGroup that is displayed as Action Bar above the keyboard. This way I can easily switch between my workspaces.
To do this, You can either duplicate the Action or (even better) add a new Action with an „Include Action“ Step to the relevant ActionGroups.
You can even disable the visibility of the Action in your Action List to only show it in the Action Bar!
If you find this useful and want to support me you can
Steps
-
script
// switch workspace // created by @FlohGro@social.lol let allWs = Workspace.getAll() let p = new Prompt() p.title = "select workspace" for(let ws of allWs){ p.addButton(ws.name,ws) } if(p.show()){ app.applyWorkspace(p.buttonPressed) app.displaySuccessMessage("applied workspace \"" + p.buttonPressed.name + "\"" ) } else { app.displayInfoMessage("no workspace selected") }
Options
-
After Success Nothing Notification Error Log Level Error
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.