Re: Saving new image from GraphicConverter 4
Re: Saving new image from GraphicConverter 4
- Subject: Re: Saving new image from GraphicConverter 4
- From: Michelle Steiner <email@hidden>
- Date: Sat, 20 Jan 2001 23:52:01 -0800
On 1/20/01 8:46 PM, Jeremy Reichman <email@hidden> wrote:
>
I'm trying to take an existing image in GC4, modify it, and save it as a new
>
image.
>
>
The GC4 dictionary indicates that I should use something like:
>
>
save [reference] in [alias] as [format] with makeCopy
>
>
Everything works fine until I add in the "in [alias]" bit. There, I try to
>
make an alias to a new file/location. GraphicConverter returns an error that
>
that file cannot be found. However, if I leave that out, even turning on the
>
makeCopy option (which is supposed to save a copy of the file, rather than
>
overwriting the original), it will overwrite the original file. Not what I
>
want in either case -- I want automated production of a new image file.
>
>
Any ideas on how I can get this to work, or if I can even do it in GC4?
The following worked for me.
tell application "Finder" to set the selectedfile to the selection as
alias
tell application "GraphicConverter"
activate
open the selectedfile
save (the front window) in "Macintosh HD:newfile" as GIF
end tell
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------