I would like to understand why I cannot check if a dedicated property is ‘missing value’ without casting all properties to a variable. Here are two examples where the latter that works great.
R�diger
Example that does NOT work:
tell application "Address Book"
set the_people to every person
set the_images to {}
repeat with i from 1 to number of items in the_people
set this_item to item i of the_people
try
set this_image to (image of this_item)
end try
if this_image is not missing value then
set the_images to the_images & name of this_item
end if
end repeat
end tell
Example that does work:
tell application "Address Book"
set the_people to every person
set the_images to {}
repeat with i from 1 to number of items in the_people
set this_item to item i of the_people
set this_properties to properties of this_item
try
set this_image to (image of this_properties)
end try
if this_image is not missing value then
set the_images to the_images & name of this_properties
end if
end repeat
end tell