![]() My current setup has revolved quite a bit in the last year or so. ![]() I handle the hardware (Mac computers and an assortment of A/V gear) and software ( Final Cut Pro X, the Adobe suite, etc.) side of things, making sure everything works well and helps get the job done. Essentially I work with a great team of folks way smarter than I am to help students, faculty, and staff produce high-quality media content and research new ways of delivering content and information. I’m a Digital Media Specialist and media production lab (or “ Media Commons“) manager at the University of Alabama at Birmingham, more specifically at UAB Digital Media. New setup interviews are posted every Monday follow us on RSS or Twitter to stay up to date. We do these interviews because not only are they fun, but a glimpse into what tools someone uses and how they use those tools can spark our imagination and give us an idea or insight into how we can do things better. Users/criticalold/Documents/ShellScripts/checkdirectory.Every week we post an interview with someone about what software they use on their Mac, iPhone, or iPad. Users/criticalold/Applications/Utilities/Terminal.app #Wait for 25 seconds before checking again. #Do our housekeeping for next time by making the *b files the same as the *a or the Journal file so that we do a valid comparison.Ĭp /Users/criticalold/Documents/Dropbox/Apps/Drafts/Journal.txt /Users/criticalold/Documents/Dropbox/Apps/Drafts/JournalB.txt #Then do a diff on the files and send the diff to grep to get rid of some numbers that diff creates then append to ScratchX.txt.ĭiff /Users/criticalold/Documents/Dropbox/Apps/Drafts/Journal.txt /Users/criticalold/Documents/Dropbox/Apps/Drafts/JournalB.txt | grep '^> /Users/criticalold/Documents/Dropbox/nvALT/ScratchX.txt #Check whether it differs from the last directory listing and tell us if it does Ls -l /Users/criticalold/Documents/Dropbox/Apps/Drafts > /tmp/dira.tmp #List the directory and put it into dira.tmp #It requires a change in the /Apps/Drafts directory to trigger anything further. If they differ we copy the diff to ScratchX.txt #I create a dummy JournalB.txt and use diff to check whether it and Journal.txt remain the same. #The second is used by Drafts on iOS and is in the /Apps/Drafts directory and is called Journal.txt The first is in the /nvALT directory and is called ScratchX.txt I use it for clipping text to on Mac #This script is designed to combine two scratch files that I use for holding snippets of text. The second part for Mac users is a plist that loads the script and keeps it chugging away.Īs always, use these scripts at your own risk and I’d love to hear all the ways that you find to make them smarter, better, more elegant and more robust. If it has it appends the contents to scratch file. The first part is a bash script that checks to see if the /Apps/Drafts/ directory content has changed and then checks if the Journals.txt file has changed. I’m a rotten coder but I managed to hack something up that does the job. This sent me on a path to see if I could somehow move all the text into my scratch file in nvALT. I don’t want two sets of text clippings, and I don’t want one of them outside of my nvALT directory. The problem is that it always puts it into /Apps/Drafts/Journal.txt and that appears to be a hardcoded path. I use a LaunchBar shortcut to append selected text to that file.ĭrafts will append text to a file in Dropbox also. I have a scratch file in nvALT that I use for all text clipping I do. I rely on nvALT to find stuff in those files and nvALT will only act across a single directory. In my Dropbox I have one directory called nvALT which is where I keep all my miscellaneous text files. However the way it appends to Dropbox annoys me.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |