Mac Word Plugin 2.0a1 Questions
I've just installed 2.0a1 of the Mac plugin for Word 2008, but I can't seem to get anything to work. I have installed 1.5-sync3.2, and synced my reference list (it's only got 6 items in it) to the servers. In Word 2008, I have several entries on the AppleScript menu, such as 'Add Bibliography', 'Add Citation' etc., but when I select one of them, nothing happens :(. Am I doing something wrong, or is there a problem with the plugin?
Thanks,
Dave.
Thanks,
Dave.
This discussion has been closed.
You have mail :).
cd ~/Documents/Microsoft\ User\ Data/Word\ Script\ Menu\ Items/Zotero/
python MacWord.py addCitation
Traceback (most recent call last):
File "MacWord.py", line 45, in <module>
from appscript import *
ImportError: No module named appscript
Hope that helps :).
PS, how do you get a code quote?
Could you run
which python
In HTML posts, use <code> blocks/usr/bin/python
python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
cd ~/Documents/Microsoft\ User\ Data/Word\ Script\ Menu\ Items/Zotero/
python MacWord.py addCitation
Traceback (most recent call last):
File "MacWord.py", line 45, in <module>
from appscript import *
ImportError: No module named appscript
@noksagt: I am running OS X 10.5.5 and the output of the call is
/Library/Python/2.5/site-packages
Thanks in advance for giving such prompt help!
appscript should ship with Leopard, but you should also be able to do:
sudo easy_install appscript
>python MacWord.py addCitation
Traceback (most recent call last):
File "MacWord.py", line 45, in <module>
from appscript import *
ImportError: No module named appscript
>
I use the intel mac book pro and latest word 2008 12.1.2.
/Library/Python/2.5/site-packages
The folder contains
appscript-0.18.1-py2.5-macosx-10.5-i386.egg
Thanks,
Dave.
Thanks so much.
Excellent work, it's really appreciated.
Regards,
Dave.
I ran the requested code in the terminal and got an error:
File "MacWord.py", line 94
'", "'.join(butt.replace('\\', '\\\\').replace('"', '\\"') for butt in buttons)+ \
^
SyntaxError: invalid syntax
'", "'.join(butt.replace('\\', '\\\\').replace('"', '\\"') for butt in buttons)+ \
to this:
'", "'.join([butt.replace('\\', '\\\\').replace('"', '\\"') for butt in buttons])+ \
Note the extra square brackets.
You would probably also have to run sudo easy_install appscript. We'll release a new version that includes the above fix and a version of appscript for Tiger shortly.
I made the adjustments to MacWord.py, and it gives me this error:
File "MacWord.py", line 1
1 #!/usr/bin/python
^
SyntaxError: invalid syntax
I tried to run to sudo easy_install appscript but I don't really know the directory where I need to do that.
Thanks for the help.
I tried
cd ~/Documents/Microsoft\ User\ Data/Word\ Script\ Menu\ Items/Zotero/
python MacWord.py addCitation
as suggested above. It seems to be working fine.
I have a simple question. Do I have to type in commands from terminal each time to use Zotero synd? If so, is there a list of commands that I can use? Or do you have a tool bar like in the previous version?
Microsoft doesn't currently expose any way for us to use toolbar icons in Word 2008.
Is the 'manuscript icon' an S-shaped icon on the menu bar?
All I see is 'about this menu (in Japanese)' after clicking on this.
Do I need to copy something to /Documents/Microsof User Data/Word Script Menu Items? Right now it is empty.
You have to move the Zotero folder from: HD>Word Script Menu Items>"Zotero" to: Documents>Données utilisateurs Microsoft>"Zotero"
Then it works.
I hope it's probably be fixed in a next version of the release for non-english user (it seems already done for Windows users).
Keep up the good work !
ImportError: No module named appscript
But when I try to
sudo easy_install appscript
the terminal answers
sudo: easy_install: command not found
What should I do?