• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Microsoft Word 2004 - Saving a document in a specified folder on a 2nd local disk or on a remote disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Microsoft Word 2004 - Saving a document in a specified folder on a 2nd local disk or on a remote disk


  • Subject: Microsoft Word 2004 - Saving a document in a specified folder on a 2nd local disk or on a remote disk
  • From: Jacques Ravanat <email@hidden>
  • Date: Wed, 29 Jun 2005 00:52:28 +0200

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Microsoft Word 2004 - Saving a document in a specified folder on a 2nd local disk or on a remote disk
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: path to as string
  • Next by Date: Re: Microsoft Word 2004 - Saving a document in a specified folder on a 2nd local disk or on a remote disk
  • Previous by thread: Re: Path to User Icon
  • Next by thread: Re: Microsoft Word 2004 - Saving a document in a specified folder on a 2nd local disk or on a remote disk
  • Index(es):
    • Date
    • Thread