• 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: Michelle Steiner <email@hidden>
  • Date: Fri, 14 Dec 2007 12:50:56 -0700

On Dec 14, 2007, at 12:46 PM, <email@hidden> <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.

try this:

tell application "Microsoft Word"
set currDoc to name of the first window
end

if exists alias currDoc then
--document had been saved
else
--document had not been saved
end if

(* however, if Word had saved another document with the same name, this script will give a false positive *)

(* I don't have Word, so I'm not able to test this script to see whether it actually works *)

-- Michelle

--
Are you better off today than you were on Jan 20th, 2001?

_______________________________________________
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: Determine if a Word Document is New or Saved
  • Next by Date: Re: Excel 2004
  • Previous by thread: 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