activate Firefox on 10.4

This commit is contained in:
Simon Kornblith 2009-10-19 06:11:10 +00:00
parent 0b20a62935
commit 4ca829f45c

View file

@ -223,11 +223,16 @@ Zotero.Integration = new function() {
var proc = Components.classes["@mozilla.org/process/util;1"].
createInstance(Components.interfaces.nsIProcess);
proc.init(_osascriptFile);
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);
}
}
}
}
}
/**
* An exception thrown when a document contains an item that no longer exists in the current document.