I wrote a workhorse of an ftp script that worked perfectly as an OS 9 folder action. Dropping JPGs into it uploaded to my site appropriately.
Problem is, new PB17" w/Panther 10.3 - I do NOT know how to set up or alter the original script to work in new OS - can anyone help me?!?
Here’s the original script:
on adding folder items to thisFolder after receiving fileList
set ftpURL to “ftp://username:password@yourwebsite.com/youruploadareahere/”
repeat with i in fileList
tell application “Finder” to set thisFileType to the file type of i
try
tell application “URL Access Scripting”
activate
if thisFileType is “TEXT” then
upload i to ftpURL replacing yes with progress and authentication
else
– delete the return between “binhexing” and “and” in the next line
upload i to ftpURL replacing yes with authentication without binhexing
end if
end tell
on error errMsg number errNum
display dialog (errNum as string) & ": " & errMsg
end try
end repeat
tell application “URL Access Scripting” to quit
end adding folder items to
Any thoughts?
Thank you in advance for any assistance you can give me,
Greg.