• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How To Mount External Disks Using Automator.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

  1.             Paste the script into automator element "Run Applescript"
  2.            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

  • Prev by Date: [no subject]
  • Previous by thread: [no subject]
  • Index(es):
    • Date
    • Thread