Re: GraphicConverter Comments
Re: GraphicConverter Comments
- Subject: Re: GraphicConverter Comments
- From: "Marc K. Myers" <email@hidden>
- Date: Sun, 18 Nov 2001 11:11:53 -0500
- Organization: [very little]
>
Date: Sat, 17 Nov 2001 17:23:55 -0700
>
To: email@hidden
>
From: JRyan <email@hidden>
>
Subject: GraphicConverter Comments
>
>
Hi all,
>
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?
>
Here's my code:tell application "Finder"
>
activate
>
set myFile to selection
>
open information window of selection
>
set myComment to comment of selection
>
close information window of selection
>
activate application "GraphicConverter"
>
open myFile
>
set comment of window 1 to myComment
>
end tell
>
And here's the error I get:Finder got an error: Can't set comment of
>
window 1 to "Test comment".
>
Where "Test Comment" is the finder comment of my file.I'm using system
>
9.1 incase that is a factor.
You're not directing the "set comment" to GraphicConverter because it's
not in a tell block to the application. The command is being directed
to the Finder because it IS inside a Finder tell block. Try it this way:
tell application "GraphicConverter"
activate
open myFile
set comment of window 1 to myComment
end tell
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[11/18/01 11:09:16 AM]