• 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 13:07:49 -0800
  • Thread-topic: Determine if a Word Document is New or Saved

On 12/14/07 12:59 PM, email@hidden wrote:

> 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.
>>
> Thanks for the info on the "saved" state.  This is close to what I need, but
> the issue is finding out if the document has ever been saved (i.e. open a new
> document, its named document1.  It has never been saved.  It seems "saved"
> will just tell you if there has been a change since the last time the document
> was saved.
>
> Any ideas on how I can get closer?


Taking a cue from Michelle's suggestion, a never-saved document has no data
in its "path" property. (It does, actually, but only null string.)

tell application "Microsoft Word"
    path of document 1
    --> ""
    path of document "My.doc"
    --> "MacOS:Users:stanc:Desktop"
end tell

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

  • Follow-Ups:
    • Re: Determine if a Word Document is New or Saved
      • From: <email@hidden>
References: 
 >Re: Determine if a Word Document is New or Saved (From: <email@hidden>)

  • Prev by Date: Re: Determine if a Word Document is New or Saved
  • Next by Date: Re: Determine if a Word Document is New or Saved
  • 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