iPhoto/AppleScript date field inconsistencies

If you're doing any parsing on the 'image_date' field as grabbed by AppleScript, beware.I just noticed a strange thing about the iPhoto 2.0 date/time field - if you don't touch the date set by iPhoto on import, AppleScript will read the date in the format 'YYYY:MM:DD HH:MM:SS'.

If you go in and tweak the date manually, however, AppleScript reads the date in the format 'YYYY-MM-DD HH:MM:SS -XXXX' where XXXX is the GMT offset. (note the hyphens between Y/M/D, compared to the colons above.)

So, if you're doing any parsing on the 'image_date' field as grabbed by AppleScript, this will probably give you grief.

Syndicate content

Twitter

  • I don't think it gets much better than 'Revolver' on vinyl. 3 years 2 weeks ago
  • Have fun at #drupalcon everybody! I hate to break my 3 year streak, but I should be back next year... 3 years 23 weeks ago
  • Just made my first Drupal 7 module, 'Entity Relationships', official: http://bit.ly/h3xnPK #drupal #entities #module 3 years 24 weeks ago
  • Already set up my first #git sandbox project for #drupal: http://drupal.org/sandbox/usonian/1072422 3 years 25 weeks ago
  • Drupal.org is coming back online - just set up my SSH keys for #git. Huge props to the #drupal git migration team! 3 years 25 weeks ago

Older

Contact

Andy Chase
(978) 297-6402
andychase [at] gmail.com
GPG/PGP Public Key