From 4ca829f45c10f9dfed75893803187167951ee14d Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 19 Oct 2009 06:11:10 +0000 Subject: [PATCH] activate Firefox on 10.4 --- chrome/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 index 27a63553f..eb93e933c 100644 --- 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); + } } } }