• 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
Re: Scripting MS Word
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Scripting MS Word (From: Giles Rowland <email@hidden>)

  • Prev by Date: Re: Why does posting messages take so long?
  • Next by Date: Re: Delay, or pause
  • Previous by thread: Re: Scripting MS Word
  • Next by thread: Re: Scripting MS Word
  • Index(es):
    • Date
    • Thread