• ryanlaner

    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 read more
  • ryanlaner

    That was it. Thanks!

    posted in Editorial read more
  • ryanlaner

    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 read more
  • ryanlaner

    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 read more
  • ryanlaner

    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 read more
  • ryanlaner

    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 read more
Internal error.

Oops! Looks like something went wrong!