Radio and Safari

In order to get Radio to recognize Safari and use it, even if the browser is open before starting Radio, a few changes need to be made.
webBrowser.supportedBrowsers must be altered to add ‘sfri’ (Safari’s creator code) to the list of OS X browsers.
webBrowser.isRunning also needs to be tweaked. It seems that the sys.appIsRunning() verb wants its parameter to be a string. Unfortunately the value being passed is a list element. The change is to coerce the parameter for sys.appIsRunning(string(parameter)).
webBrowser.isRunning will now look like the following.
[change deleted]
Jake is fixing this so don’t worry.
I found a better way to fix this check out this post.

Filed under: Uncategorized