Microsoft Word - save syntax
Microsoft Word - save syntax
- Subject: Microsoft Word - save syntax
- From: "Ruby Madraswala" <email@hidden>
- Date: Wed, 11 Jun 2003 11:29:14 -0400
- Thread-topic: "move" in OS X
Hi
If anyone can give me the correct syntax to save a file in Microsoft Word as ms-dos text.
This script checks the hot folder, opens files in Microsoft word, save as MS-Dos text and closes the file.
Property hotfolder: "Macintosh HD:Final:"
Tell application "Finder"
Set flist to every file in folder hotfolder
Repeat with curfile in flist
Set dnm to curfile as string
Tell application "Microsoft Word"
Activate
Open file dnm
Save file dnm as dosText
(error message "The variable dosText is not defined"
Or
Do Visual Basic "activeDocument. SaveAs Filename:=dnm, FileFormat:=wdFormattoDOSText"
(error message "ambiguous name detected: TmpDDE)
Close ActiveDocument
End tell
End repeat
End tell
Thanks
Ruby
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.