Ok… with the upcoming Firefox 52 deprecation of NPAPI and therefore no plugins except for Flash, Im trying to write a relevance to check for the ESR branch of Firefox on a mac.
Windows is easy but Im not a mac person.
However, Im also seeing a discrepancy with the mac inspectors
regapp and applications…
Try this…
( versions of regapps whose (name of it as lowercase = “firefox.app” as lowercase))
and also
(versions of applications whose (name of it as lowercase = “firefox.app” as lowercase))
where regapps reports none, applications reports a version and vice verca…
If I am consistent in both and change = “firefox.app” to starts with “firefox” i see much more consistent results…
Anyway, I really want to see if the version installed is the ESR version and neither of the above methods reports ESR even if it is installed.
The problem will occur this tuesday as the regular branch AND the ESR branch will both be v52.0.0
I have found the file I need to locate and read…
it lives in /Applications/Firefox.app/Contents/Resources/defaults/pref and is called channel-prefs.js
The Line in there that indicates the channel is
prep(“app.update.channel”, “esr”);
So… I tried exists files “channel-prefs.js” of folders of folder “/Applications/Firefox.app/Contents/Resources/defaults/” in Qna and that returned true
Just need a little help reading the content of the file…
exists files “channel-prefs.js” whose (exists lines whose (it as trimmed string as lowercase = “pref( app.update.channel”, “esr”);" of it) of folders of folder "/Applications/Firefox.app/Contents/Resources/defaults/"
but this errors with contains a character which is not allowed… It appears to be the ;
If I remove the ; I get a boolean expression is required.
Hi Pete, it looks like the double quotes are tripping up the relevance. Give this one a shot, it has the double quotes replaced with the percent/url code instead.
(exists lines whose (it as trimmed string as lowercase contains "pref(%22app.update.channel%22, %22esr%22);") of files "channel-prefs.js" of folders of folders "/Applications/Firefox.app/Contents/Resources/defaults/")