Skip to content

How best to integrate Alfred 3.6's new configuration commands? #125

@deanishe

Description

@deanishe

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:

  1. Add new methods to Workflow3 (and if so, with which names)?
  2. Add an optional persist argument to Workflow3.setvar(), which would also save the variable to info.plist?
  3. 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)?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions