• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Remove command in Fetch 3.0.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Decimal Point Truncations?
  • Next by Date: Calling an application
  • Previous by thread: Re: ASCII questions (but not quark)
  • Next by thread: Re: Remove command in Fetch 3.0.3
  • Index(es):
    • Date
    • Thread