Scripting iPhoto, Graphic Converter - copy photo Comment to IPTC caption

I want to select a bunch of photos in iPhoto and have the iPhoto comment for each file copied into its IPTC caption.
The script below works without throwing an error but the IPTC caption contains some trailing garbage in about 1 out of 3 photos. How to eliminate garbage?
tell application "iPhoto"
set selectedPhotos to selection
repeat with thisPhoto in selectedPhotos
set thisPath to image path of thisPhoto
set thisPath to (POSIX file thisPath) as string
set theComment to comment of thisPhoto
copy theComment to theCaption
tell application "GraphicConverter"
activate
try
set iptcinfo to get file iptc of thisPath
on error errMsg number errNbr
set iptcinfo to {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "-1", "", "", ""}
-- no IPTC in file so make one
end try
set the first item of iptcinfo to theCaption
set file iptc of thisPath to iptcinfo
end tell
end repeat
--copy the iPhoto comment to the iptcinfo
end tell

I'm not good with scripting however to get the description applied to the IPTC description field, you can use iPhoto. All you have to do is use the Export option, select JPEG and then check the check box about including the title and description data. I've verified it is included with Exifer a freeware program for PC. Although the data is there, it is not read by Picasa on PC despite also reading and writing the caption to the IPTC description file. Do you think the extra garbage might also be being written by iPhoto and hence stopping Picasa from recognising the data? I'm using iPhoto 7.1.1 (354). Any help or suggestions to get descriptions written to IPTC would be great! Cheers.

