I wrote:
If you're using a Mac, an AppleScript attached to the folder which would delete the oldest backup when a new one was created would be pretty trivial to write.
Jeremy
[a href=\"index.php?act=findpost&pid=156342\"][{POST_SNAPBACK}][/a]
And here it is. Copy into the Script Editor, save as a compiled script in /Library/Scripts/Folder Action Scripts. Enable folder actions for your LR backup folder and assign this script as an action.
All it does is to check, whenever something is added to the folder, if more than maxFolders exist and, if they do, to delete the oldest of them. It works because LR (1.3, anyway) creates a new folder for each new backup.
You can change maxFolders to any value you like, depending on how many backups you want to keep.
Tested, but not thoroughly. Seems to work. Use at your own risk. No warranties, express or implied. Should you or any of your IM team be captured or killed, I will disavow any knowledge of your actions.
Jeremy
to getOldest(folderList)
local theFolder, theOldest, oldestDate
tell application "Finder"
set theOldest to folderList's first item
set oldestDate to theOldest's creation date
repeat with theFolder in folderList
if theFolder's creation date is less than oldestDate then
set theOldest to theFolder
set oldestDate to theOldest's creation date
end if
end repeat
end tell
return theOldest
end getOldest
on adding folder items to thisFolder after receiving addedItems
set maxFolders to 5
tell application "Finder" to set folderList to every folder in thisFolder
if (count items in folderList) is greater than maxFolders then
set theFolder to getOldest(folderList)
tell application "Finder" to delete theFolder
end if
end adding folder items to