• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
delete iPhoto photos
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

delete iPhoto photos


  • Subject: delete iPhoto photos
  • From: cheshirekat <email@hidden>
  • Date: Wed, 15 Dec 2004 05:17:24 -0700

I've tried several variations of this subroutine:

to trashAlbumPhotos()
  with timeout of (60 * 20) seconds
    tell application "iPhoto"
      set the alb to the current album's name
      set the albPhotos to the photos in album the alb
      repeat with ph in alb
        add ph to the trash album
      end repeat
      remove album alb
      say "The album and all photos in the album have been deleted."
    end tell
  end timeout
end trashAlbumPhotos

The subroutine as it is will just move the photos in the specific album
to the iPhoto trash, but the photo is still in the Photo Library. I'd
really like to delete the photos from the "Photo Library" but have not
had any luck with:

  delete ph
  remove ph from album "Photo Library"

I've heard that the ID of the photos in iPhoto isn't really unique, so
I've been avoiding it as a means to identify the photo to delete. Since
this is permanent, I don't wish to unintentionally delete the wrong photo
and find out later. But it's quite tedious and time-consuming to have to
skip up to the Photo Library, find the right roll, select it, delete the
roll, then empty the iPhoto trash. I feel like I've been stuck on this
last part of this long script for ages. Any help would be greatly appreciated.

Thanks

cheshirekat
--
A nation creates music--the composer only arranges it.
-  Mikhail Glinka (1804-1857), Russian composer. Quoted in Theatre Arts
Magazine (New York, June 1958).

* 867 PowerBook G4 * OS X 10.2.8 * 768 MB Ram *
* Addictions: iTunes * AppleScript * iLife 4 * FileMaker Pro *

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: New version of SuperPrivacy Released.
  • Next by Date: Delay x return, how reliable, fast or slow is Applescript?
  • Previous by thread: New version of SuperPrivacy Released.
  • Next by thread: Delay x return, how reliable, fast or slow is Applescript?
  • Index(es):
    • Date
    • Thread