Skip to content

Instantly share code, notes, and snippets.

View voccs's full-sized avatar

Ryan Lee voccs

View GitHub Profile
@voccs
voccs / BurnPhotoBackups.applescript
Created June 27, 2012 08:39
Split negatives from Adobe Lightroom into DVD-sized libraries for backup to disc.
(*
Splits a Lightroom folder into DVD burnable folders.
Usage
Pick a starting photo and supply the script with Lightroom's
storage location and what disc number you're at. Pay attention,
this script asks for input because AppleScript does not supply
a sane way to burn automatically. After the initial dialogs,
the script will show you a burn folder when one is ready. You
@voccs
voccs / ESotSM.applescript
Created September 29, 2011 01:57
Split an iPhoto library into DVD-sized libraries fit for backup to disc.
-- ESotSM: Split an iPhoto folder into DVD burnable iPhoto folders
-- size of a DVD-sized photo library
set LIBRARY_SIZE_LIMIT to 4.69E+9
-- don't start checking size until library has fewer photos than this
set LIBRARY_LENGTH_LIMIT to 1200
-- Acquire photo library
set pictures_folder to path to pictures folder from user domain as string
set photos_folder to choose file with prompt "Select the iPhoto library to split." default location POSIX path of pictures_folder with invisibles