Applescript to export single iPhoto album

I'm looking for a script that will allow me to export a single iPhoto album. I'd like to be able to automate it (eg. once daily). The name of the album never changes, but the content will.
I've found a few starting points, but nothing I've been able to wrap my head around. Most seem to require an actual input as opposed to a defined album.
Any help?
yeti

Depending of what you mean by “exporting an album”, the following script might do what you are asking for.
set theDestinationFolder to POSIX file "/Users/user name/some folder" as alias
tell application "iPhoto"
    set theImagePaths to image path of photos of album "My Super Awesome Album"
end tell
repeat with thisPath in theImagePaths
    set thisFile to POSIX file thisPath as alias
    tell application "Finder" to duplicate thisFile to theDestinationFolder with replacing
end repeat
Message was edited by: Pierre L. (no need to select the album)

Similar Messages

  • I have finally figured out how to export an iphoto album so that I can maintain the proper order of the photos after burning the file. How do I keep each individual photo title and description after exporting and burning?

    I have finally figured out how to export an iphoto album so that I can maintain the proper order of the photos after burning the file. How do I keep each individual photo title and description after exporting and burning?  Presently after exporting and burning each photo is identified by the file name rather than each individual title description.  

    File name and Title are not the same thing.
    Filename is attached to the Jpeg file in the Finder.
    Title is attached to the photo within the Jpeg file - as is the description. These are written to the Exif and IPTC metadata on export.
    So: File -> Export. Kind: Jpeg or Tiff and Check the box at 'Title and Keywords'. This will write the Title, keywords and descriptions (though not explicitly stated) to the metadata. This can then be viewed in any app that understand this material.
    You can choose, if you wish, to also use the Title as a Filename - that's an option at File Name
    Regards
    TD

  • How do I export an iPhoto album as a pdf?

    How do I export an iPhoto album as a pdf? When I am in the album and go to file --> export, I get each image from the album saved as a separate file. I want to save them all in one file.

    Select all of those photos in iPhoto and start a print process.  Select the print size as desired, 8 x 10 or letter size, select the paper size accordingly, and then use the PDF button to select Save as PDF.
    That will give you a multipage PDF file with one photo on each page.
    OT

  • Can I export an iPhoto album as thumbnails?

    Let's say I have an iPhoto album of 200 jpeg pictures.  When I highlight the album in the left sidebar of the iPhoto page, all the pictures display as thumbnails. I want to remove the pictures from iPhoto and put them on a DVD or CD-R.  This is no problem, but the pictures are then displayed as generic jpeg icons with the cryptic digital camera picture designations such as IMG_0285.JPG.  This makes it extremely laborious finding a particular picture.  Is there any way that the pictures can be exported/saved/downloaded to a removable medium so that the thumbnails will be displayed instead of the jpeg icons?  Thanks.

    I know what reboot means.  I just don't know what "see if you can the preference change to jump start"  means.
    I tried to follow your instructions, but I must have done something wrong.  I got this icon with the Show Icon Preview turned on: 
    And I got this with the Show Icon Preview turned off:
    I had the options of saving the TextEdit document as a "Rich Text Format", "HTML", Word Format" or "Word XML Format".  I took the default one, the first one.  I saw no option to save as a ".txt" as you did.

  • HT3149 How do I export my iphoto album in the same order that it appears onto a flash drive or dvd?

    How do I export one of my albums in iphoto in the same order that it appears onto a flash drive or dvd?

    Remember that the FInder does not have the same sorting options that iPhoto has - no manual sorting for instance. So
    File -> Export and in the resulting dialogue note the options for Naming Files
    Album Name with Number will give you what you want.

  • Needed: Script for exporting iPhoto albums into a file structure

    Hello all! I have no experience with AppleScript, but I heard it should be possible to write a script which helps to copy/export a iPhoto album structure into an according directory structure. Does anybody already have such a script?
    Thx for any information on that!

    Thomas,
    I have created an AppleScript along with the TextCommands OSAX that duplicates all of the albums in iPhoto to a folder called "Albums" on the desktop. It is quite slow because of the need to open an Info window in Finder to get the path to the original photo but gets the job done.
    If you wish it could be modified to provide an ability to select individual albums for duplication. Let me know if you are interested in the latter. I am also seeing whether the album structure can be created directly in a burn folder so that CDs/DVDs can be rapidly burned.
    TextCommands is donationware and available at the following location:
    http://osaxen.com/files/textcommands1.0.1.html
    and should be placed in the following location for the AppleScript to see it:
    ~/Library/ScriptingAdditions/
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">property PathToDesktop : path to desktop as string
    property PathToPictures : path to pictures folder as string
    property PathToiPhotoLibrary : PathToPictures & "iPhoto Library"
    property PathToiPhotoAlbums : PathToiPhotoLibrary & ":Albums"
    property PathToCopiedAlbums : PathToDesktop & "Albums"
    tell application "Finder"
    activate
    set theCopiedAlbumsFolder to duplicate folder (PathToiPhotoAlbums as alias) to desktop
    set theAlbums to folders of folder PathToCopiedAlbums
    set theExtraneousFiles to files of folder PathToCopiedAlbums
    delete theExtraneousFiles
    repeat with anAlbum in theAlbums
    repeat with anAlias in anAlbum
    -- need to use GUI access to grab the path to the original photo
    open information window of anAlias
    tell application "System Events"
    tell process "Finder"
    -- grab the path to the original file
    set PathToTheOriginalPhoto to value of static text 2 of scroll area 1 of window 1
    end tell
    end tell
    close window 1
    -- need to remove some extraneous material and convert to AppleScript path format
    tell application "TextCommands"
    split PathToTheOriginalPhoto using {":", "../"}
    set PathToTheOriginalPhoto to item 4 of the result
    set PathToTheOriginalPhoto to search PathToTheOriginalPhoto for "/" replacing with ":"
    set PathToTheOriginalPhoto to (PathToiPhotoLibrary & ":" & PathToTheOriginalPhoto) as alias
    end tell
    (* unfortunately there seems to be bug in duplicate file to another folder so must use a copy, , delete the alias, move, and clean up name of copied file sequence to accomplish the equivalent *)
    -- duplicate the original in the original album folder
    set theCopiedPhoto to duplicate PathToTheOriginalPhoto
    -- Delete the alias in the Copied Album
    delete anAlias
    -- Move the copied photo to the Copied Album
    set theCopiedPhoto to move theCopiedPhoto to anAlbum
    -- Remove the "copy" from the photo names
    set NameOfPhoto to name of theCopiedPhoto
    tell application "TextCommands"
    set name of theCopiedPhoto to search NameOfPhoto for " copy" replacing with ""
    end tell
    end repeat
    end repeat
    end tell</pre>
    PowerBook 12" Mac OS X (10.4.6)

  • How do you export iPhoto albums to an external drive and have all the albums still labeled?

    I am having an issue exporting the iphoto albums to an external drive. When I do it, it either just drops all the pictures in together or it separates them by events, but my iphotos are arranged in albums, not events so that doesn't help.  Can anyone help with this?
    Also, I'm new to mac and i'm noticing iphotos has a lot of limitations...I can't save photos automatically to folders/albums in iphoto bc it doesnt show in the finder, I can't upload to facebook without doing it from iphoto, and I obviously can't save to external drive easily just yet.  Should I just be saving all of my photos in Pictures in the finder? Is there a way you can save them in pictures and then be able to open them in iphotos? I'm getting so frustrated and ready to go back to my PC. =(

    A couple of general comments:
    1. iPhoto is not compulsory. You don't have to use it.
    2. But if you do, then you're going  to need to make a small conceptual leap, and learn just a little.
    The Conceptual Leap: Your Files and your Photos are not the same thing. The illustration I use is as follows: In my iTunes Library I have a file called 'Let_it_Be_The_Beatles.mp3'. So what is that, exactly? It's not the song. The Beatles never wrote an mp3. They wrote a tune and lyrics. They recorded it and a copy of that recording is stored in the mp3 file. So the file is just a container for the recording. That container is designed in a specific way attuned to the characteristics and requirements of the data. Hence, mp3.
    Similarly, that Jpeg is not your photo, it's a container designed to hold that kind of data. iPhoto is all about the data and not about the container. So, regardless of where you choose to store the file, iPhoto will manage the photo, edit the photo, add metadata to the Photo but never touch the file. If you choose to export - unless you specifically choose to export the original - iPhoto will export the Photo into a new container - a new file containing the photo.
    The Learning: iPhoto replaces the Finder (or file browser) for everything to do with your Photo. And I do mean everything. Organising, Editing, sharing with other apps, printing, uploading, whatever are all done either with or via iPhoto. It's you "go-to" for anything to do with your Photos.
    The upshot of that is that how (or where) the files are stored doesn't matter - as long as they are safe and backed up - because after importing to iPhoto you never directly access those files again.
    So, you want to organise your Photos: do it in the iPhoto Window. Events, Albums, Keywords, and so on. You do all your work via that window or the media browsers that make the Library available in every app in the OS.
    So: want to edit a photo, but not with iPhoto? You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    How to access the Photos for whatever reason you may need them see this user tip:
    https://discussions.apple.com/docs/DOC-4491
    For details of the Export dialogue: https://discussions.apple.com/docs/DOC-4921
    You can more or less recreate your folder tree in the iPhoto Window - start at the bottom of your tree and drag  folder of images to the Albums Heading. iPhoto will import the images and make an album of them. Then File -> New Folder and drag the Album to that. Folders can hold nested folders and Albums. And so work from there.
    But if your folder tree is date based that's a bit pointless, as the Calendar search and Smart Albums make it pretty redundant. With these you can find any photos from a specific day, week, month, year or date-range in the Library.
    If the folder tree is theme based, then keywords will a more effective way of working.
    And Albums are more flexible that folders in the Finder, as an image can be in any number of Albums and use no extra disk space whatever.
    So, it's a whole new way of working with photos for you.
    To your specific questions:
    I am having an issue exporting the iphoto albums to an external drive. When I do it, it either just drops all the pictures in together or it separates them by events, but my iphotos are arranged in albums, not events so that doesn't help
    Export them one album at a time.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.
    But given the above... why are you doing this? You're defeating the non-destructive workflow by doing it. Are you trying to back up?
    .I can't save photos automatically to folders/albums in iphoto bc it doesnt show in the finder,
    Not clear exactly what you're asking here, but does the above open some ideas?
    I can't upload to facebook without doing it from iphoto
    Yeah you can... For help accessing your photos in iPhoto see this user tip:
    https://discussions.apple.com/docs/DOC-4491
    It's the first one...
    and I obviously can't save to external drive easily just yet.
    Yeah you can but what exactly are you trying to save, and, again, why? Different purposes have different workflows.
    Should I just be saving all of my photos in Pictures in the finder?
    That's a personal choics, but not if you plan on using iPhoto. And as I started with iPhoto is not compulsory... As to why you shouldn't with iPhoto:
    For more on iPhoto and file management see this User Tip:
    https://discussions.apple.com/docs/DOC-6361
    Reasons for bothering to learn...
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 50k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • Exporting iphoto album to external hard drive.

    Hello,
    I'm trying to export an iphoto album to an external hard drive that shows up on the left side (side bar) of finder. If I copy and paste the album, the pictures are rearranged.
    Is there a way to drag and drop the album directly into the external hard drive?
    Side question: Is there a way to add iphoto or imovie to the side bar of Finder under 'places'?
    If there is, it seems this would be an easy way to access a specific album in iphoto and directly drag and drop it from a listing in Finder to the external hard drive listed in Finder's side bar 'devices' category.
    Thanks

    PWpw:
    First, you don't need to go into the iPhoto Library package to get access to your photos for use outside of iPhoto. Read Terence Devlin's treatise on file access. It has all you need to know.
    The pictures, when exported to the external HD, are viewed using the Finder and can only be viewed by title or date. If you want your photos to be in a particular order, you will need to rename them in iPhoto using the Photos->Batch Rename-Title to Text with the sequential numbering box selected. Then export them to the EHD using the File->Export->File Export menu option with the option to use the title as the new file name. You photos will then be in the order you want when viewed alphanumerically in the Finder.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Exporting IPhoto Albums via Automator

    I would like to export all my iPhoto Albums to an external drive. Since I have my photos already organized in Albums in iPhoto, I would like to keep the same structure in the form of folders/directories on the target drive. But have it in a flat folder/file structure instead of iPhotos more sophisticated format (AFAICT)
    Is there an easy way to use AppleScript (does that still exist) or Automator to export every Album in my iPhoto Library to a separate folder on a designated drive? I'm happy if the folder name is simply derived from the album name, I can later go in and modify things. Its just that going through 200+ albums isquite tiring and error prone.
    Thanks!
    Alex

    Terence,
    version number is 9.6.1.
    As for OS vs iPhoto Forum - I guess in the end I don't mind if there is a solution that uses Automator or some other means. In that sense, yes my question would have been overly specific.
    Thanks!

  • I am trying, unsuccessfully, to export an iphoto smart album- 12,000 photos, no movies- (information is saying 31GB) to a brand new 32GB scandisk flash stick. A caution msg keeps saying "there is not enough space to complete this" Help!

    I am trying, unsuccessfully, to export an iphoto smart album- 12,000 photos, no movies- (information is showing 31GB total) to a brand new 32GB scandisk flash stick. A caution msg keeps saying "there is not enough space to complete this" Help!

    You need a larger drive or an external drive - they OS needs a minimum of 10GB just for normal operation so you are already experiancing degraded preformance - if yo do not get more space you will start losing data
    Moving the iPhoto library is safe and simple - quit iPhoto and drag the iPhoto library intact as a single entity to the external drive - depress the option key and launch iPhoto using the "select library" option to point to the new location on the external drive - fully test it and then trash the old library on the internal drive (test one more time prior to emptying the trash)
    And be sure that the External drive is formatted Mac OS extended (journaled) (iPhoto does not work with drives with other formats) and that it is always available prior to launching iPhoto
    And backup soon and often - having your iPhoto library on an external drive is not a backup and if you are using Time Machine you need to check and be sure that TM is backing up your external drive
    LN

  • HT4236 I've run out of room on my hard drive. I bought an external drive and exported all my albums to the external drive then deleted the albums from iPhoto. I want to sync both from my ext drive and new albums in iPhoto. No dice. Help!

    I've run out of room on my hard drive. I bought an external drive and exported all my albums to the external drive then deleted the albums from iPhoto. I want to sync both from my ext drive and new albums in iPhoto. My photos on the devices get wiped out when I sync to iPhoto since I deleted all the albums. But when I sync to my hard drive (where I maintained the album structure) the photos are copied to my iPad but lose all the hierarchy and folder structure. Now I have to scroll through thousands of photos to try to find the one I'm looking for. Before I sync any more devices I want to know the following: 1) can I restore the album structure on my iPad by using the photo cache? 2) is there a way to sync both new iPhoto albums AND pictures in the folders in my hard drive? And 3) how can I keep the photo hierarchy structure from my hard drive intact on my devices?

    TigerMom28 wrote:
    I've run out of room on my hard drive. I bought an external drive and exported all my albums to the external drive then deleted the albums from iPhoto.
    Don't do that.
    Copy /Photos/Photo library/ to the external.
    Hold Option and launch iPhoto.
    Select Choose library and select the Photo library you copied to the external.

  • How to export iPhoto Album in iMAC and have similar folder structure(with Timestamps) which can be viewed in finder

    How to export iPhoto Album in iMAC and have similar folder structure(with Timestamps) which can be viewed in finder
    In simple terms, I wanted to view the photos in Windows system, similar strcture of iPhotos

    If you want to copy all of your photos to a Windows machine and have them in folders representing the iPhoto Events the were in quickly and easily just do the following:
    1  - open the library with the Finder as shown in this screenshot:
    2 - COPY the Originals/Masters folder to the Desktop.
    3 - copy the Originals/Masters folder to the Windows machine.
    This will give you all of your original image file in their Event folder on the Windows machine.
    NOTE:  With iPhoto 8 or newer the Event folders in the Masters folder will be titled by date (EXIF) if imported from a camera.  If imported from a folder the event folder will have the same title as the source folder.  If imported singularly or in a group without a folder the title will be a date, either the EXIF date or import date.
    With iPhoto 7 (08) and earlier the Event folders in the Originals folder will have the same title as the Event has in the library.
    This method would be quicker but not provide the additional metadata you might have added in iPhoto like keywords, titles, descriptions that exporting out of iPhoto with Format=JPEG and the checkboxes selected to include keywords, titles, places, etc, checked.
    OT

  • Export the file names of an iPhoto Album

    Hi,
        I have gone through some of the communities but did not find the answer and posting here. I want to export only the file names of photos of an iPhoto Album.  (Please post if I can get them through Terminal)
    Thanks
    Raj.

    That is not a feature of iPhoto
    And there is no work around. IPhoto is all about photos. Not at sell about files
    LN

  • How do I export iPhoto album in Mac to iPhone5s

    How do I export iPhoto album in Mac to iPhone5s

    See this support document. iTunes: Syncing photos - Apple Support

  • How to export iPhoto Albums to Library or Book?

    How can I export iPhoto Albums to the Library or iBook?

    You're posting in the iPhoto for iOS forum... you know, iPad, iPhone, etc.  That's why I brought up the camera roll.  If your question is directed to iPhoto on the Mac, this isn't the right forum.  You need to go here:
    https://discussions.apple.com/community/ilife/iphoto

Maybe you are looking for