• 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: Strange Word behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Strange Word behaviour
      • From: Shane Stanley <email@hidden>
References: 
 >Strange Word behaviour (From: David Crowe <email@hidden>)

  • Prev by Date: Strange Word behaviour
  • Next by Date: Re: Strange Word behaviour
  • Previous by thread: Strange Word behaviour
  • Next by thread: Re: Strange Word behaviour
  • Index(es):
    • Date
    • Thread