Dec 10, '03 09:55:00AM • Contributed by: sjonke
tell application "Finder" open location (choose URL showing File servers with editable URL) end tell
Not sure if this is useful, but it's interesting.
|
|
|
10.3: Use 10.2's Connect to Server dialog via AppleScript
Dec 10, '03 09:55:00AM • Contributed by: sjonke
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 Not sure if this is useful, but it's interesting.
•
[19,025 views]
Hint Options
10.3: Use 10.2's Connect to Server dialog via AppleScript
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.
10.3: Use 10.2's Connect to Server dialog via AppleScript
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.
10.3: Use 10.2's Connect to Server dialog via AppleScript
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?
10.3: Use 10.2's Connect to Server dialog via AppleScript
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.
Doesn't work with "Local" servers
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....
Doesn't work with "Local" servers
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.
Tell app "Finder" isn't necessary
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)
10.3: Use 10.2's Connect to Server dialog via AppleScript
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?
10.3: Use 10.2's Connect to Server dialog via AppleScript
This is fabulous, BUT how can I make appletalk zones appear?? That is the most important thing for me at least
10.3: Use 10.2's Connect to Server dialog via AppleScript
To see AppleTalk zones, open /Applications/Utilities/Directory Access and enable AppleTalk. I guess Apple decided to turn it off by default in Panther.
10.3: Use 10.2's Connect to Server dialog via AppleScript
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" |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.23 seconds |
|