Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.3: Use 10.2's Connect to Server dialog via AppleScript Network
It is possible to get the old Jaguar-style Connect To Server... window in Panther via applescript. This script will present the old-style window:

 tell application "Finder"
   open location (choose URL showing File servers with editable URL)
 end tell

Load into Script Editor.

Not sure if this is useful, but it's interesting.

    •    
  • Currently 2.43 / 5
  You rated: 4 / 5 (7 votes cast)
 
[18,988 views]  

10.3: Use 10.2's Connect to Server dialog via AppleScript | 11 comments | Create New Account
Click here to return to the '10.3: Use 10.2's Connect to Server dialog via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Use 10.2's Connect to Server dialog via AppleScript
Authored by: gerardiki on Dec 10, '03 11:12:38AM

since i was used to the Jaguar style Connect dialog, that was definitely useful for me. in Panther, i've had to use the Finder.

but now that i have a means for comparison, i wonder which one is actually more intuitive and/or efficient. hrrrmmm.

---
***
"i was born to rock and built to last
you'll never see my feet cuz i move so fast"
***



[ Reply to This | # ]
10.3: Use 10.2's Connect to Server dialog via AppleScript
Authored by: mm2270 on Dec 10, '03 12:00:57PM

Well I for one find this very useful. I really don't care for what Apple did with the Connect dialog in Panther. Of course, with the old style dialog pulled up this way in Panther, you still need to click on "Local" if you want to connect to a local AFP server, as in my case. In Jag, this was chosen by default (the *) IIRC.

Still, I prefer the column view and having it all located in one window, rather than having to click on "Browse", which strangely just brings you to the Network Finder window to do a browse. No question for me which is more intuitive.



[ Reply to This | # ]
10.3: Use 10.2's Connect to Server dialog via AppleScript
Authored by: mm2270 on Dec 10, '03 12:03:58PM

Well, looks like I spoke too soon about praising this. Although it looks great, I get an error when choosing a fileserver to mount, stating "Can't make some data into the expected type" I'm no AppleScript guru so I don't even know where to begin with fixing the problem. Anyone have any ideas?



[ Reply to This | # ]
10.3: Use 10.2's Connect to Server dialog via AppleScript
Authored by: sjonke on Dec 10, '03 12:26:22PM

It looks like a bug in the "choose URL" command. It doesn't seem to work for anything in "Local". You'll note that when you select such a file server the URL does NOT show up in the URL field in the connect window. It should show up there. Servers listed under things other than Local do seem to work.

---
--- What?



[ Reply to This | # ]
Doesn't work with "Local" servers
Authored by: sjonke on Dec 10, '03 12:32:13PM

As discovered by mm2270, this doesn't work for any servers listed under "Local". It does work for other servers. The problem appears to be that such servers don't get their URL entered into the URL field when you click on them in the dialog and the command then doesn't return a URL (it returns an empty string "") for them. Being a bug, one can hope it will be fixed in some future system update....

---
--- What?



[ Reply to This | # ]
Doesn't work with "Local" servers
Authored by: mm2270 on Dec 10, '03 12:51:43PM

Thanks for the follow-up. I guess nothing can be done to correct this, but it's no biggie. I know the URL address of the servers I connect to, so I have them added in as favorites under the standard Panther Connect To... dialog now anyway, so I just keep using that.
I just thought this would be more intuitive for new Panther users at my office.



[ Reply to This | # ]
Tell app "Finder" isn't necessary
Authored by: sjonke on Dec 10, '03 12:44:06PM
Another followup. You don't actually need to tell the Finder to do this since open location and choose URL are part of "Standard Additions", so you can just say by itself (without a tell block):

  open location (choose URL showing File servers with editable URL)

---
--- What?

[ Reply to This | # ]

10.3: Use 10.2's Connect to Server dialog via AppleScript
Authored by: timcrawf on Dec 11, '03 04:11:58PM

This just begs asking. If applescript can find this dialog box. shouldn't there be a way to change a pref file or config file and get it from a menu or command-key?



[ Reply to This | # ]
10.3: Use 10.2's Connect to Server dialog via AppleScript
Authored by: mmkhorn on Feb 24, '04 01:55:25PM

This is fabulous, BUT how can I make appletalk zones appear?? That is the most important thing for me at least



[ Reply to This | # ]
10.3: Use 10.2's Connect to Server dialog via AppleScript
Authored by: silentaccord on Mar 08, '04 03:09:02AM

To see AppleTalk zones, open /Applications/Utilities/Directory Access and enable AppleTalk. I guess Apple decided to turn it off by default in Panther.



[ Reply to This | # ]
10.3: Use 10.2's Connect to Server dialog via AppleScript
Authored by: krdzine1 on Aug 27, '04 08:55:59PM

If i wanted to use the Connect to Server to upload files to an FTP server how would I format that. I've seen a couple for using Transmit but I keep getting an error about the "can't load local folder"



[ Reply to This | # ]