Re: Determine if a Word Document is New or Saved
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