Similar Messages

  • How do I get iPhoto to not copy photos into its own folder, read originals?

    I was wondering how you could get iPhoto 6 to 'read' photos from it's original file.
    I normally keep my photos in their own folder, separate from the iPhoto file. Now I kind of want to have them all organized nicely in the iPhoto file so I don't have duplicates floating around. I wiped the iPhoto Library (they were duplicates) and as I import them, they copy right back into an 'iPhoto Library' file. I want them to stay in my own folder 'My Photos'.
    Is this possible? =S

    Simply go to iPhoto Menu -> Preferences -> Advanced and uncheck 'Copy Files to the iPhoto Library on Import'.
    Now iPhoto will not copy the files, but rather simply reference them on your HD. To do this it will create an alias in the Originals Folder that points to your file. It will still create a thumbnail and, if you modify the pics, a Modified version within the iPhoto Library Folder.
    *However, you need to be aware of a number of potential pitfalls using this system.*
    1. Import and deleting pics are more complex procedures
    2. You cannot move or rename the files on your system or iPhoto will lose track of them on systems prior to 10.5 and iPhoto 08. Even with the later versions issues can still arise if you move the referenced files to new volumes or between volumes.
    3. Most importantly, migrating to a new disk or computer can be much more complex.
    Always allowing for personal preference, *I've yet to see a good reason to run iPhoto in referenced mode unless you're using two photo organisers.*
    If disk space is an issue, you can run an entire iPhoto Library from an external disk:
    1. Quit iPhoto
    2. Copy the iPhoto Library as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    If you're concerned about accessing the files, there are many, many ways to access your files in iPhoto:
    For 10.5 users: You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use THIS
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    Your choice, obviously, but best to be aware of all the ramifications. By all means post back if you require more info.
    Regards
    TD

  • IPhoto Albums converted to Photos Albums Question

    Still confused about Albums after conversion in Photos. If there is a logical explanation, please share, 
    I see all my Albums from iPhoto including the Events folder in Photos, but the most recent Album created in iPhoto now has 654 items vs the Album in iPhoto that has 489. It seems all/most of the pictures from the related Events were sorted into this Photos Album although they are also showing in Events. 
    The Album version saved as a Slideshow in iPhoto is exactly the same as in iPhoto though.
    Does anyone know what could be going on here?

    I went into the photo section and backed up all of the photos by coping them to the EHD. My question is that I deleted the photos I no longer wanted in iphoto because they are now on the EHD.
    The key to answering is how did you "back up all of the photos" - did you drag the iPhoto library to the EHD or exactly how did you copy all of the photos?
    If I were to back up again the same way, wouldn't I lose the photos that I deleted because it would copy over the iphoto library?
    That depends on the answer to the questions above
    Maybe it would create a iphoto2 library??
    If you copied the library by dragging it then you would need to use a new name for each new copy
    Is there someway to easily take the events and make them into folders so that you can just move stuff around freely??
    select the photos in an event and export them to a folder with the same name - file menu ==> export
    LN

  • Converting a photo to a line drawing.

    Can iPhoto 6 convert a photo to a line drawing? If not can anyone suggest an inexpensive application that will do it? Thanks.

    In order of price here are some suggestions:
    Seashore (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate.
    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.
    Regards
    TD

  • Needed: Script to copy Photo album name into the comments field for pix

    I was never in the habit of applying anything to photo comments, but gave my albums a desriptive name so I knew what they were. Now I wish I had because album titles are not searchable. I'm wondering if anyone knows how to create an Automator workflow or Applescript that could take the Album Name and apply it to the comments field for each picture in the album. I have over 25,000 pictures and quite a few albums. I've started to do it manually for each album but would love to find a quicker way to accomplish this.
    Thanks.

    This should do the trick for you:
    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">tell application "iPhoto"
    set theAlbums to (every album)
    repeat with thisAlbum in theAlbums
    set thisAlbumName to the name of thisAlbum
    set thePhotos to (every photo of thisAlbum)
    repeat with thisPhoto in thePhotos
    set comment of thisPhoto to thisAlbumName
    end repeat
    end repeat
    end tell</pre>
    FYI, it will step through every album; get its name; and then step through every photo in the album and change the comments to the album's name.
    I recommend that you make a back-up before proceeding!

  • I cant copy photo's out of iPhoto, I select them all but if I want to paste them for example to my nas or a folder on my macbook, the paste option wont appear. I tried with export, didnt work either. It used to work, but now all of a sudden it wont.

    I cant copy photos out of iphoto (event), I can copy them but if I want to paste them in another folder on my macbook or nas hdd, I dont have the option "paste" If I select some of the pic's it sometimes works.I also tried with export them but didnt work either.
    I used to load them into iphoto manged them and then simly copied them and saved them on my nas and/or my macbook's hdd in a folder, but now it wont work. I have now thousents of photo i cant copy, its a mess....
    it might be a problem with an update as I had also a mess with my music after updating to the latest itunes.
    has anybody an idea how to fix this??

    That warning sign comes up when iPhoto has broken the link/file path to the original photos.  Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - 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.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - 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.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Hi, I would like to copy my photos (from iphoto) and movies (from i movie) from my Mac book air to my imac in which I also have iphoto and imovie with photos and movies. My goal is to have a unique source in my imac for my photos and movies. Thanks .

    Hi,
    I would like to copy my photos (from iphoto) and movies (from i movie) from my Mac book air to my imac in which I also have iphoto and imovie with photos and movies.
    My goal is to have a unique source of photos and movies in my imac.
    Thanks !
    Nicolas

    As  to iPhoto
    Connect the two Macs together (network, firewire target mode, etc)  or use an external hard drive formatted Mac OS extended (journaled) and drag the iPhoto library intact as a single entity from the old Mac to the pictures folder of the new Mac - launch iPhoto on the new mac and it will open the library and convert it as needed and you will be ready move forward.
    For iMovie support please post in the iMovie forum
    LN

  • HT201302 I am trying to copy photos from an iPad to a Mac Air, but iPhoto does not recognize them Do you have to use PhotoStream to do this. Please forgive the ignorance, but we have just started moving to apple products and I know nothing about them. Tha

    I am trying to copy photos from an iPad to a Mac Air, but iPhoto does not recognize them. Please forgive the ignorance, but we have just started moving to apple products and I know nothing about them. Do you have to use PhotoStream to do this?

    How did the photos that you want to copy off get on the iPad  ? To copy photos to your computer that were taken with the iPad, copied to it via the camera connection kit, or saved from emails/websites then see this page - on a Mac you should be able to use iPhoto, Aperture or Image Capture
    To copy photos that were originally synced from a computer you will need a third-party app on your iPad such as Simple Transfer which can copy them off via your wifi network. But as photos are 'optimised' when they are synced to the iPad, any that you then copy back to a computer may not be exactly the same as they originally were on your computer.

  • Problems Copying Photos in iPhoto to Folder on Desktop

    I am trying to copy photos that are in iPhoto to a folder on my desktop. I have just tried to copy & paste but I keep getting the error message "The items on the Clipboard can't be pasted to this location. One or more of thw items may have been deleted or are no longer available." Most of the photos were transfered from my old mac to the new one via external hard drive, could that be where the problem lies? Please help!

    Sorry - got versions confused - under the file menu in '11 - "reveal in finder"
    I suspect that your original photo is missing in action
    if the reveal in finder does not show the original right click on teh iPhoto library package and show package contents - look (Make no changes) in the masters folder and see if the photo that we tested is there
    LN

  • Hard time copying photos from iphoto to external hard drive

    Sorry this is so long, and perhaps unclear, but I would like to copy my photos from my iphoto library onto an external hard drive. The problem is that every time I try and copy the whole library, it finds a picture that crashes the whole effort. I then tried exporting Event by Event to the hard drive, and that worked for a while, but then after about 10 of them it stopped working: about 50 photos into each Event it tells me that it cannot create the volume on the hard drive. Do you think it's a problem with the hard drive?
    I have tens of thousands of photos, and this is taking forever, since every way I try to do it starts but never finishes, and I am never sure what actually has transfered.
    I also have opened the iphoto library and copied the originals, the modified, AND the data files, but that takes forever too, and I'm never sure if I really have everything. I'd like to copy event by event if possible... and I do not want my iPhoto library to live only on the hard drive, since I use it as a back up and not permanently attached. any ideas?
    Thanks so much!

    mdg516
    Welcome to the Apple Discussions.
    The problem is that every time I try and copy the whole library, it finds a picture that crashes the whole effort.
    Why does the pic do this? Is it a corrupt file? Or is it a missing file?
    but then after about 10 of them it stopped working: about 50 photos into each Event it tells me that it cannot create the volume on the hard drive. Do you think it's a problem with the hard drive?
    No, that message usually means that iPhoto cannot find the actual photo being copied.
    Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). A Finder Window should open with the file selected. Does it?
    Regards
    TD

  • When I upload photos from my Canon Rebel 1000D to iphoto the images are labelled JPEG, yet I shoot in RAW.How do I get iphoto 11 vers9.1.3 to not convert the photos to jpeg.

    HI,
    When I upload photos from my Canon Rebel 1000D to iphoto the images are labelled JPEG, yet I shoot in RAW.How do I get iphoto 11 vers9.1.3 to not convert the photos to jpeg. I seem to have tried and read so much but just can't figure it out.  How do I get iphoto 11 vers9.1.3 to not convert the photos to jpeg. Or do a have to use a different system? I have Adobe Bridge. Or can I upload directly into photoshop?
    Also how do you install dmg's properly I am having problems installing them?
    I have a Mac OS X 13 inch Version 10.6.7
    Advice desperately needed
    Thanks
    Nlouis

    Do you have Aperture installed? I found your model on a compatibility list; however, there was a note that it requires Aperture 2 to be installed:
    http://www.apple.com/aperture/specs/raw.html
    According to this excerpt:
    To see a list of digital cameras with RAW-format support that are compatible with iPhoto, visit this Aperture webpage (any camera compatible with Aperture, Apple’s advanced photo editing and management program, is compatible with iPhoto as well)
    which is at the bottom of this page:
    http://docs.info.apple.com/article.html?path=iPhoto/9.0/en/pht41627265.html
    I may be wrong, but I interpret that info to mean you need Aperture 2 before iPhoto will work with RAW?

  • I have iphoto 08 version 7.1.5.  I copied photos from recent - last import into albums.  I then deleted the photos and emptied the trash. Today all the albums are empty and the photos are nowhere in the library.  Have I lost them all?

    I have iphoto 08 version 7.1.5.  I copied photos from recent - last import into albums.  I then deleted the photos and emptied the trash. Today all the albums are empty and the photos are nowhere in the library.  Have I lost them all?

    OK, here are a set of screenshots with my step by step - maybe you will be able to spot where I've gone awry:
    I find a photo in the Library that I will delete from an album:
    I go down to my Albums and find the picture in one of them:
    I hover over the pic so the little down arrow appears in the bottom right-hand corner. I click on it, then click on the Trash Can in the window that drops down:
    Gone from the Album:
    Gone from the Library:
    In the Trash:
    Whaddup with that?
    GB

  • The problem with copying photos from iPhoto...

    Good day! I have a problem. After the system upgrade to Mac OS X(version 10.7.1) iPhoto(version 9.1.5) program was absolutely not perform adequately. I do a lot and often edit the photos using iPhoto, and then copy the finished photos on removable media. After the procedure, Copy - Paste is that the images recorded on a media without correction. Please understand this situation, so how to use iPhoto with this error then I can not.

    File is saved in JPEG, but the photo was not taken into iPhoto adjustments.
    Here is the file in iPhoto
    So I export the selected photo
    Here is the exported file.

  • Need help upgrading from iPhoto 2... keep photo comments?

    I currently have iPhoto 2 that originally came with my eMac. I have recently upgraded the operating system to the 10.4.11. I have tons of photos in iPhoto 2. Ultimately, this has slowed down the response time when working in iPhoto.
    I am trying to figure out how the comments that I write for each photo stays with the photo after I back it up to my external hard drive, iBook? Or, how can I keep the comments to the photo when I email the photos?
    After doing some research, it looks like I need to upgrade to a current iPhoto to be able to do this. Is this correct? Will a current iPhoto version keep the comments with that photo when saved or sent elsewhere? What is the best way to upgrade and how do I go about doing this?
    Is there anyway to backup the photos on disc with the comments included? Or, can the comments be printed out to a thumbnail size of each photo for record keeping?
    I hope you can HELP with this "photo comments" dilemma... Thanks.

    Did you try repairing permissions yet? Just because you have a fresh install of Mac OS X doesn't mean everything is as it should be. And you may not know that the mail format changed from 10.4 to 10.5, so you should try rebuilding your Mail index like this:
    1. Quit Mail if it's running.
    2. Go to ~/Library/Mail and delete the Envelope Index file(s).
    3. Restart Mail, wait for it to import your existing messages, then check to see if you have access to your older mail from 10.4.
    Mulder

  • Copying photos from iPhotos to an external hard drive, changes the dates the photo was created

    I have the odd query where when I copy photos from iPhoto in to any other folder, whether it's on the mac deskstop or an external hard drive, that the 'date created' on the some of the photos is changed from the date the photo was actually taken to some random date. This is sometimes the date that I move the photos and sometime a date seemingly randomly selected between the date when the photo was taken and then date I copied the photos.
    It doesn't make a different if I copy or cut and paste each file, and if I select all photos from a single event and copy then all in one go, some photos keep the correct data and others don't.
    Most of these photo of of my baby, so the exact date take is very important ofr reference. Current I have a 100 odd photos taken over a few weeks all with the same 'created date'. I have no idea if she was 10 week or 20 weeks old at the time.
    Any ideas? It's really frustrating me.

    No
    iPhoto never does anything with a photo that is not in its library
    Although it does not affect this do you have a default managed library or a (strongly not recommedned) referenced library - (The iPhoto advanced preference to "copy imported items to the iPhoto library" has been unchecked) which is strongly NOT recommended.
    LN

