I was using the Drafts action to send files to iA Writer (written by @davenicholls) and sometimes it works and sometimes it doesn’t.
I thought it was the files that have emoji as the first character as the problem, but I just tried ones without that and I get an error. A Red notification slides down from the top for a split second and I’ve tried tapping the notification but nothing happens.
What’s weird is, a few docs did move over when I tried this.
When it fails could you look at the action log and post what it says (it a screenshot).
You can get to the action log from the middle icon at the top of the action list (it looks like the drafts icon). You’ll see a list of actions that you’ve run with the most recent at the too. Tap on the failed one at it’ll give more details as to what went wrong
Dave, you are a genius. It’s not the emoji it at all. It’s that I have a long sentence/graf and it’s trying to use the whole first graf as the file name. So it says it’s invalid.
Is there a way to tell the script to use the first 20 characters of the file as the file name?
That is a bit confusing. I thought it might be the emoji but that works for me.
It’s also not clear why the filename that it’s saying doesn’t exist is longer than 20 characters.
Could you go into iA Writer and tidy up the files that have been created by the action (delete them and then choose another file to look at). I saw a similar message to the one you’re seeing, but it was in iA Writer not Drafts. I think it happened because I had deleted the file in IA Writer on my Mac while still having it open on my iPad. Tidying up the files before running the action should avoid that problem (which I’m hoping is linked to yours)
I’m still unsure as to what’s happening here. I’ve done some more testing and it works every time for me.
Could you share your updated action? If you edit the action and scroll to the bottom you’ll see the “Share to action directory” option. You can share it as unlisted so it doesn’t appear int eh public directory and then send me the link to it.