| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Microsoft Word AppleScript syntax remains a very frustrating guessing job ... Take this simple script : set newPath to (choose file name) as Unicode text -- choose a file name and where you want to save it tell application "Microsoft Word" activate open file "anyDisk:anyFolder1:anyFolder2:myFile.doc" -- open any specified Word document anywhere save front document in newPath -- try to save it where you want, with the name you want close front window end tell The save command works fine as long as the newPath is anywhere on a partition of the system disk It does not work if newPath is on a partition of another disk, or on a network disk, with the standard message : "Microsoft Word got an error: document 1 doesn't understand the save message" The problem occurs with OS 10.3.9 and 10.4.1 Permissions appear to be correct. I even tried with read and write permissions for anybody (me, owner, group and others) all along the paths. What is the magic needed to make it work in all cases ? What is the correct syntax to name a document, and "save in ..." or "save as ..." this document anywhere we want ? Should it be done with a do VisualBasic command ? with which syntax ? How can Microsoft Word AppleScript usage be expanded, when it is impossible (or so difficult) to perform the most elementary of basics tasks : naming a document, and saving it where we want ? Any suggestion, solution or comments deeply appreciated. Jacques Ravanat PS : Thanks to Ray Robertson for initial progress on the subject, but I do think I am "bewitched" !... |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.