Re: Image Events and Unicode
Re: Image Events and Unicode
- Subject: Re: Image Events and Unicode
- From: Kevin Meaney <email@hidden>
- Date: Tue, 3 May 2005 22:05:17 +0100
Guy,
You could try using iMagine Photo instead of Image Events. It is similar in idea but does a lot more than Image Events. Normally it runs as an application but if you want it to run as a background only application all it takes is an applescript command, and the next time it starts it will operate that way.
I have just tried on an english system:
tell application "iMagine Photo"
set thisFile to import graphic file "
Macintosh HD:rédoü.JPG"
set theProps to the properties of thisFile
close thisFile
end tell
and got the result:
{component error:0, last operation error:0, natural bounds:{0, 0, 2272, 1704}, bit depth:24, color space:rgb, image count:2, graphic type:"Photo - JPEG", resolution:{300.0, 300.0}, file name:"rédoü.JPG", DONTgamma correct:false, DONTcolor match:false}
Kevin
On 3 May 2005, at 07:57, DizzyPenguin wrote:
On 3 May 2005, at 05:52, Shane Stanley wrote:
set this_file to (choose file) as Unicode text
try
tell application "Image Events"
launch
set this_image to open this_file
set the image_props to the properties of this_image
close this_image
end tell
on error error_message
display dialog error_message
end try
Why are you coercing to Unicode text? Try cutting that bit out and feed
the open command the alias instead of just a path.
Fair enough I suppose, but the result is the same when feeding it as alias :(
Regards,
Guy
--
DizzyPenguin * autoMAC-it
email : <email@hidden>
website : <http://www.dizzypenguin.com/automac-it/>
_______________________________________________
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
_______________________________________________
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