Today I reset my 30GB video iPod and all of the smart playlists broke. Some were sorted in the wrong order (by name), some had no contents, and some were missing entirely.
I found a few references to the same problem:iTunes 9.1 – Smart Playlist Sort Order Still WonkyiTunes 9 + Smart Playlist + Live Updating + iPhone = FAILPreserving smart playlist order on iPhone
and then this “fix” from Apple
None of those solutions worked for me. What did seem
to work was to set iTunes to sync all copies of all podcasts (the default was to sync only unplayed).
A friend of mine recently found an old floppy disk created under OS 8 or 9 in the early 1990′s. There was a letter on the disk that she wanted copied off, but she doesn’t have a Mac any more.
No problem, I figured. I did a little research and found hfsutils
, and thought all I would need to do is stick the disk in my Linux box and grab the files. No such luck, since I don’t have a floppy drive in any of my systems
After a little more thought, I remembered the old rawwrite.exe
utility for creating bootable floppies under DOS. Sure enough, there’s a rawread.exe and I was able to make an image of the floppy disk on a Windows box.
Although the next step was
going to be to copy that image file to a Linux system to try to mount it, I decided to try to open it on my Mac (running Leopard) first, just for grins. I renamed the file to end .img, and it mounted right up. All of her files were there and Finder even acknowledged the layout of the icons in the folders.
Of course, the files themselves were created with some version of WordPerfect that no longer exists, so our data recovery efforts only went so far as to get the text of the letter without its formatting. I’m still impressed that a modern Mac that doesn’t even have a floppy drive could open the old disk image to begin with.
I have a couple of different thumb drives that I use as portable working devices. The data on them is important, so I wanted to back them up. Today I worked out how to copy the contents of the USB drive to a folder on my hard drive every time the USB drive is inserted into the computer.
The two technologies I used to accomplish this are Folder Actions
and AppleScript. The first step is to use ScriptEditor to save the script below to
~/Library/Scripts/Folder Action Scripts/SyncThumbDrive.scpt
property DEST_DIR : "Documents:ThumbDrives:" (* inside $HOME *)
log "Detected new volume " & volume
tell application "Finder"
-- figure out source for copying data
set sourcePath to the quoted form of the POSIX path of volume
log "Source path:" & sourcePath
-- work out the destination
set sourceVol to the name of volume
set myHome to path to home folder as string
set destFolderName to (myHome & DEST_DIR & volume)
if exists folder destFolderName then
set destPath to POSIX path of destFolderName
log "Destination path:" & destPath
do shell script "rsync -a " & sourcePath & " " & destPath
on adding folder items to this_folder after receiving these_items
repeat with aItem in these_items
end adding folder items to
Next, enable folder actions using the “Folder Actions Setup” application. Add the script above as an action on the “/Volumes” folder. Once you have done that, any time a file or directory is added to “/Volumes” the script will be invoked. Since a new entry is added for each volume mounted automatically, this amounts to triggering the script every time a volume is mounted.
The script looks for a destination directory ~/Documents/ThumbDrives/$VOLUME” where $VOLUME is the name of the drive inserted. You need to create the directory before inserting the drive because the script uses the presence of the directory as confirmation that it should copy the updates to the files on the thumb drive over to the hard drive.
After you create the destination directory, insert the thumb drive. When the backup is complete, the computer will play your configured alert sound.
No files are ever deleted, so if you have removed old files from the hard drive they will re-appear until you remove them from the thumb drive.