On Feb 20, 2014, at 18:52, Lee Hinde <[email protected]> wrote:
> I'd like to open an FTP/SFTP browser window bookmark with Applescript. 
> Recording the action doesn't do anything. And, while I see FTP browser window 
> in the scripting dictionary, I have no idea how to use it.
______________________________________________________________________

Hey Lee,

This stuff is not well documented in the manual (that I can find).

This works and produces a FTP Browser Window.  Unfortunately you cannot speak 
to the window once it's open.

-------------------------------------------------------------------------------------------

tell application "BBEdit"
        activate
        make new FTP browser window
end tell

-------------------------------------------------------------------------------------------

You would expect to be able to do something like this, but you can't.

-------------------------------------------------------------------------------------------

set theURL to "ftp://yourdomain.com";
set userName to "yourUserName"
set thePassword to "yourPassword"

tell application "BBEdit"
        activate
        make new FTP browser window with properties {server:"theURL", 
user:userName, password:thePassword}
end tell

-------------------------------------------------------------------------------------------

This is what actually works to open a FTP browser window to your desired 
location:

-------------------------------------------------------------------------------------------

tell application "BBEdit"
        open location "ftp://username:[email protected]:21/";
end tell

-------------------------------------------------------------------------------------------

You can do the same thing using the command line tool:

bbedit 'ftp://username:[email protected]:21/'

--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to