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.


    Using Workflow app with Pythonista

    Pythonista
    11
    27
    37382
    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.
    • AriX
      AriX last edited by

      By the way, before the update comes out, you can simulate this behavior by doing the following in place of the Run Script action:

      Add a URL action, followed by Open URL and Wait to Return. Set the URL to something along the lines of along the lines of pythonista://[[script name]]?action=run&argv=[[some argument to pass, can be a variable]]

      We don't have URL encode actions yet, so this may be kind of limited at the moment.

      Let me also second the request to @omz to make Pythonista x-callback compliant ;)

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

        @AriX Thanks for including workflow into pythonista. This will be quite fun :) I do believe the correct url to pass pythonista argv is 'args' not 'argv'
        <pre>
        pythonista://[scriptname]?action=run&args=[argv values]
        </pre>

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

          @briarfox Either works - argv lets you pass arguments one-by-one, and is what we use inside Workflow. See the documentation.

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

            I think for now I will use Editorial, which does have x-callback.

            Edit: A simple "Console Output" Action in Editorial automatically jumps back to Workflow.

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

              I wonder if Workflow could be used to make an "open in Pythonista" action since it had to be removed from the app natively. I haven't had a chance to mess with Workflow yet, but if this could work it would make my life much easier.

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

                @Omega0, you can already do this using a bookmarklet in safari. See for example
                gistcheck

                You create a bookmarklet in safari, then when viewing a gist you click the bookmark, and it downloads and opens in pythonista. I'm not sure what the use case is that you are trying to solve, but with slight modifications you could make this more general.

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

                  @JonB,
                  I was unaware of the Safari bookmark method, but what I was looking for was something more along the lines of loading a PDF from the Google Drive app. Which I don't think would be possible with a bookmark.

                  1 Reply Last reply Reply Quote 0
                  • 0942v8653
                    0942v8653 last edited by

                    Omega0: That would be really cool, but unless workflow includes their own web server (or at the very least a base64 conversion action) at some point, it doesn't seem possible.

                    Edit: I guess if there was an upload action that would work too. Right now the fastest way seems to be using Dropbox :(

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

                      @Omega0

                      One workaround is to change the extension to an extension pythonista can open, then change it back once it is in pythonista.

                      Edit: looks like Pythonista can't open any file type?

                      You could read the contents of the file without opening it, and paste it in to pythonista?

                      1 Reply Last reply Reply Quote 0
                      • 0942v8653
                        0942v8653 last edited by

                        Any news on the update? You said "this week" last week :)

                        <sup><sup>not to be impatient or anything</sup></sup>

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

                          @942v8653
                          You're aware that this isn't the forum for Workflow, right?

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

                            @942v8653 App Store review is closed until Dec 29 (at least according to OmniFocus)

                            1 Reply Last reply Reply Quote 0
                            • 0942v8653
                              0942v8653 last edited by

                              @the_buch: Oh, I forgot about that—you could schedule updates (e.g. Christmas icon) to happen in the period but if you didn't get it in by Dec 22 (Monday), you have to wait.

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

                                Pocket'ed for experiments with the Watch.

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