Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Need an easy AppleScript please...

Need an easy AppleScript please...
Thread Tools
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status: Offline
Reply With Quote
Aug 2, 2004, 07:47 AM
 
If anybody is willing to help me out I'd really appreciate it...all I'm wanting is a simple AppleScript that that will tell the Finder to open the "Connect to Server" box (Command+K) shortcut...

Thanks in advance!
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Aug 2, 2004, 07:52 AM
 
Here's two:

This one does what you asked for:
[php]
tell app "Finder" to activate
tell application "System Events"
keystroke "k" using {command down}
end tell
[/php]

This one brings up the old Jaguar connect to server dialog:

[php]
open location (choose URL showing File servers with editable URL)
[/php]

[edit] - grrr. I forgot that The Board mangles long AppleScript URLs
(Last edited by Diggory Laycock; Aug 2, 2004 at 07:57 AM. )
     
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status: Offline
Reply With Quote
Aug 2, 2004, 07:54 AM
 
Thanks Diggory Laycock...you rock!

     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:57 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2