• Mac OS X Server,  Mass Deployment

    Troubleshooting Automounting with AppleScript

    Troubleshooting automounts can be a particular pain at times. Beyond verifying that you can manually mount a directory and that the automount shows up properly in the directory service, there is another little trick that I’ll occasionally do, which is to set an Applescript to load the mount point at some time during the login process (or more specifically at different times in order to further isolate). The quick and dirty script I use is: set MyVolume to “afp://username:password@my.server.com/mysharepoint” tell application “Finder”      activate      mount volume MyVolume end tell Obviously you’ll have a different volume name you wish to mount the share as and a different user,…

  • Mac OS X,  Mac OS X Server

    AppleScript and Paths

    When you’re using Applescript to script some events, you’ll need to use a path. For example, if you’re opening an application, you can use the launch application option. When you do so, you’ll need to swap out slashes (/) with colons (:). So, let’s look at Mail.app. The following command in bash would open Mail: open /Applications/Mail.app But to run in Applescript, use the following command: launch application ":Applications:TextEdit.app" or tell application ":Applications:TextEdit.app" to launch Enjoy