list to records
list to records
- Subject: list to records
- From: Joakim Jardenberg <email@hidden>
- Date: Thu, 25 Apr 2002 14:14:45 +0200
--> {
"A1:100",
"B1:200",
"C1:500",
"A3:B",
"B3:B",
"C3:B",
"D5:F",
"E1:H",
"E3:L",
"F1:G",
"F2:I",
"F3:L",
"H1:I",
"H2:H",
"H3:K",
"H4:M",
"G3:",
"G2:",
"G1:",
"I1:",
"I2:",
"I3:",
"E2:K"
}
Say I have a list like the one above. It looks very much like a
collection of records, don't you think? And records is exactly what I
want. What would be the easiest way to change this list into records so
I can look up 'H1 of myRecordsThatUsedToBeAList'. The origin is a file
that has the contents listed with one item on every row so I can create
my records directly from the file if that would be easier.
My file:
A1:100
B1:200
C1:500
A3:B
B3:B
C3:B
D5:F
E1:H
E3:L
F1:G
F2:I
F3:L
H1:I
H2:H
H3:K
H4:M
G3:
G2:
G1:
I1:
I2:
I3:
E2:K
/Jocke
-- Joakim Jardenberg
email@hidden - mer kontakt :
http://www.infinit.se/.sig
"Those who say that it cannot be done
should get out of the way of those who are doing it!"
_______________________________________________
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.