tag:blogger.com,1999:blog-4556963925910772884.post8230071741394342973..comments2022-03-23T10:54:32.300+11:00Comments on Phil at Warrimoo: IPhoto Script to Remove Missing Photosphilhttp://www.blogger.com/profile/08151110415999145024noreply@blogger.comBlogger41125tag:blogger.com,1999:blog-4556963925910772884.post-71415573169277629392013-05-31T08:00:56.475+10:002013-05-31T08:00:56.475+10:00The script works perfectly! Thank you very much fo...The script works perfectly! Thank you very much for it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-20098416318874215552013-05-10T07:32:05.077+10:002013-05-10T07:32:05.077+10:00The script works perfectly when used in the "...The script works perfectly when used in the "Photos" view. Took me a moment to figure out.<br /><br />When selecting images within events or albums it does not as iPhoto returns the list of events or albums with set curPhotos to selection and thus the loop would need to handle all albums and then all photos within I assume. This should be not too hard to fix though if anybody needs it.<br /><br />Thanks for putting this out.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-33567552298371944112013-03-26T11:30:57.606+11:002013-03-26T11:30:57.606+11:00this works perfectly thank you! My boss thinks I&#...this works perfectly thank you! My boss thinks I'm a genius. :)Amelia Reiff Hillhttps://www.blogger.com/profile/13684154860856862238noreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-29283097552471249972013-03-19T20:24:08.137+11:002013-03-19T20:24:08.137+11:00thanks so much for this!thanks so much for this!Anonymoushttps://www.blogger.com/profile/13915279708804391051noreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-71518309256914567692013-03-03T15:14:55.456+11:002013-03-03T15:14:55.456+11:00I'm not going to be able to help here since I ...I'm not going to be able to help here since I switched from OS-X to Linux on all my laptops. <br /><br />I still have OS-X installed, but not iPhoto.<br /><br />Probably, if it is a permissions problem, you can fix all your photo permissions within Finder and then re-run this script.<br /><br />But if it is a permissions problem, how did this happen? <br /><br />Your iPhoto library is only accessible by your (or root) and I doubt you would have been using root to modify your iPhoto library.<br />philhttps://www.blogger.com/profile/08151110415999145024noreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-16862763814383702432013-03-03T13:44:30.409+11:002013-03-03T13:44:30.409+11:00This seems to be working for me, but it got very s...This seems to be working for me, but it got very slow after a while. I have a library with 21,000 photos, so I expect it to take a while, but I do notice lots of -10004 errors. I've read up that it's an administrator privileges error, but what statement could be added after the tell to make sure it has the proper permissions to remove the pictures (to the Trash?)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-4606685973234604102013-02-18T08:32:15.341+11:002013-02-18T08:32:15.341+11:00Worked well. Just what I needed.Worked well. Just what I needed.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-18460679223818423082013-01-16T09:27:12.742+11:002013-01-16T09:27:12.742+11:00Thank you! its stupid Iphoto doesnt do it itself!Thank you! its stupid Iphoto doesnt do it itself!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-82220627604986191772012-12-24T06:43:50.810+11:002012-12-24T06:43:50.810+11:00For me it worked as well!! Thanks for sharing this...For me it worked as well!! Thanks for sharing this trick!!!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-35954266630214252322012-12-07T10:24:48.510+11:002012-12-07T10:24:48.510+11:00IT WORKED !!! THANKS SO MUCH !!!IT WORKED !!! THANKS SO MUCH !!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-20574077562475091522012-09-27T05:25:48.296+10:002012-09-27T05:25:48.296+10:00Works like a charm bro, I've been searching th...Works like a charm bro, I've been searching the net for a while for a solution to this problem. Thanks a bunch. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-63086927996559688622012-09-12T00:13:56.938+10:002012-09-12T00:13:56.938+10:00works like a magic. saved me effort to go look for...works like a magic. saved me effort to go look for a new photo app. thanks alot!!康.sydniehttps://www.blogger.com/profile/15063299201919881585noreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-58882289505634576452012-01-08T20:30:34.099+11:002012-01-08T20:30:34.099+11:00Thank you very much! Exactly what i needed to fix ...Thank you very much! Exactly what i needed to fix my library after upgrading to Lion. Lucky me had all pictures not imported to library, so i could just dnd them back into iPhoto.<br /><br />Thanks again!Michaelhttp://michael-simons.eunoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-3556238946119326512011-12-04T20:15:05.106+11:002011-12-04T20:15:05.106+11:00Tremendously helpful! I had a few thousand files ...Tremendously helpful! I had a few thousand files affected by this.<br /><br />Didn't work for me at first. I changed "image path" to "original path". Still didn't work. Then, not knowing what the heck I'm doing, I added the line saying "select t" right after the one where t is set. Not sure why, but it seems some action has to be attempted on t before it can trigger the error. Works great now.<br /><br />KenAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-51538883760156746822011-11-14T20:22:27.928+11:002011-11-14T20:22:27.928+11:00Thanks!Thanks!philhttps://www.blogger.com/profile/08151110415999145024noreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-51908302010075651832011-11-14T19:59:55.665+11:002011-11-14T19:59:55.665+11:00I make link to you Blog from this http://www.warin...I make link to you Blog from this http://www.warinya2u.com/blog/2011/11/mac-%E0%B8%88%E0%B8%B1%E0%B8%94%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%A3%E0%B8%B9%E0%B8%9B%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%95%E0%B8%81%E0%B8%84%E0%B9%89%E0%B8%B2%E0%B8%87<br /><br />Thank for you article.tophttp://warinya2u.comnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-425340176796936222011-10-31T08:00:19.713+11:002011-10-31T08:00:19.713+11:00Really loved this! Very nice job! It really does...Really loved this! Very nice job! It really does the trick.<br />Thanks again!Art Deconoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-69316693518338352152011-08-11T06:15:52.728+10:002011-08-11T06:15:52.728+10:00Thank you! i was looking for so long for such a sc...Thank you! i was looking for so long for such a script!<br /><br />The only thing is: I prefer changing the comment of those missing pictures rather than deleting them directly.<br />So this would be my version:<br /><br />tell application "iPhoto"<br /> set curPhotos to selection<br /> <br /> if (count of curPhotos) ≤ 0 then<br /> display alert "You need to select the photos you want to process."<br /> else<br /> set countPhotos to count of items in curPhotos<br /> repeat with i from 1 to countPhotos<br /> set thisPhoto to item i of curPhotos<br /> try<br /> set picInfo to info for (image path of thisPhoto as POSIX file)<br /> on error<br /> set comment of thisPhoto to "Missing"<br /> end try<br /> end repeat<br /> end if<br /> <br /> beep<br /> display alert "All missing Photos can now be found searching for MISSING!"<br /> <br />end tellAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-73108210161999018722011-07-29T16:21:33.889+10:002011-07-29T16:21:33.889+10:00Thank you so much. This is a very elegant way of d...Thank you so much. This is a very elegant way of doing just what it says it does. Thank you thank you thank you!MasterSivershttps://www.blogger.com/profile/02846082761564382971noreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-35200918679631730682011-06-21T03:43:13.761+10:002011-06-21T03:43:13.761+10:00it works perfect thksit works perfect thksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-55292610158549389762011-05-07T10:29:40.668+10:002011-05-07T10:29:40.668+10:00Thanks jasechong, that may be the solution.Thanks jasechong, that may be the solution.philhttps://www.blogger.com/profile/08151110415999145024noreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-74580533093137490112011-05-07T00:34:29.826+10:002011-05-07T00:34:29.826+10:00Not sure if this helps, but I had the same problem...Not sure if this helps, but I had the same problem as sciencectn. My actual photos aren't in the iPhoto Library but on a separate folder (on an external USB drive). I had deleted some of the files purposely using Finder. But the script was not deleting anything in iPhoto because iPhoto seemed to think the files still existed (it seemed to be finding the preview file - just like sciencectn's example above). <br /><br />But I simply changed "image path" to "original path" in the script above and it seems to work correctly for me now!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-9259838144981300192011-05-02T09:31:36.929+10:002011-05-02T09:31:36.929+10:00I have the same error as sciencectn. Shame, becau...I have the same error as sciencectn. Shame, because I've been looking for something that does just this.<br /><br />iPhoto 8.1.2, OSX 10.6.7Anonymoushttps://www.blogger.com/profile/01824579072337279035noreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-77302850103828334832011-04-23T08:29:30.473+10:002011-04-23T08:29:30.473+10:00Thanks for commenting.
sciencectn has had problem...Thanks for commenting.<br /><br />sciencectn has had problems with it that I can't replicate, but it seems to have something to do with either mounted drives or alias's.philhttps://www.blogger.com/profile/08151110415999145024noreply@blogger.comtag:blogger.com,1999:blog-4556963925910772884.post-89876377579753169632011-04-23T02:04:05.566+10:002011-04-23T02:04:05.566+10:00Thanks for posting this, it worked exactly as adve...Thanks for posting this, it worked exactly as advertised for meKevinnoreply@blogger.com