Thursday, 15 November 2007

My First Applescript

In Applications -> AppleScript folder there's the Script Editor. Open that up to write your AppleScript. My code was

tell application "Finder"
mount volume "smb://user:pass@server/share"
end tell

The above to to automount a samba share given username user and password password on a server server with share share!

Then use the file menu and save the script as an application. Then to execute just double click and hey presto, the share is mounted in /Volume/share!

No comments: