In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (_brian_d_foy) wrote:
> I think I'm missing something about setting properties though. > I can read things fine, but I get an error when I try to set > a property: "'Mac::AEObjDesc=HASH(0xb03f00)' parameter not available". > > Where's my error? > my $photo = $album->obj( photo => 1 ); > my $date = $photo->prop( "date" )->get; > print( qq|date is "$date"\n| ); > > $photo->set( date => to => "2004-06-13 12:34:56" ); > # $photo->prop( 'date' )->set( ... ) ? You are calling date as the direct object on set(). This really works out to: $iphoto->set($photo => date, to => "..."); Your second guess would be correct, although I would do: my $date = $photo->prop( "date" ); printf( qq|date is "%s"\n|, $date->get ); $date->set( to => "..." ); But there is a bigger problem. From `gluedoc iPhoto`, under Classes => photo: date (idat/utxt): The date of the photo. (read-only) In Script Editor, you will see this as: date Unicode text [r/o] -- The date of the photo. There ain't nothing Mac::Glue can do to fix that problem. -- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Technology Group [EMAIL PROTECTED] http://ostg.com/