Wrong browser opens on Mac 10.12.5 (osascript bug) - Firefox, Chrome, etc

Hi @user1121,
Can you clarify what links you are clicking on?
What Operating System and version are you running?

From the mac menu bar, click odrive, then any of the links open a window in firefox (manage storage, usage guide, announcements). It definitely seems like it is using firefox as the default browser but chrome is set as such for me.

Mac OS Sierra 10.12.5

Just deleted Firefox to see if that would work. Now Odrive opens Safari. Chrome is still default browser.

Hi @user1121,
Can you open a terminal and copy and paste this command int it, hit enter, and tell me what browser it opens?
python -c "import webbrowser; webbrowser.open('https://www.odrive.com');"

This is essentially what we are doing. It is supposed to pull the default browser for the OS. Can you also try setting Safari as the default, then setting the default back to chrome?

It opened safari and terminal output this:

0:38: execution error: “https://www.odrive.com” doesn’t understand the “open location” message. (-1708)
70:78: execution error: Can’t get application “firefox”. (-1728)

And yeah, I changed it to safari and back to chrome, it didn’t seem to change what Odrive did.

Hi @user1121,
It looks like the call actually boils down to an osascript call like this:
echo 'open location "http://www.odrive.com"' | osascript

What does that command produce?

Ds-MacBook-Air:~ db$ echo 'open location “http://www.odrive.com”'
open location “http://www.odrive.com

nothing opened here.

Ds-MacBook-Air:~ db$ echo ‘open location “http://www.odrive.com”’ | osascript
0:37: execution error: “http://www.odrive.com” doesn’t understand the “open location” message. (-1708)

nothing opened here either.

I have exactly the same problem. It started a few days ago? May be after the last osx update.

So I have Chrome as default browser. What used to happen when I clicked on a google docs file is that it opened chrome. Now suddenly it starts to open Firefox (a browser I only use for testing).

One more thing, when I look at with what application the google docs file will be started it says “odriveapp”

I’m also seeing this. I’m a new Odrive user, so can’t tell if this has something to do with the latest OS X update or not. But right now (on Sierra 10.12.5) everything I do from Odrive opens Firefox… Really annoying since I normally use Chrome and have Chrome as my default browser.

Clicking any item (like “Manage storage”) from the menu bar opens Firefox. Also from my Google Drive folder clicking on an document opens Firefox.

Thanks for the feedback everyone. It seems like either new behavior or a bug (my money is on a bug) in osascript in 10.12.5. I will continue digging…

For reference, other applications seem to open default browser links correctly. Mail, for example, sends me to chrome when I open a weblink.

This is reported to be a bug in osascript, introduced in 10.12.5. We may need to wait for a fix from Apple. Barring that we will see if there is a workaround.

Just adding a ‘me too’ to the FF bug with OSX 10.12.5

Same issue here, please let me know when there is a fix!

Thanks!

Mike

This is reportedly fixed in MacOS 10.12.6 which I expect should be released in about 5 weeks, given their typical update schedule of ~60 days.

Same problem here. I thought it was just me but after it continuing for weeks, I finally decided to look into my settings to fix the issue. That’s when I found this thread. I guess I feel a little better knowing it’s a software issue and there is supposed to be a fix coming. Fingers crossed the help comes sooner than later. Thanks for starting and contributing to this thread all~

Same issue here, however python -c "import webbrowser; webbrowser.open('https://www.odrive.com');" performs as expected, and opens my default browser.

Accessing anything from the odrive menubar or context menu that initiates a browser window will always open with Safari.

~> perl --version

This is perl 5, version 24, subversion 1 (v5.24.1) built for darwin-thread-multi-2level

~> echo 'open location "http://odrive.com"' | osascript
0:33: execution error: "http://odrive.com" doesn’t understand the “open location” message. (-1708)

Hardware Overview:

  Model Name: MacBook Pro
  Model Identifier: MacBookPro12,1
  Processor Name: Intel Core i7
  Processor Speed: 3.1 GHz
  Number of Processors: 1
  Total Number of Cores: 2
  L2 Cache (per Core): 256 KB
  L3 Cache: 4 MB
  Memory: 16 GB

Software:

  System Software Overview:
  System Version: macOS 10.12.5 (16F73)
  Kernel Version: Darwin 16.6.0
  Boot Mode: Normal