November 27, 200223 yr hi, i sent this to the applescript-users mailing list but they are busy... so i was hoping some body has a little experience in this and can advise... i have a slight problem here using the URL Access Scripting ability to upload files via ftp. i tried a few times to upload a file to a machine that has a non standard ftp port - not 21. when i tried to upload file to a different machine that has a standart ftp port listening - no problem. i really need to upload the file to the non standard port machine. can i or not with URL Access Scripting?!? (i alreday tried ftp://un:[email protected]:port - it times out) if i can not (WHY?) - is there an easier way instead of writing a script for fetch. this is for a client that is still on OS 9.2... any idea appreciated.... thanks..
November 28, 200223 yr Can you do it manually with an FTP client program like Fetch? If not, you may have a firewall in the way.
November 28, 200223 yr Author ok. i started doing a script for fetch... can somebody please explain why this script isn't working?! set the_file to "Path:to:textfile.txt" set gDesturl to "ftp://user:pass@host:port" with timeout of 60000 seconds tell application "Fetch 4.0" put into url gDesturl item the_file -- quit end tell end timeout in the Fetch folder there is a drop script. if you drop a file over it it works. i copied this from that one. it seams the problem is the definition of the file variable but i don't get why.... the error i get when i try to run this script is: Fetch 4.0 got an error: a descriptor type mismatch occurred. according to the AppleScript dictionary for Fetch 4.0 there isn't anything wrong with this syntax... thanks..
Create an account or sign in to comment