Your best friend for file transfer.

what happened to "exists"-command? (2 posts)
This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
- Started 22 years ago by holger hanstein
- Latest reply 22 years ago from Jim Matthews
-
holger hanstein Member
-
Jim Matthews Administrator
This appears to be a bug, but I haven't gotten to the bottom of what's going wrong. That statement certainly should work, and I will make sure it does in the next release.
In the meantime you should be able to do something like this:
try
make new remote directory at beginning with properties {name:"neuabbildungen"}
end tryThe command will fail if the directory already exists, but the error will be ignored.
Jim Matthews
Fetch Softworks
- Page 1
Topic closed
This topic has been closed.
i developped a facespan-project with fetch 4.0b7.
now, after buying the final version i get error -1723
"Fetch 4.0 got an error: Can't get remote directory "neuabbildungen" of transfer window 1. Access not allowed."
this script works fine with fetch 3.03 & 4.0b7, but doesn't with 4.0:
tell application "Fetch 4.0"
activate
tell transfer window 1
if (exists remote directory "neuabbildungen") = false then
make new remote directory at beginning with properties {name:"neuabbildungen"}
end if
end tell
end tell
- there is an open window
- there is a directory in it called "neuabbildungen"
is it a bug, or is there something wrong in my syntax?
thanks, holger
Posted 22 years ago #