www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 4ca829f45c10f9dfed75893803187167951ee14d
parent 0b20a629356d30086f59919a1c51a43b3ef79426
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 19 Oct 2009 06:11:10 +0000

activate Firefox on 10.4


Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -223,7 +223,12 @@ Zotero.Integration = new function() { var proc = Components.classes["@mozilla.org/process/util;1"]. createInstance(Components.interfaces.nsIProcess); proc.init(_osascriptFile); - proc.run(false, ['-e', 'tell application id "org.mozilla.firefox" to activate'], 2); + if(Zotero.oscpu == "PPC Mac OS X 10.4" || Zotero.oscpu == "Intel Mac OS X 10.4") { + // 10.4 doesn't support "tell application id" + proc.run(false, ['-e', 'tell application "Firefox" to activate'], 2); + } else { + proc.run(false, ['-e', 'tell application id "org.mozilla.firefox" to activate'], 2); + } } } }