Your best friend for file transfer.

Anarchie suite is broken (10 posts)
- Started 21 years ago by jlinde
- Latest reply 21 years ago from jlinde
-
jlinde Member
-
Jim Matthews Administrator
Thank you for the report. There are a number of things going on here.
I think the problem with the store and fetch Apple Events has to do with changes in AppleScript 1.7, which is part of Mac OS 9.2.2. I am investigating how to deal with those changes.
The error on
download remote file "filename" of transfer window "hostname"
is a Fetch bug that I will fix for Fetch 4.0.2. In the meantime you can work around it by leaving off the transfer window specifier, e.g.:
download remote file "filename"
If you want to specify where to download the file you can use the copy event:
copy remote file "filename" to beginning of alias "HD:path:"
Thanks again for the report,
Jim Matthews
Fetch Softworks -
jlinde Member
I don't think the bugs i reported are specifically related to 9.2.2 and AppleScript 1.7. I've heard from others that the error are there also in earlier OS versions, at least in 9.1.
I tested your tip to use copy, but I can't get it to work. I've tried
copy url "ftp://user:pwd@host/path/filename" to beginning of alias "Rubik:Dokument:"
and
open url "ftp://user:pwd@host/path/"
copy remote file "filename" to beginning of alias "Rubik:Dokument:"They both fail with an error "a descriptor type mismatch occured".
Johan
-
jlinde Member
I don't think the bugs i reported are specifically related to 9.2.2 and AppleScript 1.7. I've heard from others that the error are there also in earlier OS versions, at least in 9.1.
I tested your tip to use copy, but I can't get it to work. I've tried
copy url "ftp://user :pwd@host/path/filename" to beginning of alias "Rubik :Dokument:"
and
open url "ftp://user :pwd@host/path/"
copy remote file "filename" to beginning of alias "Rubik :Dokument:"They both fail with an error "a descriptor type mismatch occured".
Johan
[This message has been edited by JimMatthews (edited 01-01-2002).]
-
Jim Matthews Administrator
This script:
tell application "Fetch 4.0.1"
open url "ftp://ftp.fetchsoftworks.com/example"
copy remote file "fetchicon.gif" to beginning of alias "Testing:"
end tellworks for me on Mac OS 9.1. I will install 9.2.2 and test that. Could you try it on your system and let me know what happens?
Thanks,
Jim Matthews
Fetch Softworks -
jlinde Member
I get the same error message as before, "a descriptor type mismatch occured", when it is about to make the copying.
Johan
-
Jim Matthews Administrator
How about this variation:
tell application "Fetch 4.0.1"
open url "ftp://ftp.fetchsoftworks.com/example"
copy remote file "fetchicon.gif" to beginning of ("Testing:" as alias)
end tellThanks,
Jim Matthews
Fetch Softworks -
jlinde Member
Same error. Sorry!
Johan
-
Jim Matthews Administrator
I've done some testing with AppleScript 1.7 (which comes with OS 9.2.2) and I think there's a workaround. Try replacing file references of the form:
alias "hd :path:file"
with references of this form:
alias ("hd :path:file" as text)
Does that work for you?
Thanks,
Jim Matthews
Fetch Softworks[This message has been edited by JimMatthews (edited 01-01-2002).]
-
jlinde Member
It works! It seems I now can make Alpha and Fetch 4 work together.
Cheers,
Johan
- Page 1
Topic closed
This topic has been closed.
Hi,
I'm one of the developers writing Tcl code for the text editor Alpha. We have got some user reports saying that Alpha's ftp menu doesn't work with Fetch 4. After some testing I've found that the reason is that both "fetch" and "store" are broken is the Anarchie suite.
This simply AppleScript fails.
tell application "Fetch 4.0.1"
fetch "path:to:folder:" as alias host "hostname" path "path/to/file" user "username" password "pwd"
end tell
In the transcript window error messages like
fspec_to_dirid = -43, fspec = 0, 1290799123, 0
fspec_to_dirid = -35, fspec = 1, 89290082, 105
appear. The script works in Fetch 3.0.3 and 4.0b6.
This script also fails.
tell application "Fetch 4.0.1"
store "path:to:file" as alias host "hostname" path "path/to/file" user "username" password "pwd"
end tell
No error message is displayed in the transcript window, but an alert appears which says "a file was not found". This script also works in Fetch 3.0.3 and 4.0b6.
I've tried to rewrite Alpha's ftp menu, by using the Fetch suite, but it fails because the "download" command doesn't allow me to specify where to download the file. While I worked with this I found another scripting bug. This script fails.
tell application "Fetch 4.0.1"
open url "ftp://user:pwd@hostname/"
download remote file "filename" of transfer window "hostname"
end tell
There is an error message saying
"Can't get remote file "filename" of transfer window "hostname".
This script also works in Fetch 3.0.3 and 4.0b6. Something really bad must have happened to scripting when Fecth left the beta stage....
All these tests have been made with Mac OS 9.2.2.
Johan
Posted 21 years ago #