Eject External Hard drive with Automator

Discussion in 'Mac Basics and Help' started by caseyo, May 11, 2008.

  1. macrumors newbie

    Joined:
    Jan 8, 2008
    #1
    Hi. I'd like to create a simple Automator workflow that ejects an external hard drive when I run it. I found an "Eject Disk" action, but I'm not sure how to specify what to eject, or if that is even the right action. (Its probably just for CDs anyways?) There is also the eject iPod action, so something exactly like that except "Eject External Drive."

    Thank you!
     
  2. macrumors 6502a

    karenflower

    Joined:
    Dec 7, 2007
    #2
    One way of doing this is by putting 'Get Specified Finder Items' above 'Eject Disk', and adding the drive that you want to be ejected in the box. Then when it runs, it will look for what you've specified and do the action. :)
     
  3. macrumors 68000

    Joined:
    Jun 22, 2006
    #3
    I just set up my system to do this (to see if it's quicker than clicking/ejecting), but I don't know if there's a specified place to save the Automator script to. Should it be saved as a finder script in the Library/Scripts folder, or do Automator scripts have a specific place to be saved?

    Thanks for helping an automator newbie!
     
  4. macrumors 6502a

    karenflower

    Joined:
    Dec 7, 2007
    #4
    You can save it anywhere you want to. :) Whatever is most accessible for you. There's some more information on saving Automator workflows here.
     
  5. macrumors 68000

    Joined:
    Jun 22, 2006
    #5
    Thanks. I just ran it by clicking the workflow, but I realize I still have to hit "Run" after Automator opens. Is there a way to click the workflow and make automator run the workflow immediately after clicking it?
     
  6. macrumors 6502a

    karenflower

    Joined:
    Dec 7, 2007
    #6
    Yes. If you look on the link I gave, one of the options listed is to save it as an application.

     
  7. macrumors 68000

    Joined:
    Jun 22, 2006
    #7
    Cool. I didn't get that far with it all. I just bookmarked it! WIll look at it later tonight.

    Thanks again!
     
  8. macrumors 6502a

    karenflower

    Joined:
    Dec 7, 2007
    #8
    No problem. :)
     
  9. macrumors 68000

    Joined:
    Jun 22, 2006
    #9
    To revisit this thread, is there an easy way (besides disk utility) to mount an external HDD through automator or Applescript?
     

Share This Page