-
Notifications
You must be signed in to change notification settings - Fork 238
Closed
Labels
Description
Alfred 3.6 will add 2 new commands to its AppleScript dictionary to manipulate the persistent workflow variables in the workflow configuration sheet/info.plist
.
set configuration v : Set workflow configuration variable with given name
set configuration text :
to value text : The value to set
in workflow text : The workflow bundle identifer
[exportable boolean] : If this variable is fine for export, i.e. the Don't Export box is left unchecked (Defaults to Don't Export)
remove configuration v : Remove workflow configuration variable with given name
remove configuration text :
in workflow text : The workflow bundle identifer
I've added corresponding functions to util.py
, but I'm not sure as to how best expose the feature via the Workflow3
API.
Should I:
- Add new methods to
Workflow3
(and if so, with which names)? - Add an optional
persist
argument toWorkflow3.setvar()
, which would also save the variable toinfo.plist
? - Something else?
If (1), should there be an option to also set the variable for the current run (i.e. add it to Workflow3.variables
)?