URL Access Scripting - directory listing

Has anyone been able to download a directory listing using URL Access Scripting?
Are there any other ways of doing it??

thanks

rhb


tell application "URL Access Scripting"
	set direcLis to download "ftp://user:password@yoururl/directory/" to file "Mac HD:Your Folder:some file name" with directory listing
	--result= a text file where you specified with the directory listing in it
	
	--funny, on a a side note - this launches classic for me, is it supposed to?
end tell

--another way to do it under OSX is to use CURL with do shell script  - this yields file names only
set yourURL to "ftp://user:password@yoururl/directory/"
set strCurl to ("curl -l " & yourURL as string)
set direcLis to do shell script strCurl

Good Luck!

Hi
the first way is exactly what I did, which doesn’t work for me
HOWEVER
the shell script is perfect and I wish I’d thought of it first :slight_smile:

thanks
great

rhb

Hi,

Yes, directory listing and I think there were a few other things that doesn’t work in OSX with url access scripting.

gl,