Applescript rules do not work in Tiger
I have a mail action applescript that removes the listserve name in brackets. It worked with 10.3 but does not work with 10.4. Can anyone more savvy with Applescript and/or Mail tell me what's wrong with it?
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
repeat with eachMessage in theMessages
set theorigsubj to subject of eachMessage
if theorigsubj contains "[listserver]" then
try
set thefirstoffset to offset of "]" in theorigsubj
set thelength to the length of theorigsubj
set tempsubj to character (thefirstoffset + 2) of theorigsubj
repeat with counter from (thefirstoffset + 3) to thelength
set thechar to character counter of theorigsubj
set tempsubj to tempsubj & thechar
end repeat
set thenewsubj to tempsubj
end try
set the subject of eachMessage to thenewsubj
end if
end repeat
end tell
end perform mail action with messages
end using terms from