tell application "Daylite"
eval "
person := selectedObjects lastObject.
predicate := NSPredicate predicateWithFormat:'displayName = \"Scan TV Licence \"'.
attachments := person fileAttachments.
filteredAttachment := (attachments filteredArrayUsingPredicate:predicate) lastObject.
filteredAttachment retrieveAttachmentWithDelegate:nil error:nil.
localLocation := filteredAttachment cachedURL.
localLocation.
"
end tell
localLocation. returns the location for the document 'scan tv licence'. but i just can't seem to get the print command to work.
print: 'localLocation'.
Doesn't seem to work at all.
Can anybody assist me?
Many Thanks.