AppleScript is confused where my Word binary is
Hi,
I'm running latest plugins (20.b7.4, integration 3.0a6 ) and an updated Word 2008 on OS X. I have the strangest issue since I've re-installed my computer.
(From FireFox debug window:)
CantLaunchApplicationError: Can't launch application at u'/Users/stefangorling/Dropbox/MBA-final/Desktop/Skrivbord2/Office 2008 12.1.7 Update.mpkg/Contents/Packages/Office2008_sv_word_12.1.7.combo.pkg/Contents/Resources/binaries/tnb/Microsoft Office 2008/Microsoft Word.app': OS error (-600)
I've looked at the stack trace (attached below), and realize that somewhere, when asking applescript for the path for com.Microsoft.Word it gives a path where the upgrade-package were runned from, but this is of course not where the app resides anymore.
(And I get a Zotero experienced an error upgrading your document no matter what I'm trying to do in Word).
I realize that this isn't Zoteros fault per se, but do you have any idea what to do to correct this? How can it happend?
Full stack:
zotero(3): Integration: Instantiating @zotero.org/Zotero/integration/application?agent=MacWord2008;1 for command addCitation
ERROR:xpcom:Unhandled exception calling 'int8 getActiveDocument(out retval nsISomething);'
Traceback (most recent call last):
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/pythonext@mozdev.org/pylib/xpcom/server/policy.py", line 277, in _CallMethod_
return 0, func(*params)
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/components/zoteroIntegrationApplication.py", line 43, in getActiveDocument
return Document(appscript.app(id='com.Microsoft.Word'))
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/MacWord.py", line 104, in __init__
self.asDoc = self.asApp.active_document
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/appscript/reference.py", line 583, in __getattr__
selectortype, code = self.AS_appdata.referencebyname()[name]
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/appscript/reference.py", line 251, in referencebyname
self.connect()
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/appscript/reference.py", line 218, in connect
t = self._target = self._aemapplicationclass(**{self.constructor: self.identifier})
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/aem/__init__.py", line 71, in __init__
self._address = aemconnect.localapp(path)
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/aem/aemconnect.py", line 158, in localapp
pid = _launchapplication(path, _runevent)
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/aem/aemconnect.py", line 38, in _launchapplication
raise CantLaunchApplicationError(err.args[0], path)
CantLaunchApplicationError: Can't launch application at u'/Users/stefangorling/Dropbox/MBA-final/Desktop/Skrivbord2/Office 2008 12.1.7 Update.mpkg/Contents/Packages/Office2008_sv_word_12.1.7.combo.pkg/Contents/Resources/binaries/tnb/Microsoft Office 2008/Microsoft Word.app': OS error (-600)
I'm running latest plugins (20.b7.4, integration 3.0a6 ) and an updated Word 2008 on OS X. I have the strangest issue since I've re-installed my computer.
(From FireFox debug window:)
CantLaunchApplicationError: Can't launch application at u'/Users/stefangorling/Dropbox/MBA-final/Desktop/Skrivbord2/Office 2008 12.1.7 Update.mpkg/Contents/Packages/Office2008_sv_word_12.1.7.combo.pkg/Contents/Resources/binaries/tnb/Microsoft Office 2008/Microsoft Word.app': OS error (-600)
I've looked at the stack trace (attached below), and realize that somewhere, when asking applescript for the path for com.Microsoft.Word it gives a path where the upgrade-package were runned from, but this is of course not where the app resides anymore.
(And I get a Zotero experienced an error upgrading your document no matter what I'm trying to do in Word).
I realize that this isn't Zoteros fault per se, but do you have any idea what to do to correct this? How can it happend?
Full stack:
zotero(3): Integration: Instantiating @zotero.org/Zotero/integration/application?agent=MacWord2008;1 for command addCitation
ERROR:xpcom:Unhandled exception calling 'int8 getActiveDocument(out retval nsISomething);'
Traceback (most recent call last):
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/pythonext@mozdev.org/pylib/xpcom/server/policy.py", line 277, in _CallMethod_
return 0, func(*params)
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/components/zoteroIntegrationApplication.py", line 43, in getActiveDocument
return Document(appscript.app(id='com.Microsoft.Word'))
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/MacWord.py", line 104, in __init__
self.asDoc = self.asApp.active_document
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/appscript/reference.py", line 583, in __getattr__
selectortype, code = self.AS_appdata.referencebyname()[name]
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/appscript/reference.py", line 251, in referencebyname
self.connect()
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/appscript/reference.py", line 218, in connect
t = self._target = self._aemapplicationclass(**{self.constructor: self.identifier})
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/aem/__init__.py", line 71, in __init__
self._address = aemconnect.localapp(path)
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/aem/aemconnect.py", line 158, in localapp
pid = _launchapplication(path, _runevent)
File "/Users/stefangorling/Library/Application Support/Firefox/Profiles/4qsdwgpd.default/extensions/zoteroMacWordIntegration@zotero.org/pylib/aem/aemconnect.py", line 38, in _launchapplication
raise CantLaunchApplicationError(err.args[0], path)
CantLaunchApplicationError: Can't launch application at u'/Users/stefangorling/Dropbox/MBA-final/Desktop/Skrivbord2/Office 2008 12.1.7 Update.mpkg/Contents/Packages/Office2008_sv_word_12.1.7.combo.pkg/Contents/Resources/binaries/tnb/Microsoft Office 2008/Microsoft Word.app': OS error (-600)
-
SimonI can't say how this happened, but try rebuilding your Launch Services database.
-
stefangorlingThanks, it did indeed solve the problem!
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.