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.


    [Suggestion] Allow variable names in Workflow functions for specifying filenames.

    Editorial
    3
    7
    5120
    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.
    • WyldKard
      WyldKard last edited by

      Would it be possible to allow the use of the contents of a variable name for functions like "Set File Contents"? Currently, users have to know the name of the file in advance when creating a Workflow. We can select variables in other portions of Workflow blocks, but not when dealing with files.

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

        When you invoke the copy/paste menu in the filename field, you'll see a "Variable..." item that lets you use a variable as the filename.

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

          Awesome - thanks for pointing that out! I hadn't thought of bringing up the copy/paste menu here to see if that was an option!

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

            Just noticed that you can't mix and match a variable name and manual text. For example, I'd like to prepend the variable value with a filename path, but I can only do one or the other. Could this be added in a future version?

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

              Yes, in single-line text fields, you can only use one or the other (plain text or a variable), it would be relatively difficult to change that due to some implementation details. I'd suggest just using a new variable; you can mix and match plain text with other variables in the Set Variable action.

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

                Got it - I'm setting a new variable by appending my dynamic filename to a default path via a Python script, but good to know I can do it from the Set Variable action block as well. Thanks.

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

                  Thanks, that saved my day for the "transfer to Dropbox" problem.

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