only 1 item in table view

ok so, i have curl get the contents of a folder on my site using ftp, i did a display dialog of what it gets and it gets everything in the folder, but when i put it in the table view, only the first item of the folder goes into the table view. any ideas?

thanks.

You will need to post your table view code for the best assistance.

property ftpserver : "[url=ftp://ftp.fiftyfour123.hostfreeweb.info/public_html/gum/]ftp.fiftyfour123.hostfreeweb.info/public_html/gum/[/url]"
property user_name : "fiftyinn"
property pass_word : "*****"

	set gum to do shell script "curl -l " & ftpserver & " -u " & user_name & ":" & pass_word
	set content of table view "gum" of scroll view "gum" of window "Gum" to {gum}

The shell command returns a single giant string, not an array of objects. Have you worked through the “Table” example?

/Developer/Examples/AppleScript Studio/Table

Also:

http://macscripter.net/articles/451_0_10_0_C/

iv used this way of adding data to tables before and its worked. is it because the shell script isnt returning a list? how would i make it do that?

You can make a list from a string by specifying a custom “delimiter” for AppleScript and then asking AppleScript to break up the text for you using:

set theList to {}
set oldD to AppleScript's text item delimiters
set AppleScript's text item delimiters to " "
set theList to the text items of theString
set AppleScript's text item delimiters to oldD

This will turn a single string named theString with N values separated by a single blank space into a list (array) of the values in theList. One caveat is that you must always reset the text item delimiters back to the default value (the second and last lines above) or you will get weird behaviors in text parsing later on.

Model: iMac Core Duo 17"
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

Heres a working example:

set theList to {}
set thestring to "One Two Three Four Five Six Seven"
set oldD to AppleScript's text item delimiters
set AppleScript's text item delimiters to " "
set theList to the text items of thestring
set AppleScript's text item delimiters to oldD
return theList

Model: iMac Core Duo 17"
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

I’m not sure what your text looks like, but this might work:

do shell script "/usr/bin/curl" -- whatever you're using
set something to paragraphs of result

nice! Bruce yours worked. thanks guys.