This seems to work for me using script editor:
tell application "Finder" if (exists disk "Momentus_XT_750GB") then try tell application "ejectHDD" to activate end try else try do shell script "diskutil mountDisk 'disk0'" end try end if end tell
I used automator to make the ejectHDD app following this link