MACSCRPT Archives

May 2003

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Walter Ian Kaye <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sun, 25 May 2003 20:29:27 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (38 lines)
At 11:50a -0400 05/25/2003, David Livesay didst inscribe upon an 
electronic papyrus:

>tell application "GraphicConverter"
>        open {alias "Drive:folder:blah.jpg"}
>        set comment of window 1 to "Blah"
>        save window 1
>        close window 1
>end tell

At least in the current GC, you need to ensure that the comment is in 
plain text (as in literals), not styled (as you might get in a 
variable). My workaround was to write the following subroutine and 
use it on all my imported strings:

on RemoveStyles(t)
    local t, rec
    try
       set rec to t as record
       set t to «class ktxt» of rec
    end try
    t
end RemoveStyles

I sent email to the developer asking for transparent coercion, so 
maybe someday this workaround won't be needed.


At 11:08a +1300 05/26/2003, Joe Barwell didst inscribe:
>What about François Pottier's Edit JFJF Comment?:
><http://pauillac.inria.fr/~fpottier/edit.html.en>  The advantage over
>GC here would appear to be its losslessness (is that a word?).

Disadvantage: it's not OS X native (I think Bill is using OS X).


-boo

ATOM RSS1 RSS2