Re: curl ... file listings...
Re: curl ... file listings...
- Subject: Re: curl ... file listings...
- From: Doug McNutt <email@hidden>
- Date: Mon, 24 Oct 2005 20:39:32 -0600
At 09:00 +0800 10/25/05, David Crowe wrote:
>There are some proponents of 'curl' to get URLs on this list. This seems like a great idea in combination with AppleScript, but I don't see how to get good file listings.
Listings, as in the presentations by Interarchy or Fetch, are not what the author of curl wants to do. His idea is that curl is a transmission machine. Analysis of the received data is up to you. That includes manual parsing of HTML documents.
In OS neXt Apple provides a Finder_Go_Connect to server menu item which allows an ftp URL and will display a Finder-like window of files and directories.. It's pretty good for reading data from the ftp site but it flat-out refuses to do an upload even if you have permission.
That's where curl comes in.
>But what if you want to get the dates and the type of the files (esp. directory versus file)? Is there any trick to this apart from some ad-hoc parsing routine.
Dates in UNIX file systems are not as full flavored as in Apple's HFS+. You'll get last modified but not creation dates.
>I did find a C program, ftpparse (http://cr.yp.to/ftpparse.html), but I was hoping for something that would be a bit easier.
You might well find a perl module for the purpose. Perl can call curl fairly easily. using backquotes.
--
-->The Creator is the God who provided the void and the rules that matter and energy must live by in order to exist in it. Intelligent designers and engineers create useful stuff while abiding by the rules.<--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden