Image Events Errors
Image Events Errors
- Subject: Image Events Errors
- From: Christopher Pryce <email@hidden>
- Date: Sat, 11 Dec 2004 09:10:21 -0600
pulled some sample applescripts from the Apple Web sites for
scripting the new Image Events Ap (SIPS) that comes with Panther.
I get uneven results, and I am trying to decide if it is my system
install, my poor understanding of Apple script, or if what I am
experiencing is the expected behavoir.
On a G4 Quicksilver 733 with 10.3.6 updated from software update, if I
run this applescript:
set this_file to choose file
try
tell application "Image Events"
launch
-- open the image file
set this_image to open this_file
-- extract the property value
copy the resolution of this_image to {xres, yres}
-- purge the open image data
close this_image
end tell
display dialog "Resolution: " & (xres as string)
on error error_message
display dialog error_message
end try
After selecting an image, it displays the error: Can't get item 1 of {};
If I run the same script on a Blue & White with 10.3.6 update from
Software update, I get the expected result: 72.0
Other properties such as File Type and bit depth are missing as well.
I see from previous posts that others have encountered similar
problems. Did anyone find a solution?
--
cp
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden