Last active
July 21, 2022 16:42
-
-
Save chris1111/233c88a600b27b9c3ad9b82306f68159 to your computer and use it in GitHub Desktop.
Rename Volume Applescript.scpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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