• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: GraphicConverter Comments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]


  • Prev by Date: Re: GraphicConverter Comments
  • Next by Date: Re: "original item of" activates Finder!?
  • Previous by thread: Re: GraphicConverter Comments
  • Next by thread: Can't program link
  • Index(es):
    • Date
    • Thread