Skip to content

Instantly share code, notes, and snippets.

@chris1111
Last active July 21, 2022 16:42
Show Gist options
  • Save chris1111/233c88a600b27b9c3ad9b82306f68159 to your computer and use it in GitHub Desktop.
Save chris1111/233c88a600b27b9c3ad9b82306f68159 to your computer and use it in GitHub Desktop.
Rename Volume Applescript.scpt
# Rename volume if exist by chris1111
tell application "Finder"
set allVolumes to disks
repeat with aVolume in allVolumes
if (name of aVolume as text) is equal to "USB-DISK" then
set name of aVolume to "USB_DISK"
end if
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment