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 > Developer Center > Applescript Question

Applescript Question
Thread Tools
Dedicated MacNNer
Join Date: Jan 2001
Location: where?
Status: Offline
Reply With Quote
Oct 3, 2001, 12:38 PM
 
In OS 10.1, how do I tell an applescript script to connect to a SMB server?

Explaination:
Under OS 9.2.1, I used Dave 2.5.2 which was applescriptable. I could simply record that I was connecting to an Windows NT server.

I could then place a completed script in the startup items folder. At startup the script would launch Dave. The script would then run the connect to server process, put a nice little mounted drive icon on the desktop and then quit.

Any help would be truly wonderful.
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Oct 3, 2001, 09:41 PM
 
Originally posted by --Helen--:
<STRONG>In OS 10.1, how do I tell an applescript script to connect to a SMB server?

</STRONG>
I haven't tried this, but I'd guess at something like:

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
tell application <font color = red>"Finder.app"</font>
mount "smb:<font color = brown>//username assword@server/share_name</font>
end tell
</font>[/code]

Since the Finder can talk SMB it should be able to access it directly.

In addition, you should be able to omit the username assword combo and rely on your keychain to provide the password at the appropriate time.
Gods don't kill people - people with Gods kill people.
     
   
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 01:17 PM.
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