Waiting for the disk to Eject
Waiting for the disk to Eject
- Subject: Waiting for the disk to Eject
- From: Gil Dawson via AppleScript-Users <email@hidden>
- Date: Sun, 22 May 2022 17:38:16 -0700
I use my MacBook Pro away from my desk a lot. When it's at my desk, I plug it
in to power, a big screen, my phone and a back-up disk. To take it away, I
have to wait until the back-up disk finishes ejecting before I can remove all
the plugs. Not a big chore, but I'm thinking that maybe I could eliminate that
wait, in many cases, with an AppleScript.
I'm thinking of writing an AppleScript to Eject the back-up disk then re-mount
it when it's time to perform the next back-up. Something like the following:
Every so often...
If the back-up disk is mounted T T T T F F F F
If Time Machine is busy with a backup T T F F T T F F
If the last backup was less than two hours ago T F T F T F T F
(Shouldn't Happen) * *
Put a warning on the screen Y Y Y Y
Take the warning off the screen Y Y
Mount the Back-up Disk Y Y
Eject the Back-up Disk Y Y
My questions are:
1. Has this been done, perhaps with an AppleScript or an app?
2. The warning is to tell me that the back-up disk is busy, so don't pull the
plug.
Used to once was, the Time Machine icon in the menu bar would twirl
backwards.
Now what would be a good warning? Turn the desktop red?
3. I'll need actual code to implement the primitives in the above decision
table.
Has anyone done any of these?
I'm looking forward to your comments and suggestions.
--Gil
_______________________________________________
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