|
|
dont duplicate, link them
Instead of duplicating the files just link them using the unix command "ln". this will not physically duplicate the files. But you can treat the linked copies as though they were copies.
Link-instead-of-duplicate code change
Yes, you are absolutely right, creating symbolic links will potentially save a lot of disk space (it's a function of how many images you use as rotating desktop photos). I was so focused on simply replicating the iPhoto Export functionality that I didn't even think to do something smarter and use symlinks.
At first I tried making regular, good ol' aliases with the script since that is the Mac way of doing things. I thought the Desktop System Preference would thus be happier with aliases than with symlinks, but oh boy was I wrong! Aliases didn't work at all. So, change this line: do shell script "cp " & quoted form of image_path & " " & quoted form of target_dir_pathto this: do shell script "ln -s " & quoted form of image_path & " " & quoted form of target_dir_pathin order to have a folder full of symlinks instead of copies of all the image files. -Geoff --- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.33 seconds |
|