• 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: tab delimiter problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tab delimiter problem


  • Subject: Re: tab delimiter problem
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 06 Aug 2011 16:46:44 +1000
  • Thread-topic: tab delimiter problem

On 6/8/11 3:53 PM, "Brian Christmas" <email@hidden> wrote:

> Is there something wrong under 4.1 and lion?

I don't think so.

>              set theEntries to paragraphs of (read theFiletemp as text)
>             set oldDelims to AppleScript's text item delimiters
>             set AppleScript's text item delimiters to {tab}
>         repeat with  anEntry  in theEntries
>             say count of theEntries
>             say count of anEntry

That last line is always going to count the number of characters in anEntry.
Perhaps you mean "count of text items of anEntry".

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <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: tab delimiter problem
      • From: Brian Christmas <email@hidden>
References: 
 >tab delimiter problem (From: Brian Christmas <email@hidden>)

  • Prev by Date: tab delimiter problem
  • Next by Date: Re: tab delimiter problem
  • Previous by thread: tab delimiter problem
  • Next by thread: Re: tab delimiter problem
  • Index(es):
    • Date
    • Thread