How do I specify a photo in iPhoto by its date?

I want to be able to to retrieve photos i iPhoto by their date property.
Referring by name goes fine.
tell application "iPhoto"
set thePhoto to photo "DSCF0121"
end tell
But how can I tell iPhoto to look for a photo with a specific date?
a codeline like the following won't work:
set thePhoto to photo with date "friday 22. july 2005 21:02:48"
Can't find anything in the AppleScript Language Guide that will give me a clue to how to do this. (I know that the AsLG have no info on iPhoto).

You can use the filter reference form - the date property of a photo contains the time also, so you need the complete date and time to get a match:
set TheDate to date "Saturday, May 24, 2008 4:31:56 AM"
tell application "iPhoto" to get photos whose date is TheDate
If you don't know (or care) about the time, you can expand the results by using the fact that IPhoto keeps it's photos sorted by date, so the image path of a photo contains the date:
set TheDate to "May 24, 2008"
tell application "iPhoto" to get photos whose image path contains TheDate

Similar Messages

  • How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    You can't.  iCloud is not for general file backup from a Mac. It's for backup up and syncing data between mobile devices and and Macs and  The following is from this Apple document: iCloud: Backup and restore overview.
    iCloud automatically backs up the most important data on your (mobile) device using iOS 5 or later. Once you have enabled Backup on your iPhone, iPad, or iPod touch .....
    What is backed up
    You get unlimited free storage for:
    Purchased music, movies, TV shows, apps, and books
    Notes: Backup of purchased music is not available in all countries. Backups of purchased movies and TV shows are U.S. only. Previous purchases may not be restored if they are no longer in the iTunes Store, App Store, or iBookstore.
    Some previously purchased movies may not be available in iTunes in the Cloud. These movies will indicate that they are not available in iTunes in the Cloud on their product details page in the iTunes Store. Previous purchases may be unavailable if they have been refunded or are no longer available in the iTunes Store, App Store, or iBookstore.
    You get 5 GB of free iCloud storage for:
    Photos and videos in the Camera Roll
    Device settings (for example: Phone Favorites, Wallpaper, and Mail, Contacts, Calendar accounts)
    App data
    Home screen and app organization
    Messages (iMessage, SMS, and MMS)
    Ringtones
    Visual Voicemails
    But not from a Mac.  If you want to backup your photos and other important files I suggest you get an external hard drive and use  it with Time Machine.
    OT

  • How can I use the photos from iphoto to display in contacts?

    Contacts has a space for a photo.  At one time I knew how to populate this space with photos from iPhoto. Currently my choices are to use an icon or take a pic with the camera.
    How can I add the photos from iPhoto to the choices for populating the "Contacts" image space for individual cards?

    See this Discussion...
    https://discussions.apple.com/message/19082703#19082703

  • I have alot of loose photos at home (old) and I would love to make a bunch of iphoto books and make the pages like whole page collages?  How do I get my photos into iphoto in order to do this?  Can I make a DVD at the drugstore and add them to iphoto?

    I have alot of loose photos at home (old) and I would love to make a bunch of iphoto books and make the pages like whole page collages?  How do I get my photos into iphoto in order to do this?  Can I make a DVD at the drugstore and add them to iphoto?

    You can make the collages easily if you have iWork.  Just open a letter sized page in landscape mode and drag the photos onto the page, rotate and postiion as necessary.  Then do a Print ➙ PDF ➙ Save PDF to iPhoto to get a 200 dpi jpeg version of the Pages page into iPhoto.  From there you can add it to your book and use a blank page with the option to have an image as the backbround. 
    If you have a 3rd party image editor that supports layers you can create the collage with it. 
    OT

  • How do I move the photos in iPhoto to Lightroom ?

    How do I move the photos in iPhoto to Lightroom?  Thanks, I am a novice to Lightroom.

    To access your Mac iPhoto images for use in Photoshop and Lightroom
    1. In the Finder, navigate to Users > [user name] > Pictures > iPhoto Library.
    2. Control-click (Right-click) the iPhoto Library file and choose Show Package Contents.
    3. A Finder window opens that shows the contents. The Masters folder (or called Originals folder) contains all of the photographs that are in iPhoto.
    Photoshop cannot access this folder, but if you make a duplicate of the folder, the dupe will be accessible -- so:
    4. Control-click (Right-click) the folder named Masters (or Originals) and choose Duplicate.
    5. Drag the duplicate folder which is named "Masters copy" or “Originals copy” from the iPhoto Library Finder window to the Desktop.
    6. Open images in Photoshop or Lightroom from the file on the desktop.
    or
    7.  Rename the folder and move it elsewhere (probably to the Pictures folder), if desired.
        Then access the files in the folder via Lightroom and Photoshop

  • How do I move 3741 photos in iPhoto on my iPad to iPhoto on my iMac?

    How do I move 3741 photos in iPhoto on my iPad to iPhoto on my iMac?
    My iMac lost all of the photos in the iPhoto library about 3 OSX updates ago (current system 10.9.1) but they recently appeared on my iPad. I have looked at all of the iphoto libraries on my iMac (3) and one contains 419 photos, one contains 3 photos and the main library has place holders with description information for 3741 photos but no photos. My iPad has all of the photos in iPhoto. How do I move them?

    The answer is no. There is no originals (or masters folder) that I can find. Below are the following folders in iPhoto:
    Events Folder: 71 place holders with decriptions including 6 recent photos
    Photos Folders: 3741 Place Holders with descriptions
    Photo Stream: 1 photo
    Last 18 Months: 157 photos
    Last Import: 1 photo
    Cloud: 229 photos
    1 Album: 3 placeholders with descriptions
    Slideshow: 1 placeholder with description
    Many of the actual photos are recent and are duplicated in one of the abovefolders

  • How do i upload a photo from iPhoto to a website?

    How do I upload a photo from iphoto to a website?

    You can upload to any website from iPhoto easily.
    For help accessing your photos in iPhoto see this user tip:
    https://discussions.apple.com/docs/DOC-4491
    The first example is the one you want.

  • How do you save your photos in iPhoto and be able to find the photos when you are in different programs. When i try to find them I can only find the iPhotos not the individual photos.

    How do you save your photos in iPhoto and be able to find the photos when you are in different programs. When i try to find them I can only find the iPhotos not the individual photos.

    Use the media browser. In every open/attach window in tithe lower left hand corner under media ==> photos ==> iPhoto
    LN

  • How do I shrink a photo in Iphoto to fit a standard 8X10 page? I read that I should right-click in the Customize Preview page, but nothing happens

    How do I shrink a photo in Iphoto to fit a standard 8X10 page?  I tried to follow Old Toad's advice to right-click the image on the Customize screen, but absolutely nothing happened.

    You must think I'm an idiot, Larry, because you have been incredibly precise about your instructions.  However, as I keep saying, when I get to the "customize" screen, and I right-click the preview image, absolutely nothing happens.  I don't know what is wrong, but I can understand why you would give up on me. I simply CANNOT get the option "fit to frame."  Thank you so much for trying.  I think I had better give up.

  • How can I copy a photo from iphoto to PReview to make it smaller for uploading to a site that requires a smaller image?

    How can I copy a photo from iphoto to PReview to make it smaller for uploading to a site that requires a smaller image?

    I don't think you need Preview.
    Select the image and use File->export and you have full control over the size and compression.

  • How do i change cover photo in iPhoto when creating a book. I have tried everything

    how do I change cover photo in iPhoto when creating a book? I have tried everything. Mirage 388

    I have just finished one and changed the cover photo the same way I did on any page. Bring up the page, right click on it and then click on Remove Photo. Then just drag the photo you want into the empty space. You have to have the phot sidebar up on the right side to do this. Hope this helps

  • How do i transfer photos from iphoto to a data stick?

    How do I transfer photos from iphoto to a data stick?

    Select the photo(s) and export to a desktop folder - mount the data stick and drag that folder to the data stick
    LN

  • How do I transfer a photo from iPhoto or the Desktop onto my Samsung phone GT S5830i ?

    Can anyone please tell me how I can transfer a photo from iPhoto or the Desktop onto my Samsung Galaxy Ace GT S5830i phone ? The phone won't connect to Kies.  I've uninstalled Kies.  I've tried with Bluetooth and USB cable; all to no avail. I'm running Mavericks on a Mac.  Many thanks in anticipation,  Derek.

    You can export the image from iPhoto to the desktop
    File -> Export
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.
    Unfortunately, the rest of your query - i.e. - getting it from the desktop to that phone is one more for a Samsung forum.

  • How do I move a photo from iPhoto to a CraigsList posting?

    How do I move a photo from iPhoto to a CraigsList posting ?

    Export the photo(s) as a jpg and then use Craig's List photo import function.

  • How do i copy a photo from iPhoto to a memory stick?, how do i copy a photo from iPhoto to a memory stick?

    how do i copy a photo from iphoto to a memory stick?

    Same as to any storage device - select the photo(s) and export (file menu ==> export) to a desktop folder making the appropriate selections from the export dialogue then drag that folder to the storage device
    LN

