omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    List of workflows?

    Editorial
    2
    3
    2927
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • franco
      franco last edited by

      Is it possible to get a list with the names of my workflows? How?

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        import os, editor, json
        
        with open(os.path.join(editor.get_workflows_path(), 'Commands.edcmd'), 'r') as f:
        	workflow_infos = json.load(f)
        	workflow_titles = [w['title'] for w in workflow_infos]
        print '\n'.join(workflow_titles)
        
        franco 1 Reply Last reply Reply Quote 0
        • franco
          franco @omz last edited by

          @omz thank you very much!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors