IPhoto "new album" command returning null album

If I run this script, the result is "album id 0 of application "iPhoto"".
tell application "iPhoto"
set a to new album name "Foo"
return a
end tell
I'm not very experienced with AppleScript, but I believe the id 0 indicates "null" -- if I try to do something with it, like "return name of a", I get an error: "Can't get album id 0".
In contrast, if I do this, the result is "album id 4.294967373E+9 of application "iPhoto"":
tell application "iPhoto"
set a to new album name "Foo"
return album "Foo"
end tell
This seems very simple, but apparently I'm missing something.
(The reason I care is that iPhoto's album names aren't unique identifiers -- if I create a new album, I want to be sure I'm working with that album and not another that happens to have the same name.)

Looks like a bug. Try this as a workaround:
*tell application "iPhoto"*
*new album name "Foo"*
*set A to last album*
*end tell*

Similar Messages

  • IPhoto new albums problem

    Hi,
    I've noticed a weird problem with my iPhoto lately. I can create new albums just fine in iPhoto itself, but when I go to my Finder and hit Pictures>iPhoto Library>Albums, the new albums don't show up as new folders. Is there something wrong here, or am I just using an outdated version of iPhoto?

    As long as the albums are there when iPhoto is open, don't worry about it. You shouldn't be poking around in the iPhoto Library folder in the Finder anyway — all you can do in there is corrupt iPhoto's database and make the app lose track of the rest of your stuff. There is no reason to go there at all — everything you need to do with your photos can and should be done from within iPhoto.

  • When I create a new album, why does iPhoto 11 separate pictures into untitled albums?

    When creating a new album, why does iphoto 11 separate pictures into untitled albums?  I want all designated photos in the album i created..

    I'm guessing you're missing the album in the left hand pane by just a bit and thus creating new albums for each of the photo you're dragging.  Make sure the album is highlighted as in this screenshot (iPhoto 9.4.2) before releasing:
    A sure file way to get an album with the photos is to select the photos again and use the File ➙ New Album menu option
    and that will produce a new album with the photos that were selected.
    OT

  • Is there anyway to stop iPhoto 9.6 creating a new unnamed album within a named album when I drag a new photo into the named album.  for example:  There is a album called Fred.  I have a new photo of Fred imported into the Last import Folder.  I wante

    is there anyway to stop iPhoto 9.6 creating a new unnamed album within a named album when I drag a new photo into the named album.  for example:  There is a album called Fred.  I have a new photo of Fred imported into the Last import Folder.  I wanted to drag it into the album called Fred but iPhoto creates a new unnamed album within Fred.
    Any ideas please.  I am using Yosemite 10.1.1
    Many thanks Jaz Eilles

    Sounds like you have a folder with an album named fred inside of it.  Folders can only hold other folders, albums, slideshows, etc. but not just photos.  So you must be sure to drop the photo directly onto the album titled fred that resides inside that folder otherwise it will create a new album.
    So expand the folder so the fred album is visible and drop the new photo onto the album.

  • Albums in Aperture vs Albums in iPhoto

    Hi,
    I am a bit confusing about the usage of Albums in iPhoto and Aperture 3.
    My understanding,
    iPhoto: adding a picture to albums is just to create links, there is always one physical copy of image, modifying the picture from an album will update all albums that have that picture. The concept of Album in iPhoto is more like a tag or a label?
    Aperture: adding a picture to albums is to copy physical image files, you may have duplicated images if a picture is added to several Albums. Change of a picture in an album will not update the same picture in other albums.
    Is my understanding correct?
    Since my iPhoto and Aperture use same the iPhoto library, how do they actually work together when browsing albums? iPhoto creates links but Aperture copies files.

    versions do not mean duplications of images, versions mean changes-to-be-applied?
    That is correct.  Versions are image files in limbo - just a set of adjustments describing the changes that need to be applied to the original to render the image as an image file. You create new versions by using the command "Photos > Duplicate version" or "Photos > New version from original". Or by setting the preference to create new versions when making adjustments.
    This paragraph in the manual is very misleading:
    When you drag an image into a different album, Aperture creates a duplicate version of the image and places it in the album. An image can be copied into any album in the same project or into albums in different projects. The destination album can be an album, book album, Light Table album, slideshow, or web journal or webpage album.
    Dragging between albums does not create new versions - it adds a link to the same version to the destination album. You can test that, by dragging an image to an album and flagging it in the album. You will see that all occurences of this version in all albums will be flagged. SO there is still only one version after dragging, but used in different albums.

  • Just upgraded to iPhoto '11...missing Smart Albums and Flags...Help???

    I just upgraded from iPhoto '08 to iPhoto '11 via the App Store.  While it appears that all of my photos are still on my computer, when I try to open my Smart Albums, it says that they contain "no photos."  Also, it appears that none of my photos marked with flags are still flagged.  Can anyone help?

    How did you upgrade the library? Did you just open it with iPhoto 11 and let it convert the library to the new version?  If so then try the following:
    Make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • I have iphoto 5.0.4  My computer crashed while trying to quit iphoto and when I rebooted my albums and organized folders had all disapeared.  All my photos are still there but how do I retrieve my folders and albums?  I tried rebuilding the database

    My computer crashed while quiting iphoto.  When I rebooted my albums and folders had disappeared.  How do I get them back?  I tried rebuilding the database to no avail.  I am using iphoto 5...
    Thank you community!

    Most simple solution: restore from your back up.
    Other than that, try Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • I have the 2nd Gen iPad and imported my photos from my computer to my iPad awhile back. Now I'd like to sync it to new MacBook Pro and my albums are not showing up? Anyone know how to fix this?

    I have the 2nd Gen iPad and imported my photos from my computer to my iPad awhile back. Now I'd like to sync it to new MacBook Pro and my albums are not showing up? Anyone know how to fix this?

    You'll have to transfer them from the pc to the mac.
    There are some options
    Importing personal photos & videos from device to  your computer
    http://support.apple.com/kb/HT4083?viewlocale=en_US&locale=en_US
    Managing photos/videos
    Iphoto app for iOS
    http://www.apple.com/support/ios/iphoto/
    photo manager pro
    https://itunes.apple.com/sg/app/photo-manager-pro/id393858562?mt=8
    Photo transfer app
    http://www.phototransferapp.com
    Dropbox
    https://www.dropbox.com/referrals/NTMzMjg0NjkzOQ?src=global9
    Picasa
    http://picasa.google.com
    photo manager pro 
    https://itunes.apple.com/sg/app/photo-manager-pro/id393858562?mt=8

  • Any way to get iPhoto'09 to recognise existing Facebook albums?

    Is there any way to get iPhoto '09 to recognise existing Facebook albums?
    It would be nice to have all the previous albums I've uploaded to be listed in iPhoto and all the 100's of people I've already tagged would serve as a nice basis for the iPhoto face detection to learn who my friends are!

    This is an interesting workaround, but misses the spirit of the original post. I don't know a way to get iPhoto '09 to recognize existing FB albums, but I agree that this is a serious problem with iPhoto '09.
    The iPhoto '09 Facebook and Flickr uploaders have one "cool" feature - they automatically sync iPhotos events with FB "albums" or Flickr "sets", so if you make changes to the photos in iPhoto, then those changes are reflected in the photos on FB and Flickr automagically (this has been working for me in FB but not in Flickr). The more I use this the more I think it's more trouble than it is useful and I wish I could turn it off and just use the old exporters without syncing.
    There are problems with the exporters:
    (1) the constant syncing with FB/Flickr can get annoying if you're making several changes, if you have a slow internet connection or slow computer.
    (2) If you don't actually want the changes to be reflected in the FB/Flickr album (i.e. i delete photos out of iPhoto to make room on my disk for more photos and now the photos are deleted out of facebook) can get not as user friendly as the original Facebook and Flickr exporter was easier and more user-friendly.
    (3) syncing is cool for a computer programmer to do, but what if users don't want it all the time? What if I don't want my Facebook albums to be exactly the same as my iPhoto albums, and I don't want to split out all the photos that I don't want on Facebook into separate events in iPhoto? This lack of support for the truly useful & user friendly (if a bit boring) features is a really unfortunate oversight.
    (3a) in the old version: i can quickly and easily choose exactly which photos from which events I want to upload to FB.
    (3b) as the original questioner mentioned: I can choose whether to upload to into a *new or existing album*. Hands down, this was *the single best feature* of the previous uploaders.
    (in Flickr this is of paramount importance since the free Flickr account only allows 3 "sets" - so, since this fancy iPhoto syncing links your events to sets in Flickr, you'd have to create 3 massive Flickr-only events in iPhoto in order to stay within their restrictions. I like to keep my iPhotos events separate, but I'm perfectly happy uploading photos from different events into one of my three Flickr sets. i'm pretty sure i can still do this with FFXporter or similar.)
    (3b) in the old version: all the photos i upload are put into a "pending" album on FB so that I can tag people, delete some photos (without deleting them off my own iPhoto), etc. before sharing them with all my friends. I'd like to have at least the option to choose whether they go into a pending album first or not.
    (3c) it's further annoying that you cannot browse your iPhoto library directly (from most websites) when searching for photos to upload, you have to export the files first, then browse to where the photos were exported.

  • My iphoto events were not transformed into albums in Photo. Is there a way I can retrieve them?

    My iphoto "events" were not transformed into albums in the new Photos for Yosemite, and therefore I am back with my bulk pics, not filed. Is there a way I can retrieve the classification I had made, please?

    Whenever you connect iPhone in iTunes, it syncs and a backup is created. Check backup folder if you have that time-stamped file saved.

  • Iphoto-I inadvertantly created a smart album.  It has captured all recent photos in it I want to delete it but need to know if this will delete the same photos in their albums?

    iphoto- I accidently created a smart album which is capturing all current new photos.  I put them in their  own album but I can't delete them in the smart album.  Can I delete the smart album without losing the photos in the other albums? larrybksfld

    Yes you can delete the Smaert Album. It will not delete the photos.
    Regards
    TD

  • Random sequential groups of photos missing from Events and iPhoto Slideshow but are in an Album. How do I recover or copy photos back to Events and rebuild slideshow?

    Random sequential groups of photos missing from Events, an Album I created, and a slideshow using the photos. This "appears" to have happened when upgrading to Yosemite. When I use iPhoto Library Manager, I see two entries for the Event Information for the date in question, same name, same number of photos, but different sizes. The smaller has the image number but no photo for the given date; the larger has the photos.
    Image path for the version with all photos: /Volumes/Promise Pegasus/Pictures/iPhoto Library/Previews/2010/2010_05_24/IMG_0697.jpg
    Image path for the version with missing photos: /Volumes/Promise Pegasus/Pictures/iPhoto Library/Previews/2010/2010_05_24_2/IMG_0697.jpg (NOTE the _2 added to the image number.)
    I assume that I have to get the missing pictures back in Events so I can reload back into the Album. Hopefully, the slideshow will magically be better.
    Help!

    That's an indication that the link/file path between the thumbnail and the master file has been broken.  Do the following:
    1 - launch iPhoto with the Command+Option keys held down to open the First Aid window. Be sure to follow the circled recommendation in the screenshot.
    2 - run Option #4, Rebuild Database.

  • The web photo album command needs some improvement

    First I'd like to thanks for the
    web
    photo album command embed with Dreamweaver. My job requires me
    create photo albums with thousands of pictures, it saves a lot of
    time for me.
    Now I'd like to ask someone to improve this fuction. I need
    to click the thumbnails on the index page to pop-up a window that
    show up the detail picture page (If I can key in the pop-up window
    size in the command UI will be perfect). Currently this album
    generator only links to the large picture's page. I need to make
    them to a pop-up window for each manually (thousands of them).
    I tried
    Web
    Photo Album 2.2 for Dreamweaver 8 and MX 2004, V2.2.6, it
    doesn't have this function either. Compare to the web photo album
    command in Dreamweaver, it can't generate filename to caption in
    the detail picture page automatically (You can key in captions in
    Fireworks manually though).
    If someone can improve the web photo album command to pop-up
    window available, I think use "close window" link instead of the
    link to the album index page in the detail picture's page will be
    helpful.

    On 19 Sep 2006 in macromedia.exchange.extensions.dreamweaver,
    moonjeep
    wrote:
    > If someone can improve the web photo album command to
    pop-up window
    > available, I think use "close window" link instead of
    the link to
    > the album index page in the detail picture's page will
    be helpful.
    Not free, but if you do photo albums regularly, you might
    like:
    http://projectseven.com/products/galleries/hgmagic/
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • Importing iPhoto `11 Library Lost Folders & Nested Albums

    Been using iPhoto since its' inception. Currently at iPhoto `11. Had created many Albums and Smart Albums based on Keywords and had most of them organized into Folders in iPhoto.
    Just bought Aperture 3 and, following the video tutorial provided by Apple, imported my 9,000+ iPhoto Library into it. However, only albums that resided at the top level in the sidebar of iPhoto made it into Aperture. All Folders and any Albums and Smart Albums that resided inside those Folders were not imported into Aperture.
    I have verified that all photos contained within the missing Folders and Albums have made it into Aperture, just not the Folder and Album hierarchies I had created over the years.
    Do I need to delete the Aperture Library and re-import the iPhoto Library again using other settings?

    Thanks for the reply Terrence. I'm still a bit confused by some contradictory behavior of Aperture.
    The Aperture Manual states (p.112):
    +"The organization of your iPhoto images and albums is maintained as projects in the Projects panel."+
    Well, not actually. Only EVENTS seem to be maintained as Projects when imported from iPhoto. My iPhoto library contains 1189 Events. Aperture now has 1185 Projects after the iPhoto import. But Projects does not contain any of the album organization that had been created in iPhoto.
    The Aperture Manual further states (p.112):
    "+You cannot import slideshows, books, and Smart Albums from your iPhoto Library."+
    Well, actually, Aperture DID import 5 of my Smart Albums. But these were only the Smart Albums at the top level of iPhoto's sidebar. All other Smart Albums nested inside folders in iPhotos sidebar were not brought over.
    So I'm confused.

  • In IPhoto 11 I have made an album and rearrange the photos in the order I require them. When export the album to allow me to burn them to disk to be viewed in Windows they do not maintain the same order. What am I doing wrong?

    In IPhoto 11 I have made an album and rearrange the photosin the order I require them. When export the album to allow me to burn them todisk to be viewed in Windows they do not maintain the same order. What am I doingwrong?

    When you sort the Album in iphoto are you sorting manually? Or by date of the photos?
    When you sort in the Finder how are are you sorting?
    Here's one way to do what you're trying to do:
    Create your Album and sort the pics as you want them. Then Photos Menu: Batch Change -> Set Title to Text "John's Birthday", for instance, and tick the box to append a number to each Photo. Now your photos are titled 'John's Birthday 001, John's Birthday 002 ... etc'
    Then File -> Export and in the Export dialogue set the Filename to "Use Title"
    Sort on Filename in the Finder and you end up with a folder full of images in the same order as the Album in iPhoto.
    Regards
    TD

Maybe you are looking for

  • IN DESPERATE NEED

    I am student and new to programming. I am taking programming with java this semester and its very difficult for me. I am in deep trouble if don't have these programs done. I have tried everything I think its okay, but nothing works. First program nee

  • Radeon HD 7690M XT and HP dv7-6c47cl

    My dv7 laptop works, for the most part, completelly fine. Granted I have sent it in for repairs multiple times....and honestly don't doubt I will need to again.  The main concern with it is this dreaded dedicated graphics card. The Radeon HD 7690M XT

  • PeopleSoft WSDL cannot display data in ADF

    Hello all, I hardly have any knowledge of PeopleSoft .I have a PeopleSoft WSDL. The XML SOAP request is as follows. <?xml version="1.0"?> <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoa

  • Doit-on télécharger un module pour participer en tant qu'invité sur Adobe Connect ?

    Bonjour, Notre société à reçu une invitation pour participer à une présentation de notre fournisseur via Adobe Connect. Afin d'y prendre part, comment fonctionne Adobe Connect ? le lien de la réunion est-il suffisant ou doit-on télécharger un logicie

  • Ctrl key seems to be stuck

    Hey I am quite desperate and hope someone can help me here. My Macbook acts as if the ctrl key is constantly pressed. This happened a day after I spilled a tiny bit of tea on the keyboard (first everything seemed to be fine). Now the keyboard is stra