List coersion troubles
List coersion troubles
- Subject: List coersion troubles
- From: "John Tuttle" <email@hidden>
- Date: Wed, 5 Mar 2003 16:40:08 -0600
I'm trying to grab a comma delimited string from a FileMaker Pro field
and then turn it into a list which will then be placed into another
database record by record.
Script example:
for reference list_cell = "A,B,C"
set old_delim to AppleScript's text item delimiters
set AppleScript's text item delimiters to {","}
tell application "FileMaker Pro"
tell database 1
set mylist to cell "list_cell" of current record as list
end tell
go to database 2
tell database 1
repeat with some_item in {mylist}
create new record
set cell "item" of last record to some_item as string
end repeat
end tell
end tell
set AppleScript's text item delimiters to old_delim
The above does not create a list of 3 items (item 1: "A", Item 2: "B",
Item 3: "C") from the list_cell contents as I would like but a list of
one item holding the entire string from list_contents "A,B,C"
Any ideas?
--
John Tuttle
_______________________________________________
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.