Skip to content

Instantly share code, notes, and snippets.

@chris1111
Created June 27, 2019 16:02
Show Gist options
  • Save chris1111/6b22396b20f191d0191d6fc308da048a to your computer and use it in GitHub Desktop.
Save chris1111/6b22396b20f191d0191d6fc308da048a to your computer and use it in GitHub Desktop.
Rename anny disk Applescript
# Applescript create by chris1111
tell application "Finder"
activate
# the original disk you want to rename
if exists disk "Catalina HD" then
# The name you want to give it
set theName to "Catalina-HD"
# the original disk you want to rename
set ORIG to "Catalina HD"
tell application "Finder"
set name of disk ORIG to theName
end tell
end if
end tell
@chris1111
Copy link
Author

chris1111 commented Jun 27, 2019

NOTE: On macOS Catalina 10.15 make sure your Disk is RW System before rename the drive.

Capture d’écran, le 2019-06-27 à 11 58 47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment