Re: Strange Word behaviour
Re: Strange Word behaviour
- Subject: Re: Strange Word behaviour
- From: Jean-Christophe Helary <email@hidden>
- Date: Sun, 17 Feb 2019 09:12:35 +0900
> On Feb 17, 2019, at 8:24, David Crowe <email@hidden> wrote:
>
> Am I doing something wrong, or is Word (Word 2011) just broken?
>
>
>
> tell application "Microsoft Word"
> set x to name of first document whose name is "z"
> end tell
> x --> "Conference Planning Committee Call Agenda_02.15.19.docx”
>
> It seems to just be ignoring “whose name is “z””.
I tried to reproduce and what I get is that it seems to first take the first
document and then keeps returning that document even if you change the order.
When you add a document, and change the order, it still takes the first
document...
> A workaround with a loop is fairly straightforward, but if there is a way
> around it that’s more elegant, it would be nice.
>
> Maybe I should update Word once a decade, just because?
I work with the latest and I get the same behavior. :)
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
_______________________________________________
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