Hi
Is it possible for me to get a program that uploads files to an FTP server?
For instance a choose file command and then just a simple upload commad!
Please help!
Guy
: Hi
: Is it possible for me to get a program that uploads files to an
: FTP server?
: For instance a choose file command and then just a simple upload
: commad!
: Please help!
: Guy
This scripts comes from AppleScript GuideBook :
(URL Access Striping : the Upload Command : )
-- an alias reference to the uploadable file
set this_file to choose file
-- the FTP URL of the receiving directory
set this_URL to "ftp://myftpserver.com/pub/"
try
-- try connecting for 5 minutes
with timeout of 300 seconds
tell application "URL Access Scripting"
upload this_file to this_URL with progress
quit
end tell
end timeout
on error the error_message number error_number
tell application "URL Access Scripting" to quit
if the error_number is not -128 then
tell application (path to frontmost application as text)
beep
display dialog the error_message buttons {"Cancel"} default button 1
end tell
end if
end try
Jean-Baptiste LE STANG