• 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
Re: Fetch problem...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetch problem...


  • Subject: Re: Fetch problem...
  • From: Bill Briggs <email@hidden>
  • Date: Sun, 19 Mar 2006 18:10:01 -0400

At 2:13 PM -0700 3/19/06, David Crowe wrote:
>When I script "Fetch" with the "put into anyURL item anyFile" it does not work if Fetch doesn't have a window open.
>
>I get the error "FTP connection to "ftp.myurl.com" could not be opened because the server rejected the password. (Contact the server administrator to verify that you have the correct hostname, username, password, and authentication method.)"
>
>If I go to Fetch and manually open a window to that domain it then works without any problem.
>
>I don't see any command in Fetch to merely open a connection to a server, and the descriptions of the "put into" scripting statement imply that you don't need this.
>
>Any Fetch scripting experts out there?

 You can't put stuff where you don't have an existing connection. And you can't get a connection without offering the required bits of information. So the error message is reasonable. You can make a new transfer window this way (you have to define the variables for the_host, the_user, the_pwd, and the init_path).

tell application "Fetch"
make new transfer window at beginning with properties {hostname:the_host, username:the_user, password:the_pwd, initial folder:init_path}
end tell

- web
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Fetch problem...
      • From: Michelle Steiner <email@hidden>
References: 
 >Fetch problem... (From: David Crowe <email@hidden>)

  • Prev by Date: Fetch problem...
  • Next by Date: Re: Listen For command and Escape key
  • Previous by thread: Fetch problem...
  • Next by thread: Re: Fetch problem...
  • Index(es):
    • Date
    • Thread