activate Firefox on 10.4
This commit is contained in:
parent
0b20a62935
commit
4ca829f45c
1 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue