line 107 of index.js creates possible race
There's a setTimeout in index.js for opening a file with OSX app bundle. This needs to be changed so that the file only gets opened after the GUI has made the connection with Pd. The hack relies on a delay of 6 seconds which isn't dependable.