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.
Automatically archive files to Dropbox
knowsbest last edited by
I put together a script which I think might do some good for Pythonista and Dropbox-users. The premise is this: you use 'Open In…' to transfer a file to Pythonista (from any other app), and Pythonista forwards this file to a Dropbox path which you specify.
At the same time, however: the script prefixes the filename with a date-format suitable for all file browsers which can sort by name (who trusts 'sort by date' anyway: "YEAR.MM.DD") and asks you if you want to rename the file. If you don’t, it'll proceed with whatever name the sender (sender: which iOS app) has given it (Mail.app can for example name a file '4728477294287.pdf', which, at best, is slightly cryptic).
The script copies the share-link to the file you just uploaded, in order to verify that things worked.
Oh, and there's a snack in there which can help you name your files better; this by searching for the first word in the name, and replacing it with something more meaningful (to you). E.g.: filename: 'bill energy' => new filename: 'finance_invoice - energy'. You can obviously configure these to change from whatever and to whatever.
I might also add that the script deletes the files from Pythonista afterwards, so that this archiving doesn't clutter things up too much. I added a very short explanation of how to get the Dropbox module working in the notes of the script.
You can get the script from this link: https://gist.github.com/anonymous/8505899