Remove command in Fetch 3.0.3
Remove command in Fetch 3.0.3
- Subject: Remove command in Fetch 3.0.3
- From: email@hidden
- Date: Fri, 9 Feb 2001 10:35:22 -0600
I am writing a script using Fetch to download files from an FTP site, then
delete each file after it is done. I got the download part working fine, but
when the delete part comes up I get the error message:
"Fetch 3.0.3 got an error: Some parameter is missing for remove"
I can't figure out what parameter is missing. I am passing the same URL to
both the download and remove command.
Here is the script:
tell application "Fetch 3.0.3"
make new transfer window at beginning with properties
{hostname:"ftp.whatever.com", userid:"whatever", password:"whatever",
initial directory:"whatever"}
set transferWind to a reference to transfer window 1
set itemCount to count transferWind each remote item
repeat with itemIndex from 1 to itemCount
set curItem to (a reference to remote item itemIndex of
transferWind)
set itemPath to url of curItem
download remote item itemPath
remove remote item itemPath
end repeat
end tell
Any ideas?
Jim Scharosch
Mac System Administrator
Gazette Communications
319-368-8669
email@hidden