Search the Community
Showing results for tags 'workflow help'.
Found 2 results
Short story, I backed up my Alfred workflows in my google drive, and now when I try to download them, they all come in form of zipped files. I've read here that you can convert the .alfredworkflow.zip file back into an .alfredworkflow file which I've managed to do but when I try to install the workflow, none of the workflows have their respective pictures saved (if I tried to do this manually for ~ 40 - 50 workflows, it would take ages). Any thoughts on how to easily fix this / automate this? I've tried writing a Python script but even using the subprocess module to run bash commands messes up the workflow when trying to zip the info.plist file. I'd greatly appreciate any thoughts on this and any ideas! Even after doing this and I try to install through info.alfredworkflow, it complains and gives a message "The workflow you are trying to import is invalid." I'm honestly not sure what to do at this point. import os import subprocess # SINGLE os.chdir("...") # change to directory that contains the .alfredworkflow.zip files for f in os.listdir(os.getcwd()): if len(f.split(".alfredworkflow.zip")) == 2: path = os.getcwd() + "/" + f subprocess.run(["unzip", path, "-d", os.getcwd() + "/" + f.split(".zip")]) dirs = list(filter(os.path.isdir, os.listdir(os.getcwd()))) # ZIP for folder in dirs: if len(folder.split(".alfredworkflow")) == 2: path = os.getcwd() + "/" + folder + "/info.plist" subprocess.run(["zip", path + ".zip", path]) # RENAME for folder in dirs: if len(folder.split(".alfredworkflow")) == 2: path = os.getcwd() + "/" + folder + "/info.plist.zip" subprocess.run(["mv", path, os.getcwd() + "/" + folder + "/info.alfredworkflow"])
Hoping someone can point me in the right direction with this simple workflow that I'm trying to create. I'm sure I can do this with some scripting, but was hoping to get it to work without it. It is a simple list filter that I want to filter 3 actions: notes, reminders, label and then open the corresponding dynamic url. The 'notes' & 'reminders' are working as I would like, but I'm having trouble with the 'label' action since it doesn't follow the same protocol as the other two - it needs an additional argument (label name). I am hoping to type the following: "gkeep label work" and it will trigger an open url command to open "https://keep.google.com/#label/work". My workflow can be downloaded here for review. Thanks in advance, Mike