mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
[#19 state:hold] Added "timeout=0" args to appscript call. Let's try and see if it helps.
--HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%409
This commit is contained in:
parent
c5263f0817
commit
b05a46a398
@ -147,10 +147,10 @@ class DupeGuruPE(app_cocoa.DupeGuru):
|
|||||||
if any(isinstance(dupe, IPhoto) for dupe in marked):
|
if any(isinstance(dupe, IPhoto) for dupe in marked):
|
||||||
j = j.start_subjob([6, 4], "Probing iPhoto. Don\'t touch it during the operation!")
|
j = j.start_subjob([6, 4], "Probing iPhoto. Don\'t touch it during the operation!")
|
||||||
a = app('iPhoto')
|
a = app('iPhoto')
|
||||||
a.select(a.photo_library_album())
|
a.select(a.photo_library_album(timeout=0), timeout=0)
|
||||||
photos = as_fetch(a.photo_library_album().photos, k.item)
|
photos = as_fetch(a.photo_library_album().photos, k.item)
|
||||||
for photo in j.iter_with_progress(photos):
|
for photo in j.iter_with_progress(photos):
|
||||||
self.path2iphoto[unicode(photo.image_path())] = photo
|
self.path2iphoto[unicode(photo.image_path(timeout=0))] = photo
|
||||||
j.start_job(self.results.mark_count, "Sending dupes to the Trash")
|
j.start_job(self.results.mark_count, "Sending dupes to the Trash")
|
||||||
self.last_op_error_count = self.results.perform_on_marked(op, True)
|
self.last_op_error_count = self.results.perform_on_marked(op, True)
|
||||||
del self.path2iphoto
|
del self.path2iphoto
|
||||||
|
Loading…
x
Reference in New Issue
Block a user