URL access
URL access
- Subject: URL access
- From: Scott Haneda <email@hidden>
- Date: Fri, 30 May 2003 17:52:29 -0700
Working on OS 9, trying to do something rather simple...
I need to take a nightly dump from some software and upload the files to a
ftp server. Script below works fine, however, there are some empty files in
the export, and Url access chokes on that. Is there some way to work around
this, -30783 File Empty is the error I get, the second it hits that file.
For some reason the files need to be there, I don9t know why. If url access
just behaves this way, how can I clean recursively the many directories in
the export folder, find all 0 byte files, and add a space to them or
something. I really don9t want to do it this way, any ftp app can upload
empty files.
set ftpURL to "
ftp://user:email@hidden/"
set exportedFile to "junk:calendars"
try
with timeout of 86400 seconds
tell application "URL Access Scripting"
activate
upload exportedFile to ftpURL replacing yes with progress and
authentication
end tell
end timeout
on error errMsg number errNum
display dialog (errNum as string) & ": " & errMsg
end try
tell application "URL Access Scripting" to quit
-------------------------------------------------------------
Scott Haneda Tel: 415.898.2602
http://www.newgeo.com Fax: 313.557.5052
email@hidden Novato, CA U.S.A.
_______________________________________________
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.