jonjump 1 Posted March 31, 2014 Posted March 31, 2014 I wanted to import a large number of files (mainly pdfs) into my premium account. This solution works well on Linux - I presume it would also run on OSX assuming you have a command line emailer available. I used "mutt" and a oneline command line script like so: for i in <DIRECTORYNAME>/* ; do echo -n "$i" ; echo -n "..." ; mutt <YOUREVERNOTEEMAIL> -s "$i" -a "$i" </dev/null ; echo " done" ; done Just replace <DIRECTORYNAME> and <YOUREVERNOTEEMAIL>. This creates a note for each file, with the title as the filename. Hope this helps someone. It will certainly help me the next time I want to do it and can't remember the mutt command line options.
jonjump 1 Posted March 31, 2014 Author Posted March 31, 2014 Or if you have nested directories, you can do this, which creates a note for every file in and below the current directory - but watch out - this is a very quick way to use up your month's upload! find -name "*" -not -type d -exec echo {} \; -exec mutt <YOUREVERNOTEEMAIL> -s "{}" -a "{}" </dev/null \;
Recommended Posts
Archived
This topic is now archived and is closed to further replies.