omz:forum

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

    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 6
    • Best 0
    • Controversial 0
    • Groups 0

    ryanlaner

    @ryanlaner

    0
    Reputation
    431
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    ryanlaner Unfollow Follow

    Latest posts made by ryanlaner

    • RE: Feature Request: Multiple Bookmark Bars

      You can use tags to group macros. Tag all macros you want together with the same tag and then select the tag at the top and it will filter to just those macros.

      posted in Editorial
      ryanlaner
      ryanlaner
    • RE: Pre-populate custom UI datepicker with selected date/time

      That was it. Thanks!

      posted in Editorial
      ryanlaner
      ryanlaner
    • RE: Pre-populate custom UI datepicker with selected date/time

      I added it as an action within the custom UI (attached to the datepicker object). Thought that was what you meant.?

      It doesn't seem to run at all.

      This Change Date workflow does what I want for populating the selected date but I couldn't figure out how it was doing it anywhere in the workflow. My workflow is different but this piece is what I need.

      posted in Editorial
      ryanlaner
      ryanlaner
    • RE: Pre-populate custom UI datepicker with selected date/time

      I guess I spoke too soon. I tried adding the following action in the datepicker as a run Python script but it does nothing.

      import workflow
      from datetime import datetime
      
      input = workflow.get_variable('date')
      dt = datetime.strptime(input, '%Y-%m-%d')
      
      view = workflow.get_view()
      
      datepicker = view['datepicker1']
      datepicker.date = dt
      

      I have run the first part of the code in a python script at the workflow level to verify the datetime object is being created correctly and it appears to be.

      Am I missing something?

      posted in Editorial
      ryanlaner
      ryanlaner
    • RE: Pre-populate custom UI datepicker with selected date/time

      That's what I was looking for, thanks! I didn't want to do the whole ui in Python, just inject some data like you suggested. I wasn't aware I could do this actions in the custom UI.

      posted in Editorial
      ryanlaner
      ryanlaner
    • Pre-populate custom UI datepicker with selected date/time

      Does anyone no how to pre-poplutate the datepicker UI with a provided date/time when the UI pops up. It defaults to today, but I want to provide a selected date to edit from. I can see how to do this from a python script but was looking for an easy way to set the date using the Custom UI workflow action. Workflow would be following:

      1. Select date/time in file
      2. If date/time selected, parse into appropriate format, else default to today
      3. Custom UI datepicker would pop up with selected date ready for editing
      4. Output new date for updating file

      /ryan

      posted in Editorial
      ryanlaner
      ryanlaner