• 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
Re: removing a photo from "events album" removes the whole album!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: removing a photo from "events album" removes the whole album!


  • Subject: Re: removing a photo from "events album" removes the whole album!
  • From: Alan Legg <email@hidden>
  • Date: Sat, 18 Jul 2009 10:26:44 +0100

Hi Tor,

I couldn't get your example to compile, this one did though:

on deletephoto(sid)
tell application "iPhoto"
set nid to sid as number
set p to first photo of album named "Events" where id is nid
tell album named "Events"
remove p
end tell
end tell
end deletephoto

What do you get if you trace p?

Regards Alan

On 17 Jul 2009, at 20:01, email@hidden wrote:

I'm trying to remove a photo that's in an event in the events album:
---------------------------------
on deletephoto(sid)
tell application "iPhoto"
set nid to sid as number
set p to first photo of events album where id is nid
tell events album
remove p
end tell
end tell
end deletephoto
---------------------------------

Amazingly, the whole album is moved into the trash album if I do this.

the "tell events album" bit isn't needed, but I tried it just in case.

Anybody know what's going on? Or should I file a serious bug?

 _______________________________________________
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

  • Prev by Date: Re: open for access file
  • Next by Date: QuicKeys and script activation
  • Previous by thread: removing a photo from "events album" removes the whole album!
  • Next by thread: Read diacritics characters from file
  • Index(es):
    • Date
    • Thread