Tuesday, April 21, 2009

Connet to Server using Apple Script

tell application "Finder"
set desktop background color to {255, 123, 45}
try
mount volume "smb://10.176.162.31/Premedia"
mount volume "smb://10.176.162.31/SourceFiles"
mount volume "smb://10.176.162.37/FinalWorks"
end try
tell application "Firefox"
activate
Get URL "http://172.17.112.43/Premedia"
end tell

end tell

var myAppleScript = new File ("/Users/vanatrajan/Desktop/Test.scpt");

myAppleScript.execute();

tell application "Finder"
set desktop background color to {255, 123, 45}
end tell