How To Mount External Disks Using Automator.
How To Mount External Disks Using Automator.
- Subject: How To Mount External Disks Using Automator.
- From: rbullen <email@hidden>
- Date: Mon, 23 Sep 2013 18:42:06 +0000 (UTC)
I want to write an automator service to mount and unmount external disks, on USB.
I could not see any way to accomplish this directly in Automator and any suggestions would be much appreciated.
However, I found the following applescript does the job:
do shell script "diskutil mount /dev/disk4s10"
Next I wanted to use this applescript in automator - it seems there are two approaches:
- Paste the script into automator element "Run Applescript"
- Call the file using the following approach:
on run {input, parameters}
run script file "Macintosh HD:Users/username/Documents/Scripts and Automator/mountdrive.scpt"
end run
However, this produces a syntax error thus:
"Can’t make some data into the expected type."
Any suggestions as to the source of the problem would be much appreciated.
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden