|
|
A similar technique
Much of this goes back to basic (or at least standard) shell scripting.
The main problem with the as-submitted command is that identical instance
A possible solution would be something like this (yes, there are more efficient % sh [or, as I prefer, zsh, this is to get to a familiar scripting syntax] % cd ; mkdir some-image-dir ; cd some-image-dir % path_to_iphoto_dir="../Pictures/iPhoto Library" ; find $path_to_iphoto_dir -name *.jpg | while read file ; do new=`echo $file | sed -e "s,$path_to_iphoto_dir/,,;s,/,-,g"` ; echo cp "$new" . ; doneRemove the 'echo' before the 'cp' to actually execute the copy. I'll leave deciphering it to the typical "exercise for the interested reader".
A similar technique
Those new to Mac OS X might not realize that the shell is not the only way to automate the computer. Try using AppleScript. For example, here's the script for moving all the JPEG images in an entire directory to another folder. The variables (this_folder and target_folder) contain refs to the cooresponding directories.
A similar technique
Does this applescript solution work recursively? The issue was that iPhoto stores its photos in many many subfolders. If everything were in the same folder one could simply drag and drop the whole folder. I'm sure this is possible in Applescript, but I found that the shell sped things up considerably. Just think about all the spinning color wheels you get when you try to select a lot of items in the finder and do something with them! All those Aqua tricks (transparnet dragging) really don't scale very well when you are doing operations on thousands of files. It would be interesting to compare the speed using Applescript and using the shell ... |
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.05 seconds |
|