Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. tell application "Terminal"
  2. do script "echo "diskutil list"" in window 1
  3. if exists disk2 then
  4. do script "echo "diskutil info disk2"" in window 1
  5. do script "echo "diskutil eject disk2"" in window 1
  6. do script "echo "diskutil list"" in window 1
  7. end if
  8. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement