Re: Is this a major bug or not?
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