Embracing iCloud - PDF's

Ben - Mon 03 December 2012 - iCloud, PDF

I'm really excited about iCloud. Don't get me wrong, it's far from perfect and Apple has a lot of work to do over the next few years before we see some mainstream adoption. Also Apple 5GB seriously? My iPhone backup is 3.3GB on its own! I hope the recent management changes at Apple will help see a more seamless experience between iOS, Mac and sharing with other users!

First steps

Like I said before I have a lot of fiction when it comes to storing files. Where to I store this? Mmmm where did I store that file? I want this file but I don't want to see it every time I open finder. iCloud document library excites me because the vision of it, is to replace this fiction. All I need to remember is which application relates to this file type.

My first step into this brave new world is moving my PDF's into the cloud.

iCloud's real filesystem

Even though iCloud's documents are in the "cloud" and tied to an application, they still need to live somewhere on your Mac. That place is "~/Library/Mobile Documents". iCloud The good thing about this place, is that any changes made here are reflected in iCloud. For example you can drop in files here and create iCloud document folders. I'm going to be using Preview as my iCloud PDF reader and those documents are stored in "~/Library/Mobile Documents/com~apple~Preview/Documents/" title As you can see, it's the same! title As dropping any PDF file in here ends up in my iCloud document library, this got me thinking about some iCloud automation with Hazel.

Automating iCloud - PDF downloads to iCloud

My first automation script is moving my downloaded PDF's to iCloud. I have a few reason why I want to do that. First, I hate the mess which is my downloads folder but I also hate processing it. Moving them to iCloud will help the mess, ease processing and knowing where to find a file.

Here is my finished script, it's very simple. hazel

First, find PDF files in my download folder. Next is to move them to iCloud, add a "Move to folder" and change the folder drop down to other. Navigate to "~/Library/Mobile Documents/com~apple~Preview/Documents" by hitting "Shift+Command+G". open Create a new folder there called "Downloads" and hit open. open And to finish, I added a little growl notification.