Posted to tcl by hat0 at Mon Nov 23 18:46:52 GMT 2009view raw
- #
- # old - from the 8.4 era (note the [string equal]) - also haven't tested in any modern OS (vista, win7, etc)
- #
- if { [string equal $config(ostype) "mac"] } {
- exec open http://rs.tc/
- } elseif { [string equal $config(ostype) "win"] } {
- eval exec [auto_execok start] { http://rs.tc/ }
- } else {
- tk_messageBox -type ok -message "Don't know how to open a browser on your platform!"
- }