Jump to content

Batch workflow metadata update and export


jeffsui

Recommended Posts

I've created a handful for workflows that we use at my office and I would love to have an easy way to batch export and update the metadata so that i can share them with people. 

 

Right now when i make a change export the workflow to disk and email it to people.  It would be great if there was some way to automate this or script this out.  so i could just run

 

alfred -package workflow_name outputFile

 

and then upload the workflows to an internal server or something like that.

 

It this possible or just wishful thinking?

 

Thanks

 

Link to comment
Share on other sites

So I ran your script and it seemed to still be picking up my .git directory which is odd.

 

I added 

        dirnames[:] = [d for d in dirnames if not d in ['.git','.idea']]
right after this block of code
 
 # build workflow
    command = [u'zip']
    if not verbose:
        command.append(u'-q')
    command.append(zippath)
    for root, dirnames, filenames in os.walk(u'.'):
   

and it worked for me.  Not sure if this is helpful feedback - but :)

Edited by jeffsui
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...