• 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: Determine if a Word Document is New or Saved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine if a Word Document is New or Saved


  • Subject: Re: Determine if a Word Document is New or Saved
  • From: Stan Cleveland <email@hidden>
  • Date: Fri, 14 Dec 2007 12:17:36 -0800
  • Thread-topic: Determine if a Word Document is New or Saved

On 12/14/07 11:46 AM, email@hidden wrote:

> Is anybody familiar to a way to determine if a document in word is a new
> document (unsaved) or has been previously saved?  I have looked through the
> word suit, but I can't find a way to determine that.


Every Word document has a "saved" property that returns a boolean:

tell application "Microsoft Word"
    saved of document 1
    --> false
    saved of document "My.doc"
    --> true
end tell

HTH,
Stan C.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Determine if a Word Document is New or Saved (From: <email@hidden>)

  • Prev by Date: Re: Excel 2004
  • Next by Date: Re: Excel 2004
  • Previous by thread: Re: Determine if a Word Document is New or Saved
  • Next by thread: Re: Determine if a Word Document is New or Saved
  • Index(es):
    • Date
    • Thread