• 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: Is this a major bug or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this a major bug or not?


  • Subject: Re: Is this a major bug or not?
  • From: "Nigel Garvey" <email@hidden>
  • Date: Fri, 29 May 2009 22:56:54 +0100

Deivy Marck Petrescu wrote on Fri, 29 May 2009 10:27:04 -0400:

>I was writing some scripts for TextEdit and came upon this which I
>find a problem
>
>Trying this script (one line):
>
>tell application "TextEdit" to tell document 1 to tell its text to
>return properties of attribute run of word 1
>
>I get this:
>-->{{class:text, color:{0, 0, 0}, size:14.0, font:"Verdana-Bold"}}
>
>Notice that this is a list not a record.

Hi, Deivy. Attribute runs are _elements_ of text, not properties. The
list is to contain the properties of _every_ attribute run of word 1.
Since there's only one such run, there's only one record in the list. The
bug seems to be that 'attribute run of word 1' compiles and doesn't error
when executed.

  tell application "TextEdit" to tell document 1 to tell its text to
return properties of attribute run 1 of word 1

NG

 _______________________________________________
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: Is this a major bug or not?
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: Re: Combine multiple PDFs
  • Next by Date: Re: AppleScript-Users Digest, Vol 6, Issue 241
  • Previous by thread: Re: Is this a major bug or not?
  • Next by thread: Re: Is this a major bug or not?
  • Index(es):
    • Date
    • Thread