Skip to content

Instantly share code, notes, and snippets.

@danielpunkass
Created October 29, 2013 15:28
Show Gist options
  • Save danielpunkass/7216822 to your computer and use it in GitHub Desktop.
Save danielpunkass/7216822 to your computer and use it in GitHub Desktop.
tell application "Finder"
repeat with diskNumber from 1 to count of disks
if ejectable of disk diskNumber is true then
display dialog "Hello " & (name of disk diskNumber)
end if
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment