• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Image Events and Unicode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: every file in path error
  • Next by Date: Re: Metadata storage in Tiger Mail?
  • Previous by thread: Re: Image Events and Unicode
  • Next by thread: Raw class specifiers that AppleScript won't mess with
  • Index(es):
    • Date
    • Thread