activate the appropriate app with Zotero standalone
This commit is contained in:
parent
a5365bb938
commit
a3ce940fd6
1 changed files with 2 additions and 2 deletions
|
@ -331,9 +331,9 @@ Zotero.Integration = new function() {
|
||||||
if(Zotero.isMac) {
|
if(Zotero.isMac) {
|
||||||
if(Zotero.oscpu == "PPC Mac OS X 10.4" || Zotero.oscpu == "Intel Mac OS X 10.4") {
|
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"
|
// 10.4 doesn't support "tell application id"
|
||||||
_executeAppleScript('tell application "Firefox" to activate');
|
_executeAppleScript('tell application "'+(Zotero.isStandalone ? "Zotero" : "Firefox")+'" to activate');
|
||||||
} else {
|
} else {
|
||||||
_executeAppleScript('tell application id "org.mozilla.firefox" to activate');
|
_executeAppleScript('tell application id "'+(Zotero.isStandalone ? "org.zotero.zotero" : "org.mozilla.firefox")+'" to activate');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue