Automator Bug or System Bug or My Problem

Discussion in 'Apple' started by TaliesinSoft, Jun 10, 2007.

  1. TaliesinSoft

    TaliesinSoft Guest

    I'm running on a MacBook Pro with OS X 10.4.9 and am having problems with
    Automator scripts which mount and eject external drives.


    Here's a list of the drives:

    Cowboy - the internal drive.

    Sidekick - an external firewire 400 drive.

    Nightly Backup - an external firewire 800 drive with a single volume.

    Week-1 Backup, Week-3 Backup, and Sidekick Backup Odd - an external firewire
    800 drive with three volumes.

    Week-2 Backup, Week-4 Backup, and Sidekick Backup Even - an external firewire
    800 drive with three volumes.

    The single firewire 400 drive is connected to the firewire 400 port on the
    computer.

    The three firewire 800 drives are in a firewire 800 chain connected to the
    firewire 800 port on the computer.


    There are six accounts on the computer, one administrator account and six
    user accounts. Normally I am running from one of the user accounts.

    Normally I would like to have all of the firewire 800 drive volumes remain
    unmounted and the single firewire 400 drive mounted. The firewire 800 drives
    are all recipients of scheduled SuperDuper! backups and SuperDuper! has the
    ability to mount them at the beginning of a backup and to unmount them when
    the backup has completed.

    As things currently stand I have two Automator workflows, Mount External
    which mounts the firewire 800 volumes and Eject External which ejects the
    firewire 800 volumes. The mount script workflow uses an embedded AppleScript.
    The eject workflow uses the eject action built into Automator.

    The problem is that when the Eject External script is executed it ejects all
    of the external volumes, both firewire 400 and firewire 800. What can I do to
    keep the Eject External script from ejecting the firewire 400 volume.

    Any thoughts on how to address this problem will be appreciated.

    As an aside, a behavioral aspect of OS X which I've harped upon a number of
    times in these discussions is the automatic mounting of external drives when
    signing-on to an account.
     
    TaliesinSoft, Jun 10, 2007
    #1
    1. Advertisements

  2. TaliesinSoft

    J. Stewart Guest

    A thought :)

    Use diskutil's unmount or eject command from a shell script embedded in
    an automator action. This allows for control of individual disk drives.
    <x-man-page://diskutil>
     
    J. Stewart, Jun 10, 2007
    #2
    1. Advertisements

  3. TaliesinSoft

    TaliesinSoft Guest

    Take a big smile for that thought!

    I replaced the direct actions in Automator with an embedded AppleScript and
    now the unwanted ejectiion no longer occurs. Why? That at this time is a
    mystery!

    Many thanks!
     
    TaliesinSoft, Jun 10, 2007
    #3
  4. TaliesinSoft

    TaliesinSoft Guest


    Well, it appeared that things were now working as hoped but it turns out that
    is not quite true. Of the six user accounts the Automator workflow to eject
    volumes works on two, one administrator and one user, and "fails" on four,
    all user accounts. On those four a dialog box pops up each time a disk is to
    be ejected asking for the identity of an administrative account so that
    changes can be made to the Disk Utility.

    Time for yet again the rant......

    Why, oh why, does Apple not give one the option of stating which, if any,
    external drives/volumes are automatically mounted upon signing onto an
    account?
     
    TaliesinSoft, Jun 10, 2007
    #4
  5. TaliesinSoft

    TaliesinSoft Guest

    [in my immediately preceding posting in this thread]
    I was able to disable the startup Automator workflow, sign on to each of the
    "offending" accounts, open Disk Utility, eject each of the external volumes
    not wanted to remain mounted, re-open Disk Utility and mount them, and then,
    (phew!) sign off of that account. Then when a subsequent sign on to that
    account was made, after the Automator workflow was re-enabled, all worked as
    hoped for.

    So, as of now, when I sign on to any of my six accounts, one administrator,
    and five user, the external drives in the startup Automator workflow are
    indeed ejected.

    A somewhat downside is that the Automator workflow takes about 60 seconds to
    eject seven volumes. This is after a pause of 30 seconds, a pause necessary
    to give time for the volumes to mount so that they can then be unmounted.
     
    TaliesinSoft, Jun 10, 2007
    #5
  6. TaliesinSoft

    TaliesinSoft Guest

    And, here we go again......

    After shutting down and restarting it seems that the "Disk Utility changes"
    popup has returned.

    So, I've disabled the Automator workflow entirely and will, until Apple
    perhaps makes some changes, just eject the unwanted but mounted volumes
    directly from the Finder.
     
    TaliesinSoft, Jun 11, 2007
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.