Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Fix iChat AppleScripts in Mountain Lion ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Fix iChat AppleScripts in Mountain Lion
Authored by: XDave on Aug 24, '12 09:10:27AM

Also mail scripts seem to have broken. I have used this one as a rule for a long time successfully. The Mountain Lion OSX has rendered it useless. Hoping someone can help.

on perform_mail_action(info)
tell application "Mail"
set theMessages to |SelectedMessages| of info
repeat with thisMessage in theMessages
set AppleScript's text item delimiters to {""}
set thisSender to sender of thisMessage as string
set quotepos to offset of "\"" in thisSender
if (quotepos is not 0) then
set thisSender to (text items (quotepos + 1) through -1)
of thisSender as string
set quotepos to offset of "\"" in thisSender
if (quotepos is not 0) then
set thisSender to (text items 1 through (quotepos - 1))
of thisSender as string
end if
else
set atpos to offset of "@" in thisSender
if (atpos is not 0) then
set thisSender to (text items 1 through (atpos - 1))
of thisSender as string
end if
set brkpos to offset of "<" in thisSender



[ Reply to This | # ]