Please visit the new Mac-Forums Facebook page:
Join Us @ Mac-Forums Facebook Page

Results 1 to 2 of 2
  1. #1
    Automator and Apple script error handling
    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:

    do shell script "BDISK=`/usr/sbin/diskutil list | awk '$3==\"MyBook\" 
    {print $6}'`;/usr/sbin/diskutil mount $BDISK"

  2. #2
    Automator and Apple script error handling
    Slydude's Avatar
    Member Since
    Nov 16, 2009
    North Louisiana, USA
    Your Mac's Specs
    2.8 GHz 2008 MacBook Pro 10.11, 8 GB mem, iPhone XS, 2015 iMac 16 GB 10.14.4 beta
    Rep Power
    Can't help with that script but I might be able to fix the problem without using that script. Can you tell us a bit more about what the task accomplishes? I thought I had seen an action that solves this problem right away but it stops the workflow if the disk is not mounted
    “Hard work beats talent when talent fails to work hard.”
    Kevin Durant

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Automator Script Ideas
    By ipadsandmac in forum macOS - Apps and Games
    Replies: 0
    Last Post: 06-25-2013, 03:03 PM
  2. Automator script graphic watermark
    By pstreet in forum Images, Graphic Design, and Digital Photography
    Replies: 0
    Last Post: 04-28-2010, 12:00 PM
  3. Making a maintenance script to run in automator
    By Gdog in forum macOS - Operating System
    Replies: 0
    Last Post: 02-19-2010, 01:33 PM
  4. Automator -> Small script
    By HeroBiX in forum macOS - Development and Darwin
    Replies: 2
    Last Post: 12-04-2009, 04:05 AM
  5. Automator Script Help
    By borovy3488 in forum macOS - Apps and Games
    Replies: 1
    Last Post: 07-14-2008, 08:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts