Re: Error handling?
Re: Error handling?
- Subject: Re: Error handling?
- From: Dave C <email@hidden>
- Date: Sun, 08 Mar 2015 21:21:36 -0700
Thanks for your reply Shane,
> You need to add what you want to happen where it says "-- do stuff here". I'm not sure how you want to use this snippet. If you don't know when the TM backup is likely to finish, you probably need it in some sort of repeat loop.
>
> You need to explain if there's some script before it, or how you trigger it, before we can give you any further suggestions.
If the volume is not busy, eject. If it is busy (I presume the eject command returns an error when script tries to eject it?) then loop until it’s free and then eject.
My goal is to eject the TM volume when it’s not busy doing a backup. Since backup happens hourly, the error situation isn’t going to happen very frequently, but needs to be handled whenever it occurs.
> Also, is the TM volume a network volume?
No, USB connected.
Cheers,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden