| Article: |
Cleaning iPhoto | |
| Subject: | Use the Force, Luke. | |
| Date: | 2005-01-21 11:07:30 | |
| From: | pixel | |
|
Response to: Use the Force, Luke.
|
||
| ok, so that might be shortened, and it MIGHT work faster, but it sure eats up memory for some reason. I killed iPhoto after it ran for 20 minutes, was using over 500MB of physical and 1.5GB of virtual memory... and it was steadily rising. Anyone have any ideas? | ||
Showing messages 1 through 3 of 3.
-
Use the Force, Luke.
2007-02-15 17:19:36 paulskinner [Reply | View]
-
Use the Force, Luke.
2007-04-14 16:59:47 sttkaufman [Reply | View]
Great applescript thanks. Is it possible to do the "remove duplicate" script written in Perl as an Applescript. That is my real problem. Thousands of dulpcates from merging three semi-duplicate iphoto libraries on three machines. Now I have a mess on my hands. I would like to search for dulpicate images that may or may not have different names, and choose the largest res, keep that one, and throw out the others. Any thought or hints? Any one tried this in AppleScript?
Stephen -
Use the Force, Luke.
2007-02-15 17:26:30 paulskinner [Reply | View]
I forgot to mention that if you're running iPhoto on an older or lower-powered system you should go to the appearace pane of the iPhoto preferences and turn off drop shadow and outline options for a substantial speed improvement.
Seeing the dates on this article I hope you're back in the states Brian, but perhaps not... if you're still over there, keep your head down.




This is indeed very inefficient despite being concise.
This version is more memory and processor efficient. I ran it against my 22000 image library and checked 5500 in ten minutes.
tell application "iPhoto"
tell photo library album
set c to count of photos
repeat with myIndex from c to 1 by -1
tell photo myIndex
set {thisWidth, thisHeight} to {width, height}
end tell
if thisWidth < 200 or thisHeight < 200 then
remove photo myIndex
end if
end repeat
end tell
end tell