Re: Bug in Image Events (?)
Re: Bug in Image Events (?)
- Subject: Re: Bug in Image Events (?)
- From: Andrew Oliver <email@hidden>
- Date: Sat, 10 Jan 2004 09:33:21 -0800
Just a guess, but maybe if you asked Image events to open a file rather than
a string you might have more luck...?
>
set bigImage to "path:to:DON INE:big:img.jpg"
...
>
set imgRef to open bigImage
Try "set imgRef to open file bigImage" instead.
Andrew
:)
On 1/10/04 3:30 AM, "julifos" <email@hidden> wrote:
>
Hi!
>
>
Seems that Image Events (and "sips") doesn't handle paths with accented
>
characters.
>
>
This code doesn't throw errors, nor thumbnails!
>
>
#################################
>
set bigImage to "path:to:DON INE:big:img.jpg"
>
set thumbImage to "path:to:DON INE:thumbs:img.jpg"
>
set max to 80
>
>
--> test sips
>
do shell script "sips -Z " & max & space & quoted form of POSIX path of
>
bigImage & " --out " & quoted form of POSIX path of thumbImage
>
>
--> test IE
>
tell application "Image Events"
>
launch
>
set imgRef to open bigImage
>
scale imgRef to size max
>
save imgRef in thumbImage
>
close imgRef
>
end tell
>
#################################
>
>
I've checked this code with other paths (withouth accented stuff) and it
>
works fine.
>
>
jj
>
>
* BTW, do you know how can I file a bug to Apple's AppleScript Team, other
>
than posting it here?
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.