Jump to content

URL Access Scripting and ports?!?


This topic is 7844 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

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

This topic is 7844 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.