Re: Strange Word behaviour
Re: Strange Word behaviour
- Subject: Re: Strange Word behaviour
- From: David Crowe <email@hidden>
- Date: Wed, 20 Feb 2019 12:14:04 -0700
I’m pretty convinced that Word is messed up handling whose clauses (Word 2011
at least).
I now found a really strange behavior. I have files Test 1.docx, Test 2.docx
and Test 3.docx open. And I get this with “first document”:
tell application "Microsoft Word"
first document whose name contains "1" --> Test 2.docx
end tell
(same result with “whose name contains" “2” or “3")
And I get even stranger behavior with “every document”
tell application "Microsoft Word"
every document whose name contains "1" --> missing value
every document whose name contains "2" --> {document "test 2.docx"}
every document whose name contains "3" --> {document "test 3.docx",
document "Test 3.docx"}
end tell
So I think I’ll stick with “every document” (without a whose clause) and a loop!
- David Crowe
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________
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