Apple 脚本 - 如何在对话框中显示 url link

Apple script - How to show url link in dialog

我想知道是否有任何方法可以在苹果脚本对话框中显示 URL link 以便用户能够单击 link 并自动打开它。

我已经得出如下解决方案,

osascript <<'END'
    set theAlertText to "Swiftlint is not installed"
    set theAlertMessage to "Download from https://github.com/realm/SwiftLint manually. Would you like to open link?"
    display alert theAlertText message theAlertMessage as critical buttons {"Cancel", "Open link"} default button "Open link" cancel button "Cancel" giving up after 60
    set the button_pressed to the button returned of the result
    if the button_pressed is "Open link" then
        open location "https://github.com/realm/SwiftLint/blob/master/README.md"
    end if
END