Re: GraphicConverter Comments
Re: GraphicConverter Comments
- Subject: Re: GraphicConverter Comments
- From: Mr Tea <email@hidden>
- Date: Sun, 18 Nov 2001 16:08:51 +0000
This from JRyan - dated 18/11/01 12.23 am:
>
I'm trying to write a script that will take the comments from a finder
>
file (the comments from "Get Info") and copy them into the comment field
>
in GraphicConverter (version 4.0.2PPC). I seem to be having a tough time
>
with this... Any suggestions?
Hi, Jess.
You need to 'tell' GraphicConverter to do this, rather than just activating
it. Your script was actually asking the Finder to change the comment - hence
the error. Also, you don't need to open the info window to get the comment.
This should work....
tell application "Finder"
set myFile to selection
set myComment to comment of selection
open myFile
end tell
tell application "GraphicConverter" to set comment of window 1 to myComment
This sets the comment in GC's 'comments' window (although the display
doesn't refresh willingly), but I can't find any way on God's green earth to
make that comment appear in the comment field of GC's image info window.
That remains resolutely blank, whatever.
If the above script works for you, you could change it into a droplet by
wrapping the whole thing in an 'on open - end open' block & save as an
applet. Then it would do the business for any eligible file that you dropped
onto it, although it would need some tweaking if you want to drop multiple
files & check if they are actually GC images before opening...
Tested with GC 4.1 & OS 9.2.1
NOT tested on OS X
HTH
Mr Tea
--