Hello guys,
I hope you can help me with this.
With Automator I made a task to start a program and after that run a applescript to mount my external hard drive. (don't know anything about scripting, found it on the web)
The task works perfectly when the external hdd can be mounted, but when it's already mounted the task won't close and I have to do a forced quit.
I think there must be something added to the script that it will quit or not run when the hdd is already mounted.
This is the script i'm using:
I hope you can help me with this.
With Automator I made a task to start a program and after that run a applescript to mount my external hard drive. (don't know anything about scripting, found it on the web)
The task works perfectly when the external hdd can be mounted, but when it's already mounted the task won't close and I have to do a forced quit.
I think there must be something added to the script that it will quit or not run when the hdd is already mounted.
This is the script i'm using:
Code:
do shell script "BDISK=`/usr/sbin/diskutil list | awk '$3==\"MyBook\"
{print $6}'`;/usr/sbin/diskutil mount $BDISK"