Campbell please check/beautify if you like, but it works properly on OS X, either opening Preview with the 'open' command or Photoshop, when the path is set in user preferences.