Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to open link in default browser?



on 01/07/2005 15:15, Neil Lee at email@hidden wrote:

> 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.
> 
> [1]: http://popfile.sourceforge.net/
> 
> An example of a POPFile header:
> 
> X-Popfile-Link: http://127.0.0.1:8080/jump_to_message?view=24212
> 
> 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)
> 
> Any help is appreciated!

How about:

open location "http://www.apple.com";

It doesn't have to be in any tell block.

-- 
Matthew Smith


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >How to open link in default browser? (From: Neil Lee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.