toshog Posted November 27, 2002 Share Posted November 27, 2002 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.. Link to comment Share on other sites More sharing options...
BobWeaver Posted November 28, 2002 Share Posted November 28, 2002 Can you do it manually with an FTP client program like Fetch? If not, you may have a firewall in the way. Link to comment Share on other sites More sharing options...
toshog Posted November 28, 2002 Author Share Posted November 28, 2002 it's not firewall... i upload with no problem with fetch.... Link to comment Share on other sites More sharing options...
toshog Posted November 28, 2002 Author Share Posted November 28, 2002 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.. Link to comment Share on other sites More sharing options...
IdealData Posted November 28, 2002 Share Posted November 28, 2002 How about posting the original "drop script". Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7947 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now