Clickable link in a dialog box

Hello all,
I can’t find how to make a link that is in a dialog box clickable.

display dialog "Google - http://www.google.com"

but I want the link portion to be blue, underlined, and clickable so that it opens in the default web browser.
Any ideas? Thanks

hI and welcome

something along this line may be

set dialogReply to display dialog "" buttons {"Google - http://www.google.com", "Cancel"} default button 1
set _URL to "http://www.google.com"
if button returned of dialogReply is "Google - http://www.google.com" then
	open location _URL
end if

Budgie

Hadn’t thought of doing it that way. However, I know I’ll end up with at least two different links, potentially more, so the button approach might not be the best. Maybe the dialog box wouldn’t be the best way either? I just want a page with the links in it to pop up when the user clicks a button. The dialog box was the only way I knew of to do it in Applescript though. Open to ideas…

you can use “choose from list”, to achieve what your after, give the below a shot.

set _URL1 to "http://www.google.com" -- add as many URL'S as you wish
set _URL2 to "http://www.hotdoor.com"
set _URL3 to "3"
set _URL4 to "4"
choose from list {"Google - http://www.google.com", "http://www.hotdoor.com", "3", "4"} with prompt "Select Link" default items {"Google - http://www.google.com"} OK button name "Ok" cancel button name "Cancel"
set the _linktoopen to result as text
if the _linktoopen is "Google - http://www.google.com" then
	open location _URL1
else if the _linktoopen is "http://www.hotdoor.com" then
	open location _URL2
else if the _linktoopen is "3" then
	open location _URL3
else if the _linktoopen is "4" then
	open location _URL4
end if

Budgie

Still not exactly what I was after, but it will work. Thanks Budgie.