• 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: Xpress offset of tab giving an unexpected result.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xpress offset of tab giving an unexpected result.


  • Subject: Re: Xpress offset of tab giving an unexpected result.
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 08 May 2002 21:00:34 +1000

On 8/5/02 8:40 PM +1000, email@hidden, email@hidden,
wrote:

> I have a text box in Xpress. It contains (for example):
>
> abcd<tab>abcd<tab>abcd<tab>abcd<return>
>
> set bnTab to (offset of every character where it is "\t") as list
>
> In the above example, this returns {{0},{4},{9},{14},{19}}
>
> Which is wrong, to me, in three ways
>
> 1. Item 0 doesn't exist

Quark works on the basis that character 1 has an offset of 0 from the start
of the story.

> 2. It's a list of lists

Remove your redundant as list (you'll then have to check the class to make
sure it's a list, and coerce it then of necessary.)

> 3. It's a character out.

See ablve.

--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Xpress offset of tab giving an unexpected result.
  • Next by Date: Curious icons
  • Previous by thread: Xpress offset of tab giving an unexpected result.
  • Next by thread: Re: Xpress offset of tab giving an unexpected result.
  • Index(es):
    • Date
    • Thread