omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    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

    Pythonista
    1
    1
    1127
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • knowsbest
      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB Forums | Contributors