I'm working on tweaking an applescript that works in conjunction with
the bayesian filtering software POPFile[1] and Mail.app. POPFile adds
a few custom headers, one of which includes a URL that displays the
email in POPFile's web interface.
Here's what I have working for for Safari. I'd like to target this,
though, in whatever the default system browser is, but am not sure if
it should be just "open [url]" or if there's something more complex I
need to be doing:
set popFileLink to (content of header ¬
"X-Popfile-Link" of msg)
set popFileLink to (characters 1 through ¬
(count of popFileLink) of popFileLink)
log "PopFile: " & popFileLink
tell application "Safari" to GetURL ¬
(popFileLink as string)