• 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: can't get terminology right
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't get terminology right


  • Subject: Re: can't get terminology right
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 24 Sep 2014 21:11:37 +1000

On 24 Sep 2014, at 7:49 pm, Brian Christmas <email@hidden> wrote:

set theVariedAttributedText to initWithAttributedString_(mainMessagesAttributedText's attributedSubstringFromRange_(theStartOfPlainTextParagraph as integer, theEndOfPlainTextParagraph as integer))

Where to start. From the front, an init- method is always an instance method, and it always follows alloc(). You seem to be trying to call it on nothing at all. What do you think that might do? 

But the whole bit before the first parenthesis is unnecessary anyway -- if you don't have an attributed string by then, that's not going to magically conjure one up. 

At the other end, you're trying to call a method with one underscore, and therefore requiring one parameter, but you're passing two. That's your real problem; the rest is just a case of "keep digging".

The second is I'm trying to retrieve the red, green, blue, alpha vales of an Attributed text character, without success.

set {red1, green1, blue1, alpha1} to itemForAttributes's myFontColor's getRed_green_blue_alpha_(red, green, blue, alpha)

The method says it returns void, and that's what you're getting.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: can't get terminology right
      • From: Brian Christmas <email@hidden>
References: 
 >can't get terminology right (From: Brian Christmas <email@hidden>)

  • Prev by Date: can't get terminology right
  • Next by Date: Re: can't get terminology right
  • Previous by thread: can't get terminology right
  • Next by thread: Re: can't get terminology right
  • Index(es):
    • Date
    • Thread