Re: Scripting MS Word
Re: Scripting MS Word
- Subject: Re: Scripting MS Word
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 26 Mar 2001 13:11:52 -0800
On 3/26/01 1:06 PM, I wrote:
>
tell application "Microsoft Word"
>
activate
>
do Visual Basic "Dialogs(wdDialogFileSaveAs).Show"
>
set filePath to name of document 1
>
end tell
>
>
set theFile to alias filePath
>
set AppleScript's text item delimiters to {":"}
>
set fileName to text item -1 of filePath
>
set folderPath to ((text items 1 thru -2 of filePath) as string) & ":"
>
set AppleScript's text item delimiters to {""}
>
set theFolder to alias folderPath
>
end tell
Oops - omit that final 'end tell'. That snuck in there from a copy and paste
that included extra lines.
--
Paul Berkowitz