Re: Checking for existence of file on remote server
Re: Checking for existence of file on remote server
- Subject: Re: Checking for existence of file on remote server
- From: Rob Jorgensen <email@hidden>
- Date: Wed, 12 Jun 2002 12:53:24 -0400
On 6/12/02, Danny Arsenault commented:
I'm trying to use Fetch 3.0.3 to check if images are where they should be on
our server. I have tried every variation I can think of with the following:
set x to (exists remote item
"ftp://login:email@hidden/images/image_name.jpg")
I even tried...
set x to (exists remote item
"http://www.ourdomain.com/images/image_name.jpg")
Do you have to have a Fetch window open to that directory? I tried that too
but no variation of the above would open the window (script error said I
have no access or it couldn't find that directory--I do have access b/c I
can Fetch manually just fine)
If you know how to do it in Fetch, that's great. Or maybe it can be done
with standard additions? (Just let me know if the latter is possible. I
can't tell if it is or not.)
If I recall correctly, Fetch has a command that will list the
contents of a remote directory. This might be saved to a variable and
then the script could look through the list based on your criteria.
--
Best regards,
Rob Jorgensen
Ohio, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.