Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7523979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:57:29+00:00 2026-05-30T02:57:29+00:00

I have the following script (modified to remove any private information). — This line

  • 0

I have the following script (modified to remove any private information).

-- This line is for testing.
set the clipboard to "1234567890"

set loginName to "username"
-- Password is stored in KeyChain (you need to do manually). 

-- Create Remote path
set folderNumber to the clipboard as string
set subdir1 to character 1 of folderNumber
set subdir2 to character 2 of folderNumber

set remotePath to "/files/" & subdir1 & "/" & subdir2 & "/" & folderNumber

-- Create Local path
set homeFolder to (path to home folder) as string
set localPath to homeFolder & "LOCALSTORAGE" as string
set localStorage to localPath & ":" & folderNumber & ":" as string

-- Create Local file
tell application "Finder"
    try
        make new folder at localPath with properties {name:folderNumber}
    on error e number n
        -- Do nothing.  
    end try
end tell

-- Connect to FTP
tell application "Fetch"
    activate
    set tWindow to make new transfer window at beginning with properties {hostname:"ftpServerAddress", username:loginName, initial folder:remotePath}

    tell window tWindow
        download every remote item to beginning of alias localStorage
        close window
    end tell

    quit
end tell

-- Open folder
tell application "Finder"
    open localStorage
end tell

When I run the script the following line fails.

download every remote item to beginning of alias localStorage

The error I get is as follows:

error “Fetch got an error: Can’t get every remote item of window (transfer window id 232280960).” number -1728 from every remote item of window (transfer window id 232280960)

Does anyone know what the error means or how to fix it? I’ve tried the Fetch website without much luck. “Fetch” btw is the Fetch FTP client.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:57:31+00:00Added an answer on May 30, 2026 at 2:57 am

    First you should check that the remotePath that you’re generating really exists (e.g. by adding a log statement such as log tWindow's remote items and looking up in the Script Editor’s event log whether it was able to get those).

    If the path is correct, I think the problem is that you’re using the download command with a reference to a list object (every remote item...). In the documentation, the command expects a specifier of a single item:

    download specifier : the remote file, remote folder, shortcut, or url to download

    That’s why you need to loop through the items. The snippet below works perfectly for me:

    -- my settings for testing
    set theHost to "ftp.fetchsoftworks.com"
    set loginName to "anonymous"
    set remotePath to "/example/"
    set localStorage to ((path to home folder) as text) & "LOCALSTORAGE:1234567890:"
    
    -- Connect to FTP
    tell application "Fetch"
        activate
        set tWindow to make new transfer window at beginning with properties {hostname:theHost, username:loginName, initial folder:remotePath}
        set localStorage to (localStorage as alias)
        repeat with theItem in tWindow's remote items
            try
                download theItem to localStorage
            end try
        end repeat
    
        close tWindow
        quit
    end tell
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following script 186.py: S=[] study=set([524287]) tmax=10**7 D={} DF={} dudcount=0 callcount=0 def
I have the following script. It replaces all instances of @lookFor with @replaceWith in
I have the following script, where the first and third document.writeline are static and
i have the following script import getopt, sys opts, args = getopt.getopt(sys.argv[1:], h:s) for
I have the following script which first shows only the first para of the
I have the following script: Timer=0; function countdown(auctionid){ var auctions; var divs; Timer=Timer+1; if((Timer%10==0)||(Timer==1)){
I have the following script which appears multiple times on my page. I have
I have the following script select c.id from .TBL_COUPONS. as c inner join .TBL_BUSINESS.
I have the following script that works well in Firefox and Chrome (not sure
I have the following script, which is working for the most part Link to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.