• 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
Delimiting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Delimiting


  • Subject: Delimiting
  • From: Robert Poland <email@hidden>
  • Date: Sat, 3 Sep 2005 08:59:20 -0600

Hi,

I have a script that uses a <return> for delimiting. I use a repeat loop to extract data with two <return>s to separate blocks.
The problem I'm having is how to reinsert the <return>s between lines of recovered data within the block. In the example below the return is ignored.


set TheDescription to ""
repeat with i from 3 to {iCount}
set x to (myList's text item i)
if x = "" then exit repeat
if TheDescription = "" then
set TheDescription to x
else
set TheDescription to TheDescription & ". " & (return) & x
end if
end repeat
if TheDescription ‚ "" then set TheDescription to TheDescription & "."


Tia,
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Delimiting
      • From: "Gary (Lists)" <email@hidden>
    • Re: Delimiting
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: Determining if a scripting addition is installed
  • Next by Date: Re: Determining if a scripting addition is installed
  • Previous by thread: How can I tell when an app is bouncing on the Dock?
  • Next by thread: Re: Delimiting
  • Index(es):
    • Date
    • Thread