I believe the applescript requires you to create a result field.
Dim result as String

Result=mountremoteVol("projects","morse.local","ianpiper","password")

I also don't believe you want to compile it to be an App. Mine that work are
scpt files.

HTH
Stephen


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:realbasic-nug-
> [EMAIL PROTECTED] On Behalf Of Ian Piper
> Sent: Saturday, March 11, 2006 8:10 AM
> To: REALbasic NUG
> Subject: Help with AppleScript to connect network drives
> 
> Hi all,
> 
> I know this was running as a thread recently but I never got to the
> bottom of the issues, so thought I would ask again.
> 
> I want to use RB to give me a one-click connection of all of my
> network drives. Someone posted this snippet of AppleScript:
> 
> on run {v, w, x, y}
>       mount volume v on server w as user name x with password y
> end run
> 
> I wrote this in XCode, built it as an Application called
> mountRemoteVol.app and then dragged the application into the RB
> project window. It appears as a tree of folders and aliases under the
> title mountRemoteVol.app. I call it in a button Action thus:
> 
> Sub Action()
>       mountRemoteVol ("projects","morse.local","ianpiper","password")
> End Sub
> 
> When I run it I see an error message saying "This method requires
> fewer parameters than were passed."
> 
> Why? The AppleScript calls for four arguments, and I am passing four
> arguments in the RB code. With the exception of the password the code
> above is exactly what is in my app. Can anyone point me in the right
> direction to solve this conundrum?
> 
> Thanks for any help,
> 
> 
> Ian.
> --
> Dr Ian M Piper
> [EMAIL PROTECTED]
> skype: ianmpiper
> --
> Where is the wisdom we have lost in knowledge?
> Where is the knowledge we have lost in information?
> 
> 
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> 
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to