Eudora script stopped working
Eudora script stopped working
- Subject: Eudora script stopped working
- From: Doug McNutt <email@hidden>
- Date: Tue, 25 Feb 2003 17:14:27 -0700
Gets the To: field of an outgoing message in the front window and adds it to the Allowed group nickname for use in filtering incoming messages with the intersects option.
set theGroupName to "Allowed"
set theRecipient to ""
tell application "Eudora"
set theToField to field "To:" of message 0
set theRecipient to characters 5 thru end of theToField
get addresses of nickname theGroupName
set theGroup to addresses of nickname theGroupName
set theGroup to theGroup & "," & theRecipient
set addresses of nickname theGroupName to theGroup
end tell
I just realized that it no longer works. It probably failed when I installed OS 9.1 on my 8500.
It's has been adding addresses like this to my Eudora group:
";<;w;r;o;n;g;g@;f;u;u;.;n;e;t;>"
Apparently "characters 5 thru end of theToField" has begun returning a list rather than a string which doesn't concatenate properly anymore. I doubt that my spelling of thru has much to do with it except to reflect the fact that I was guessing like mad in June of 2001 when I wrote the script. I also now see a get for which the result is never used.
Would someone please save me from experimentation by suggesting an AppleScriptly-correct syntax which will work next year?
I'd try
set theRecipient to (characters 5 thru end of theToField) as string
but it would be pure guesswork.
Something else. . .
The script was saved as a compiled application and I opened it in the script editor just to copy the source. I did not save it when I quit the editor. The script now shows today as the modification date! Did Script Editor change it without being asked? Version 1.8.3.
--
--> If you are presented a number as a percentage, and you do not clearly understand the numerator and the denominator involved, you are surely being lied to. <--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.