Maybe you are looking for

  • G5 wont boot from 10.5 disc

    my g5 will not boot from a borrowed 10.5 disc its 2nd hand and worked perfectly for quite a while. after start up one morning it had reverted back to 10.3.9---and the 2nd hard drive had died---wierd thing was that the osx was on the 1st drive--not th

  • IOS 7.0.1 upgrade on Iphone 5 failed, now stuck!

    Hi, Whilst upgrading my wifes phone it failed with "unknown error" now it's stuck showing the itunes - USB connection picture no matter what I do, have pressed power and home buttons to reboot with no effect - also now not recognised by iTunes or com

  • Oracle12c SQL*NET blocked by Windows 2008 firewall - what is the correct solution?

    Hello, I have a question with regards to the SQL*NET traffic being blocked by the Windows 2008 firewall. This document shows that disabling the firewall can resolve the problem: https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=16677350

  • Hw to  select  the disply mode fields

    HI TO ALL I have a problem  When we creating sales document type vov8   in the fieks DISPLY RANGE  if we want selected fields, hw to select theose fields? give me step by stem answer   i will give u full reward marks ADVANCED THANX  TO ALL

  • Creating dynamic jsf page from xml

    I have an xml file with repeating content and from this xml file I have to build a screen with what is in the XML file The following is a sample of what I am talking about .I would have two RequestItem sections on the screen with a field ItemId ,Requ