Re: Mac::Glue and selections in iPhoto

2004-02-03 Thread John Delacour
At 1:59 pm +0100 3/2/04, Peter J. Hartmann wrote: Am 02.02.2004 um 19:04 schrieb John Delacour: If it were the Finder, you would need to say item 1 of (get selection) Same for Mail.app. It cost me quite a bit - too much in fact - time to find this out. Annoying. Is this somekind of a

Re: Mac::Glue and selections in iPhoto

2004-02-02 Thread John Delacour
At 8:58 am -0800 2/2/04, Chris Nandor wrote: tell application iPhoto get item 1 of selection end tell That fails in AppleScript for me. Is there a way to do this in AppleScript? If so, I can tell you how to do it in Mac::Glue. :-) If it were the Finder, you would need to say item 1

Re: Mac::Glue and selections in iPhoto

2004-02-02 Thread Chris Nandor
It looks like the problem is that a 64-bit signed value (typeComp) for the photo ID is returned via the Apple event, but iPhoto won't accept it back! It needs to be coerced into something else, such as typeFloat or typeLongInteger. How ridiculous for iPhoto to not accept back a value it

Mac::Glue and selections in iPhoto

2004-01-31 Thread Stephan Heuel
Hi there I recently wanted to export photo albums from iPhoto 4, including name and comments. With Mac::Glue, this part works very well - thanks to Chris Nandor (a code snippet is appended at the end of this post). Now I want to access the current iPhoto selections in a Perl script. I tried