• 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: Brian Christmas <email@hidden>
  • Date: Wed, 24 Sep 2014 22:58:28 +1000

Shane, a big thank you is in order.

I had read up on Ranges on the Apple Developer pages this morning, and my interpretation of the document was range was <start of range-end of range>, not  <start of range-length>. A big mistake. Explored's page 208, which I had forgotten about, explains range much more succinctly.

As an ex-teacher, I find Apples approach to documentation regarding terminology very frustrating. They often don't give concrete examples, just above-average-intelligence explanations. 

Regards

Santa



On 24/09/2014, at 10:21 PM, Shane Stanley <email@hidden> wrote:

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

Why won't the last two lines work, please?

By the look of your variables, your ranges are wrong. The second value is the length of the range, not end offset. If you wrote them out as records as explained on page 208, you'd be less likely to make the mistake.

In the second case, the second parameter should be reference if you want the out value to be returned. And you have the same problem with ranges; don't be lazy, type out the records.

I've spent 7 blasted hours trying different permutations

A little less thrashing and a bit more reading might save you time in the long run. Just sayin'.

-- 
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: Shane Stanley <email@hidden>
    • Re: can't get terminology right
      • From: "John C. Welch" <email@hidden>
References: 
 >can't get terminology right (From: Brian Christmas <email@hidden>)
 >Re: can't get terminology right (From: Shane Stanley <email@hidden>)
 >Re: can't get terminology right (From: Brian Christmas <email@hidden>)
 >Re: can't get terminology right (From: Shane Stanley <email@hidden>)

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