Originally Posted by Neruda
Hey Lundy: Thank you for helping me with this and for taking your time to write this Applescript.
1. I ran the script with a test folder with two files and received the following error:
Microsoft Word got an error: Can't set top margin of section 1 of document 1 to 0.5.
Bummer. It works PERFECTLY on my machine, with Word X. I gave it a folder of about 20 files and it changed all the margins and put them in the output folder.
I forgot to mention that you have to make sure that Word is open but with no documents open before running the script. I do not have Word 2004, so there may be changes in the AppleScript syntax (I know there is between Excel X and Excel 2004).
Post your script and let me make sure it looks OK.
2. I tried running the scipt on the folder with all of the documents and received this error. Does it matter that the files are in subfolders? Should I specify the subfolders that the files are in?
Finder got an error: Can't get every file of folder "A.Law" of desktop.
Once again. Thanks.
Yeah - I did not write it to recurse on subfolders, since it is a one-shot deal. Just pile all the documents into one folder. The reason it is choking is that "every file" is choking when it sees a folder.
Again post your code so I can take a look. ALSO - if you have Word X for Mac, try that to see if there is some syntactical change.