3

Using macOS Sierra, when I double click a file that is supposed to open with Atom I get this message:

enter image description here

However if I right click and choose the default option it works fine:

enter image description here

Alex
  • 161
  • 1
    Try resetting the association. Get info on the file, set 'Open With' to Atom [even if it shows already, select it again from the drop menu] & then 'Change All...' – Tetsujin Feb 02 '17 at 17:23
  • 1
    I tried that yesterday. Just tried changing the default app then swapping it back to atom. Problem is persisting – Alex Feb 02 '17 at 17:28
  • 1
    Then it might be time to rebuild the Launch Services database. Onyx [freeware] can do that, from Maintenance tab/Rebuilding – Tetsujin Feb 02 '17 at 17:34
  • 1
    You should post your update as an actual answer, not an edit to the question! – grg Feb 09 '17 at 20:38
  • @grgarside I suppose, although it does not answer why this is happening – Alex Feb 09 '17 at 20:41
  • An onyx suggestion merits it's own answer... It's essentially a collection of common mac terminal commands. To rebuild the Launch Services it requires closing all programs, but before that it will do a hard drive check which will freeze access to the hard drive for a good bit. Not for the faint of heart. – Ray Foss Jan 15 '18 at 15:21
  • Gave Onyx a shot, even after hitting cancel on the "Where is electron?" screen, it still fixed Atom! – Ray Foss Jan 16 '18 at 18:11

1 Answers1

3

Fixed by uninstalling atom (using appCleaner) and then reinstalling most recent version.

Alex
  • 161
  • Yeah, Atom can be, well… annoying at times. It sometimes stores the ghost of a version and only leaves shortcuts to non existent files. The only way I have found to fix this is to delete and reinstall atom every once in a while. Hope they fix this soon! – jacksonwelsh Feb 10 '17 at 01:38