omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. realburch

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    realburch

    @realburch

    0
    Reputation
    455
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    realburch Unfollow Follow

    Latest posts made by realburch

    • RE: Safari bookmarklets

      Something like the below can pass input to a workflow via a bookmark where command is the URL encoded name of the target workflow.
      javascript:window.location='editorial://?command=WorkflowName&input='';

      posted in Editorial
      realburch
      realburch
    • Regex Select Phrase Not Between Brackets

      I have a block of text that looks like the below:

      I need you to take a look at Bug 123 and Bug 2345. Also see the list below:

      1. Bug 333
      2. Bug 444
      3. Bug 555

      My workflow successfully insert markdown links for the referenced bugs through the use of the repeat block set to use each match of a regular expression. The resulting text looks like:

      I need you to take a look at [Bug 123](www.bug.com?id=123) and [Bug 2345](www.bug.com?id=2345). Also see the list below:

      1. [Bug 333](www.bug.com?=333)
      2. [Bug 444](www.bug.com?=444)
      3. [Bug 555](www.bug.com?=555)

      My question is, if I want to run the workflow again, how can I prevent it from trying to rewrap matches that already have links.

      The regex pattern I am using (?<![)\bBug\s\d+\b(?!]), and although online python regex testers say the syntax is correct in only identifying Bug #'s not in brackets, it is not working in my workflow.

      Thanks in advance

      posted in Editorial
      realburch
      realburch
    • RE: Regex Select Phrase Not Between Brackets

      Nevermind I see what I did wrong.

      I was naming my link tooltips the same name as the original text, which the workflow was then picking up on subsequent run throughs. the regex was fine.

      I ended up just renaming the tooltips to something generic, but I could have also ignored Bug phrases wrapped in quotes.

      posted in Editorial
      realburch
      realburch
    • RE: Regex Select Phrase Not Between Brackets

      Gotcha. The workflow is posted here.

      posted in Editorial
      realburch
      realburch