Maybe you are looking for

  • HT1926 The file "iTunes Library .itl" cannot be read because it was created by a newer version of iTunes."

    After uninstalling all iTunes program files as instructed, I reinstalled iTunes successfully, but now i have a new Error Message :The file "iTunes Library .itl" cannot be read because it was created by a newer version of iTunes."  Now what?

  • Invoiced quantity is smaller than ordered quantity

    HI Everyone, When i'm doing archiving for the object MM_EKKO.The following message i got "Invoiced quantity is smaller than ordered quantity". Please can any one tell me how to close this type of purchase orders and continue archiving Regards subhash

  • Activation of VMC in SAP CRM

    Hello Experts, I have a requirement to setup system for usage of CRM products (CRM 7.0 Ehp 3). Products were setup for product type= material. But when I try to create opportunity or quotation with these products, short dump displays saying that VMC

  • Document log display

    Dear PP gurus,                     Is there any t-code which can show Document log discription. (In Rem Scernarial) I got the document log numbers from MF12. But what is it's meaning I can't understand. Waiting for your valuable help Thanks in advanc

  • Can having too many emails stored in Mail cause problems?

    I've got over 3,800 emails in my inbox and I sometimes have problems with Mail not starting. My mail is stored in iCloud (so I can access them across all my Apple devices) but I also have a lot of old emails just stored on my Mac. Should I just archi