I have a lot of drafts I want to export to iCloud Drive. The Save to Files action prompts for the name of every draft being exported. Is there a way to avoid that? It already has a file name.
(The save to iCloud Drive action gives me an error so I’m guessing it’s outdated and was replaced by save to files?)
Also, when you say you get an error with a save to iCloud Drive action, you don’t actually tll us exactly which action that is or what your error is, making it hard to guess what is going on.
I think I found the cause. The action uses Create, which fails if the filename exists. Using the timestamp appears to generate multiple files with the same name.
Changing the action to use Replace avoids the issue.
Maybe there should be two separate actions? One called single file which uses create, and one for multiple files which uses replace. I don’t know if it’s possible to prompt for a different filename when there is a filename conflict.
You can alter the action to provide a different file naming scheme. The default example version uses time to the second, which is obviously not unique enough if you are bulk exporting quickly.
Most use [[safe_title]] to use the first line of the draft and have something more identifiable in the resulting file.
Or, if you like a timestamp, and want to do bulk, you would need more specificity than “seconds” to avoid a collision. You could use a filename template tag that includes milliseconds in the name and you’d probably be fine. Like [[time|=yyyy-MM-dd HH-MM-SS-SSS]].