• 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: open location..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open location..


  • Subject: Re: open location..
  • From: David Crowe <email@hidden>
  • Date: Fri, 11 Jul 2003 13:42:48 -0600

Craig;

I would like the ftp site to be an extension of my file system, so that scripts I have written for the finder can be used.

The fact that I can <open location "ftp://ftp.apple.com";> and have a "disk" mounted on my desktop entitled "ftp.apple.com" ... and do just about everything that I would expect with the finder means that the Finder can handle ftp, but perhaps isn't very robust for the vagaries of ftp sites.

If there's a better way to access an ftp site in this way, I'm all ears, otherwise its "off to script (for fetch) I go".

- David


David,
I don't believe the Finder.app has ftp capabilities. These are a part of OS X. If you use the Go menu in the Finder to connect via ftp, this is a GUI to the inner working of OS X. If there is a connection to a ftp site, then the Finder shows that connection as an icon which is really a file management access tool. If I get it, the Finder.app is responsible for the Desktop and provides file management.

Can you tell more about why you have chosen the Finder to handle the ftp? Maybe there is a way to get to what you want by having a little more info.

The open location command is an event in the Standard Additions Scripting Addition- not in the Finder. You can find that in the Dictionaries. The Ifo for open location states:
**********************************************
open location: Opens a URL with the appropriate program (your favorite browser)
open location plain text -- the URL to open
[error reporting boolean] -- should error conditions be reported in a dialog?
**********************************************

There is that reference to 'your favorite browser', which is there for a reason.

The open command in Darwin/BSD accessible through the Terminal has a parameter '-a' that lets you specify an application to open the file or location. Without a specification, it defaults to TextEdit, which may be a part of the reason we're getting the Save window when we do some fiddling- the expectation is that TextEdit will open the designated path.

Why some locations can be logged onto successfully and some cannot may have to do with the ftp protocols at the ftp server site. I was able to log onto the site you are wanting to access with the Terminal and the ftp command but only after supplying anonymous as user and my email address as password. Perhaps the site has a more strict log-on requirement, i.e. it needs the email address as password. That would jive with the appearance of the window you get asking for a username and password.

Craig
On Friday, July 11, 2003, at 10:26 AM, David Crowe wrote:

Peter;

Thanks for the tip on "moreInternet". A valuable addition to my
System Preferences , for sure.

I did manage to make "Finder" my ftp helper
(System/Library/CoreServices/Finder.app).

However, open location still misbehaves just as badly, including:
No error message (and no action) if you give it a bad URL (e.g. if
you forget the "ftp://"; prefix).
No real action (beyond asking for a username and password) when you
give it an FTP URL that it doesn't like (e.g.
"ftp://ftp.tiaonline.org/";). It also requires the terminating slash
to know that this URL is a folder, otherwise it asks for a folder to
download it, and then downloads the folder as a file.
It works beautifully on "ftp://ftp.apple.com"; (surprise, surprise)
and probably some other FTP sites, but not very generally.
So, I guess it's back to using Fetch as my ftp helper, I guess.

- David Crowe
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: open location..
      • From: John Delacour <email@hidden>
References: 
 >Re: open location.. (From: Craig Sutherland <email@hidden>)

  • Prev by Date: Re: Do script in the same Terminal window
  • Next by Date: Re: Do script in the same Terminal window
  • Previous by thread: Re: open location..
  • Next by thread: Re: open location..
  • Index(es):
    • Date
    • Thread