Save in Image Events
Save in Image Events
- Subject: Save in Image Events
- From: Luther Fuller <email@hidden>
- Date: Wed, 14 Dec 2005 10:57:43 -0600
I have been trying to write a script to convert image files this
morning. After spending too much time getting it to work, I was
successful, but noticed some problems with the 'save' command. Here's
a simplification of the script:
tell application "Image Events"
launch
set theImage to open fileAlias
save theImage as TIFF in destFolder -- for example
-- other types have the same problems
close theImage
end tell
And the problems are:
1. The dictionary shows that 'save ...' returns an alias,
but it returns nothing. The result is undefined.
2. If the original file has an extension, even an incorrect one,
the new TIFF file will have the correct .tiff extension.
However, if the original file has no extension, then the new
file will have no extension and the Finder will not recognize
the new file as an image.
(But one may add the correct extension manually.)
(The work-around is to rename the original file with the correct
extension. I may do this later today.)
I'm thinking that these problems are a bug and I'm wondering if
anyone else has had a similar experience with Image Events' 'save'
command. Has anyone submitted a bug report about this?
_______________________________________________
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