<no subject>
<no subject>
- Subject: <no subject>
- From: Rich Carroll <email@hidden>
- Date: Tue, 13 Aug 2002 15:00:37 -0500
Hello hive mind,
I am trying to generate some XML dynamically for a tab delimited file. My
problem is in coercing a list of lists.
This is what I got so far:
tell application "Finder"
set testText to alias "OS
X:Users:carrollr:Documents:work:Supplied081202:Copy2.txt"
read testText using delimiter return as text
set testTextGraph to result as list
(*This returns a list of 71 items formatted correctly including the tab
stops I use below*)
set singleGraph to item 1 of testTextGraph as list
(*Here's where the problem starts. I want the 6 itmes inside this item, but
what I get is a single item*)
set AppleScript's text item delimiters to {" "}
set singleGraph to every item in singleGraph as text
(*After I set the delimiter to a tab, I should be able to get the items I
need. Instead I get individual characters. ARRRGH*)
set headline to item 1 of singleGraph
set jobTitle to item 2 of singleGraph
set bodyCopy to item 3 of singleGraph
set bullet1 to item 4 of singleGraph
set bullet2 to item 5 of singleGraph
try
set bullet3 to item 6 of i
set bullet4 to item 7 of i
end try
end tell
My text file is tab delimited inside each record, with returns signaling the
next record.
Ex.
DO ALL THOSE BUSINESS DETAILS FEEL LIKE PULLING TEETH? JOB TITLE
Concentrate on doing what you do best without worrying about start-up costs.
Join the Health Care Team. You'll have an established patient base, and you
could be eligible to receive a $30,000 bonus. Call 800-xxx-xxxx to speak to
an Health Care Recruiter or log on to www.healthcare.com/xxx/xx today.
$30,000 bonus 30 days of paid vacation earned annually
Any help the collective mind can add will be appreciated.
--
Richard McCormick-Carroll
Application Specialist
Capps Digital Development Group
email@hidden
312.220.1679 @ Desk
312.520.1679 @ Cell
www.cappsdigital.com
_______________________________________________
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.