[BUG] "Open Document" won't open document created with python
ollo last edited by
I'm creating a new file from within a python script (editor.set_file_contents() ...). At the end of the python script I pass the filename as output to the workflow. After this I use a "Open Document" action to open the file ... or better I'm trying to, because it keeps telling me the file does not exist.
Strangely the file does exist after running the workflow and when I suspend the execution of the "Open Document" action everything work fine - the "Open Document" action find's the new file.
Well, I suspected some timing problem and added a sleep right before the workflow.set_output() and even added a editor.reload_files() just to make sure ... but unfortunately that was not working.
Could someone please tell me, if I'm doing something wrong? Or is this just a bug? (Btw. I'm using and IPad3 with IOS 7.0.2)
omz last edited by
Unfortunately, the Open Document action currently has a bug that causes it to fail when you use a variable for the filename. This will be fixed in the next update, but it's not really possible to work around it at the moment.
phillipsmn last edited by
Has this bug been fixed? I can't seem to enter a variable in the Open Document action and get it to execute.
ClareMacrae last edited by
I've found that Open Document works fine when opening the filename from Input.
So I suggest trying a workaround of putting a Generate Text action before the Open Document step, and having that Generate Text action just emit the desired variable.
This would then become the Input for the Open Document action, which would probably then work.