Hi there,
I'm currently wanting to setup a workflow which has two keywords set up which in turn both execute the same script. There is only a small amount of functionality that differs based on the keyword and I am wondering if there is any way of getting the keyword in the script.
Given the above workflow I'd ideally like the following functionality in the script:
if KEYWORD == "v1":
do_something()
elif KEYWORD == "v2":
do_something_else()
Can I ask if this is possible. I was looking into the Alfred-Workflow Python project but couldn't see a "magic" variable which gives me the keyword I am looking for. Is this possible in Alfred do you know?
Thanks very much in advance.
Jamie.