tell application "Finder"
mount volume "smb://server/Automation"
mount volume "smb://server/Library"
Can anyone help on this request...
Thanks in Advance,
I don't think JS has such native capabilities. In my opinion you might have to keep using this applescript and write a similiar VBScript for WIN, if making this work on both platforms is the end game you desire.
just to add to Manan's reply:
You could execute AppleScript code with ExtendScript.
Sampel code with method doScript() :
var s = ''' tell application "Finder" mount volume "smb://server/Automation" mount volume "smb://server/Library" end tell '''; app.doScript( s , ScriptLanguage.APPLESCRIPT_LANGUAGE );
( ACP )