Status of Akua Sweets interaction with ListSTAR Server
Status of Akua Sweets interaction with ListSTAR Server
- Subject: Status of Akua Sweets interaction with ListSTAR Server
- From: email@hidden
- Date: Mon, 2 Jul 2001 23:00:07 -0400
I've gotten tripped up a little by the bad interaction between ListSTAR and Akua
Sweets, so I thought I'd report what I've found.
The bad interaction occurs when a "StarNine Send" event is sent from an
AppleScript to ListSTAR, with a list of enclosures specified as strings and not
as aliases. For example,
property testEnclosures : {alias "OS 9.1:Desktop Folder:Test enclosure"}
set testService to "N01-999"
set testDestination to "email@hidden"
set testSubject to "Test message"
set testBody to "This is an enclosure test."
tell application "ListSTAR Server"
StarNine Send testService to testDestination ,
subject testSubject body testBody ,
enclosures testEnclosures
end tell
If this script is run without either Akua Sweets or Jon's Commands, it runs
fine. If the alias is changed to a string, the error "Can't make some data into
the expected type" occurs. If the alias is changed to a file specification,
(that is,
property testEnclosures : {alias "OS 9.1:Desktop Folder:Test enclosure" ,
as file specification}
the script also works with no error.
Now, if I install Akua Sweets, the results are as follows
alias: Works
string: Error -30016
file spec: Works
If I remove Akua, and install Jon's Commands, the results are as follows
alias: Works
string: Works
file spec: Works
Together, Akua's file coercion is the one that is in effect, because it loads
last (the file is named "Akua Sweets", and the flyspeck before the name makes
it last in the alphabet.) The results when both scripting additions are
installed is the same as for just Akua Sweets.
The work-around is to always provide a list of aliases or file specifications to
ListSTAR, or to coerce string to FSS's or aliases separately, before sending the
StarNine Send event.
I tried to use AECapture to get more detailed information on what was happening
when ListSTAR tried to coerce as string into an FSS, but ListSTAR would crash.
Here's the last things AECapture showed before the crash:
ListSTAR Server at TickCount: $0000228D
AECountItems
Routine returned an error : $F958 errAENotAEDesc
ListSTAR Server at TickCount: $0000228D
AECountItems
Routine returned an error : $F958 errAENotAEDesc
ListSTAR Server at TickCount: $0000228E
AECountItems
Routine returned an error : $F958 errAENotAEDesc
ListSTAR Server at TickCount: $0000228E
AECountItems
List returned $00000001
ListSTAR Server at TickCount: $0000228E
AEGetNthPtr
Getting a fss from position $00000001
ListSTAR Server at TickCount: $0000228F
AEGetEventHandler
Class: tpht ID: load
Finder at TickCount: $00002296
AEProcessAppleEvent
Class: aevt ID: obit <--- ["ListSTAR quit unexpectedly" event.]
Configuration:
B&W "Yosemite" G3, Mac OS 9.1 with CarbonLib 1.3.1, ListSTAR 2.1, and
AppleScript 6.1. Akua Sweets 1.4.1.
--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden