Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7635393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:24:58+00:00 2026-05-31T07:24:58+00:00

I want to create an Application that connects to the iPhoto Library. So now

  • 0

I want to create an Application that connects to the iPhoto Library. So now I would like to read the Events and the pictures themselves from the library.

Is there an elegant / easy way to do this or do I have to manually read the Bundle Structure of the iPhoto User Data?

So far I have only found a picture taker: Is there a UIImagePicker for the Mac Desktop

Update: I found another relevant SO post: Selecting iPhoto images within a cocoa application

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:24:59+00:00Added an answer on May 31, 2026 at 7:24 am

    You can do it with NSAppleScript. This is some copy/paste from my app, hacked up a bit just to show the idea.

        NSAppleEventDescriptor d = .. compile this script ..
            @"tell application \"iPhoto\" to properties of albums"
    
        for (int i = 0; i < [d numberOfItems]; i++)
        {
            NSAppleEventDescriptor *albumDesc = [d descriptorAtIndex:i];
    
            // <NSAppleEventDescriptor: 'ipal'{ 
            //  'ID  ':4.265e+09, 
            //  'purl':'utxt'("http://www.flickr.com/photos/..."), 
            //  'pnam':'utxt'("Vacation"), 
            //  'alTy':'pubs', 
            //  'alCh':[  ], 
            //  'alPx':'msng' }>
    
            NSString *albumName = [[albumDesc descriptorForKeyword:'pnam'] stringValue];
            NSString *albumId = [[albumDesc descriptorForKeyword:'ID  '] stringValue];
    

    You can do the same thing to find the images

    NSString *scp = 
        [NSString stringWithFormat:@"tell application \"iPhoto\" to properties of photos of album id %@",
         [album objectForKey:@"id"]];
    
    NSAppleEventDescriptor *d = ... compile scp ...
    
    // 1 based!?
    for (int i = 1; i <= [d numberOfItems]; i++)
    {
        NSAppleEventDescriptor *photoDesc = [d descriptorAtIndex:i];
    
        // Yes.. this happens.  Not sure why?!
        if (!photoDesc)
            continue;
    
        // <NSAppleEventDescriptor: 'ipmr'{ 
        // 'pnam':'utxt'("IMG_0058.JPG"), 
        // 'pwid':768, 
        // 'pdim':[ 768, 1024 ], 
        // 'alti':1.79769e+308, 
        // 'filn':'utxt'("3133889525_10975ba071_b.jpg"), 
        // 'ipth':'utxt'("/Users/lagnat/Pictures/iPhoto Library/Masters/2010/11/10/20101110-002341/3133889525_10975ba071_b.jpg"), 
        // 'idat':'ldt '($F57C69C500000000$), 
        // 'rate':0, 
        // 'titl':'utxt'("IMG_0058.JPG"), 
        // 'phit':1024, 
        // 'itpt':'utxt'("/Users/lagnat/Pictures/iPhoto Library/Thumbnails/2010/11/10/20101110-002341/3133889525_10975ba071_b.jpg.jpg"), 
        // 'ID  ':4.295e+09, 
        // 'lati':'msng', 
        // 'pcom':'utxt'(""), 
        // 'opth':'utxt'("/Users/lagnat/Pictures/iPhoto Library/Masters/2010/11/10/20101110-002341/3133889525_10975ba071_b.jpg"), 
        // 'lngt':'msng', 
        // 'tiln':'utxt'("3133889525_10975ba071_b.jpg.jpg") }>
    
        NSString *path = [[photoDesc descriptorForKeyword:'ipth'] stringValue];
        NSString *imgname = [[photoDesc descriptorForKeyword:'pnam'] stringValue];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create an Android application that show the sales report from SQL
I want to create a WinForm application that must draw data coming from a
I want to create an application core that connects to a webservice, downloads the
I want to create a VS 2010 C# console application that connects to two
I want to create a Terminal application that connects to a Bluetooth Device and
I want to create an application that connects to a central remote database, and
I want to create an application that using DLL modules that dynamically connects to
I want to create an application that doesn't use Portrait mode. I am not
I want to create an application that performs a particular action when the device
Problem I want to create an application that can be extended somehow by programmers.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.