• 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
How to check for and remove a photo from an iPhoto album
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to check for and remove a photo from an iPhoto album


  • Subject: How to check for and remove a photo from an iPhoto album
  • From: "Paul J. Lucas" <email@hidden>
  • Date: Tue, 2 Jun 2009 20:50:50 -0700

I want to write an AppleScript to import a photo into an album. If a photo with the same file-name already exists in the given album, I want to remove the existing one first, then proceed with the import. I tried:

	if album "MyAlbum" contains "pic1.jpg" then
	    remove "pic1.jpg" from album "MyAlbum"
	end if

but that doesn't compile. (I know how to do the actual import part.)

- Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: How to check for and remove a photo from an iPhoto album
      • From: Paul J.Lucas <email@hidden>
  • Prev by Date: Re: Same code gives different answers in 2 different scripts
  • Next by Date: Re: Same code gives different answers in 2 different scripts
  • Previous by thread: RE: AppleScript-Users Digest, Vol 6, Issue 241
  • Next by thread: Re: How to check for and remove a photo from an iPhoto album
  • Index(es):
    • Date
    • Thread