Currently Being ModeratedDec 4, 2012 6:24 AM (in response to madhusudhanjr)
i tried the solutions provided @ https://discussions.apple.com/message/3245588#3245588, but none is working, am using Mac 10.7.4.
Currently Being ModeratedDec 4, 2012 6:44 AM (in response to madhusudhanjr)
Give this one a try:
do shell script "export VERSIONER_PERL_PREFER_32_BIT=yes; perl -MMac::InternetConfig -le 'print +(GetICHelper \"http\")'"
Currently Being ModeratedDec 4, 2012 7:43 AM (in response to red_menace)
the script worked fine, but when i changed the default browser from firefox to Chrome am not getting chrome its still pointing to firefox, i restarted the safri as well but nothing workrd..!!!
Currently Being ModeratedDec 4, 2012 5:01 PM (in response to madhusudhanjr)
Here's another way you may try.
--SCRIPT set rb to "# get bundle id of default browser require 'osx/cocoa' include OSX url = NSURL.URLWithString('http://aaa.bbb.ccc') app = NSWorkspace.sharedWorkspace.URLForApplicationToOpenURL(url) puts NSBundle.bundleWithPath(app.path).bundleIdentifier " return do shell script "/usr/bin/ruby -e " & rb's quoted form --END OF SCRIPT