[zoom]不具合発生時の再インストール用スクリプト
初期設定からキャッシュから
可能な限り、既存のファイルを削除します。
-->限りなく初期設定にもどる『はず』です。
不具合発生時以外の利用はお勧めしません。
ダウンロード - zoomuserinstall.scpt.zip
#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#
# 注意!このスクリプトは初期設定等を削除する不具合発生時用です
# 通常時は利用しないでください
#
# com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
##自分環境がos12なので2.8にしているだけです
use AppleScript version "2.8"
use framework "Foundation"
use scripting additions
set theCommandText to ("date '+%Y%m%d_%H%M%S'") as text
set theDate to (do shell script theCommandText) as text
set theDate to theDate as text
set theCommandText to ("id -un") as text
set theUserName to (do shell script theCommandText) as text
set theUserName to theUserName as text
set theCommandText to ("echo $HOME") as text
set theHomeDir to (do shell script theCommandText) as text
set theCommandText to ("mkdir -p '/tmp/" & theDate & "'") as text
do shell script theCommandText
set theCommandText to ("/usr/bin/SetFile -a v $HOME/Library") as text
do shell script theCommandText
set theCommandText to ("/usr/bin/chflags nohidden $HOME/Library") as text
do shell script theCommandText
try
set theCommandText to ("killall \"zoom.us\"") as text
do shell script theCommandText
set theCommandText to ("killall \"zoom.us Networking\"") as text
do shell script theCommandText
end try
try
set theGo2TrashPath to ("/Applications/zoom.us.app") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Applications/zoom.us.app") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("/Applications/ZoomOutlookPlugin") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Applications/ZoomOutlookPlugin") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("/Users/Shared/ZoomOutlookPlugin") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Applications/Utilities/ZoomOutlookPlugin") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Application Support/zoom.us/Plugins/zMacResRetina.bundle") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Application Support/zoom.us") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Application Support/ZoomPresence") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Caches/us.zoom.xos") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Cookies/us.zoom.xos.binarycookies") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/HTTPStorages/us.zoom.xos.binarycookies") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/HTTPStorages/us.zoom.xos") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Preferences/us.zoom.Transcode.plist") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Preferences/us.zoom.xos.plist") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Preferences/us.zoom.ZoomPresence.plist") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Preferences/ZoomChat.plist") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Receipts/us.zoom.pkg.videmeeting.bom") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Receipts/us.zoom.pkg.videmeeting.plist") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Receipts/us.zoom.pkg.videomeeting.bom") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Receipts/us.zoom.pkg.videomeeting.plist") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Saved Application State/us.zoom.xos.savedState") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/WebKit/us.zoom.xos") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Applications/ZoomOutlookPlugin") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Applications/Utilities/ZoomOutlookPlugin") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Logs/zoomusinstall.log") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Logs/zoom.us") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theHomeDir & "/Library/Logs/ZoomPhone") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
#########
set aliasTempFolder to (path to temporary items from user domain) as alias
tell application "Finder"
set aliasTempFolderDir to (parent of (parent of aliasTempFolder)) as alias
end tell
set theTempFolderUnixPass to (POSIX path of aliasTempFolderDir) as text
try
set theGo2TrashPath to ("" & theTempFolderUnixPass & "C/us.zoom.xos") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theGo2TrashPath to ("" & theTempFolderUnixPass & "T/us.zoom.xos") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
set objSysInfo to system info
set theCpuType to (CPU type of objSysInfo) as text
if theCpuType contains "Intel" then
try
set theCommandText to ("curl -L -o /tmp/" & theDate & "/Zoom.pkg 'https://zoom.us/client/latest/Zoom.pkg' --connect-timeout 20") as text
do shell script theCommandText
end try
try
set theCommandText to ("curl -L -o /tmp/" & theDate & "/ZoomMacOutlookPlugin.pkg 'https://zoom.us/client/latest/ZoomMacOutlookPlugin.pkg' --connect-timeout 20") as text
do shell script theCommandText
end try
else
try
set theCommandText to ("curl -L -o /tmp/" & theDate & "/Zoom.pkg 'https://zoom.us/client/latest/Zoom.pkg?archType=arm64' --connect-timeout 20") as text
do shell script theCommandText
try
set theCommandText to ("curl -L -o /tmp/" & theDate & "/ZoomMacOutlookPlugin.pkg 'https://zoom.us/client/latest/ZoomMacOutlookPlugin.pkg?archType=arm64' --connect-timeout 20") as text
do shell script theCommandText
end try
end try
end if
############################################################
############################################################
############################################################
set theCommandText to "date +%s"
set theSqlDateNo to (do shell script theCommandText) as text
try
set theCommandText to ("/usr/bin/tccutil reset All us.zoom.xos") as text
do shell script theCommandText
end try
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"SELECT * FROM access\" | grep us.zoom.xos") as text
set theSqlSelect to (do shell script theCommandText) as text
end try
if theSqlSelect contains "kTCCServiceSystemPolicyAllFiles" then
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceSystemPolicyAllFiles','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
else
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceSystemPolicyAllFiles','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
end if
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceScreenCapture','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceScreenCapture','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceAccessibility','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceAccessibility','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceCamera','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceCamera','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceMicrophone','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceMicrophone','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceAddressBook','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceAddressBook','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceCalendar','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceCalendar','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceBluetoothAlways','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceBluetoothAlways','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceFileProviderDomain','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceFileProviderDomain','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceSpeechRecognition','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceSpeechRecognition','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceListenEvent','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceListenEvent','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceUbiquity','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceUbiquity','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServicePhotos','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServicePhotos','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServicePhotosAdd','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServicePhotosAdd','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceUbiquity','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceUbiquity','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceAppleEvents','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceAppleEvents','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceSystemPolicyDesktopFolder','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceSystemPolicyDesktopFolder','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceSystemPolicyDocumentsFolder','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceSystemPolicyDocumentsFolder','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceLiverpool','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceLiverpool','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceFocusStatus','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceFocusStatus','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceReminders','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceReminders','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceFocusStatus','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
on error
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"REPLACE INTO access VALUES('kTCCServiceFocusStatus','us.zoom.xos',0,2,4,1, NULL, NULL,0,'UNUSED', NULL,0," & theSqlDateNo & ");\"") as text
do shell script theCommandText
end try
delay 1
#########################
try
set theCommandText to ("mkdir -p \"" & theHomeDir & "/Applications\"") as text
do shell script theCommandText
end try
try
set theCommandText to ("mkdir -p \"" & theHomeDir & "/Applications/Utilities\"") as text
do shell script theCommandText
end try
try
set theCommandText to ("touch \"" & theHomeDir & "/Applications/Utilities/.localized\"") as text
do shell script theCommandText
end try
try
set theCommandText to ("installer -pkg \"/tmp/" & theDate & "/Zoom.pkg\" -target CurrentUserHomeDirectory -dumplog -allowUntrusted -lang ja") as text
do shell script theCommandText
end try
try
set theCommandText to ("installer -pkg \"/tmp/" & theDate & "/ZoomMacOutlookPlugin.pkg\" -target CurrentUserHomeDirectory -dumplog -allowUntrusted -verboseR -lang ja") as text
do shell script theCommandText
end try
try
set theGo2TrashPath to ("/Applications/ZoomOutlookPlugin") as text
tell application "Finder"
set aliasGo2TrashPath to POSIX file theGo2TrashPath as alias
move aliasGo2TrashPath to trash
end tell
end try
try
set theCommandText to ("mv $HOME/Applications/ZoomOutlookPlugin $HOME/Applications/Utilities") as text
do shell script theCommandText
end try
try
set theCommandText to ("defaults write com.apple.dock persistent-apps -array-add \"<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Users/" & theUserName & "/Applications/zoom.us.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>\"") as text
do shell script theCommandText
end try
try
set theCommandText to ("killall Dock") as text
do shell script theCommandText
end try
| 固定リンク
「zoom」カテゴリの記事
- [zoom]zoomインストール(pkgutilで解凍する)(2024.08.28)
- [zoom]関連プロセス強制終了(2024.05.19)
- [zoom]キャッシュクリア(2023.12.19)
- [bash]Zoomアップデート 少し修正(2023.09.07)
- pkgインストール(ユーザー権限)(2023.07.04)