tell application "AppleScript Editor"
activate
try
tell application "System Events" to keystroke "3" using {command down}
end try
try
tell application "System Events" to keystroke "l" using {option down, command down}
end try
end tell
set numVerChk2013 to 0 as number
set numVerChk2015 to 0 as number
set numVerChk2017 to 0 as number
try
set theLocalSuppDir to (path to application support folder from local domain) as text
set theLocalSuppBrCCdir to (theLocalSuppDir & "Adobe:Bridge CC Extensions:") as text
set aliasLocalSuppBrCCdir to theLocalSuppBrCCdir as alias
on error
set numVerChk2013 to 1 as number
end try
try
set theLocalSuppDir to (path to application support folder from local domain) as text
set theLocalSuppBrCCdir to (theLocalSuppDir & "Adobe:Bridge CC 2015 Extensions:") as text
set aliasLocalSuppBrCCdir to theLocalSuppBrCCdir as alias
on error
set numVerChk2015 to 1 as number
end try
try
set theLocalSuppDir to (path to application support folder from local domain) as text
set theLocalSuppBrCCdir to (theLocalSuppDir & "Adobe:Bridge CC 2017 Extensions:") as text
set aliasLocalSuppBrCCdir to theLocalSuppBrCCdir as alias
on error
set numVerChk2017 to 1 as number
end try
set theNowTime to (my doDateAndTIme(current date)) as text
set theTrashDirCC to ("/tmp/" & theNowTime & "CC") as text
set theTrashDir2015 to ("/tmp/" & theNowTime & "CC2015") as text
set theTrashDir2017 to ("/tmp/" & theNowTime & "CC2017") as text
try
set theCommand to ("mkdir -pv " & theTrashDirCC) as text
do shell script theCommand
set theTmpPathCC to theTrashDirCC as text
delay 1
on error
return "テンポラリフォルダ作成でエラーが発生しました"
end try
try
set theCommand to ("mkdir -pv " & theTrashDir2015) as text
do shell script theCommand
set theTmpPath2015 to theTrashDir2015 as text
delay 1
on error
return "テンポラリフォルダ作成でエラーが発生しました"
end try
try
set theCommand to ("mkdir -pv " & theTrashDir2017) as text
do shell script theCommand
set theTmpPath2017 to theTrashDir2017 as text
delay 1
on error
return "テンポラリフォルダ作成でエラーが発生しました"
end try
if numVerChk2013 is 0 then
try
set theCommand to ("curl -L -o '" & theTmpPathCC & "/AOM_Mac_New.zip' 'https://helpx.adobe.com/jp/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_section_393125832/download-3/file.res/AOM_Mac_New.zip'") as text
do shell script theCommand
delay 1
on error
try
set theCommand to ("curl -L -o '" & theTmpPathCC & "/AOM_Mac_New.zip' 'https://helpx.adobe.com/content/help/en/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_section_393125832/download-3/file.res/AOM_Mac_New.zip'") as text
do shell script theCommand
delay 1
on error
return "ダウンロードでエラーが発生しました"
end try
end try
end if
if numVerChk2015 is 0 then
try
set theCommand to ("curl -L -o '" & theTmpPath2015 & "/AOM_Package_Mac.zip' 'https://helpx.adobe.com/jp/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_section/download-3/file.res/AOM_Package_Mac.zip'") as text
do shell script theCommand
delay 1
on error
try
set theCommand to ("curl -L -o '" & theTmpPath2015 & "/AOM_Package_Mac.zip' 'https://helpx.adobe.com/content/help/en/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_section/download-3/file.res/AOM_Package_Mac.zip'") as text
do shell script theCommand
delay 1
on error
return "ダウンロードでエラーが発生しました"
end try
end try
end if
if numVerChk2017 is 0 then
try
set theCommand to ("curl -L -o '" & theTmpPath2017 & "/AOM_Mac.zip' 'https://helpx.adobe.com/jp/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_section_1276784658/download-3/file.res/AOM_Mac.zip'") as text
do shell script theCommand
delay 1
on error
try
set theCommand to ("curl -L -o '" & theTmpPath2017 & "/AOM_Mac.zip' 'https://helpx.adobe.com/content/help/en/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_section_1276784658/download-3/file.res/AOM_Mac.zip'") as text
do shell script theCommand
delay 1
on error
return "ダウンロードでエラーが発生しました"
end try
end try
end if
if numVerChk2013 is 0 then
try
set theCommand to ("unzip '" & theTmpPathCC & "/AOM_Mac_New.zip' -d '" & theTmpPathCC & "'") as text
do shell script theCommand
delay 1
on error
return "ファイルの解凍でエラーが発生しました"
end try
end if
if numVerChk2015 is 0 then
try
set theCommand to ("unzip '" & theTmpPath2015 & "/AOM_Package_Mac.zip' -d '" & theTmpPath2015 & "'") as text
do shell script theCommand
delay 1
on error
return "ファイルの解凍でエラーが発生しました"
end try
end if
if numVerChk2017 is 0 then
try
set theCommand to ("unzip '" & theTmpPath2017 & "/AOM_Mac.zip' -d '" & theTmpPath2017 & "'") as text
do shell script theCommand
delay 1
on error
return "ファイルの解凍でエラーが発生しました"
end try
end if
if numVerChk2013 is 0 then
try
set theCommand to ("sudo mkdir -p '/Library/Application Support/Adobe/Bridge CC Extensions'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mkdir -p '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
end try
end if
if numVerChk2015 is 0 then
try
set theCommand to ("sudo mkdir -p '/Library/Application Support/Adobe/Bridge CC 2015 Extensions'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mkdir -p '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
end try
end if
if numVerChk2017 is 0 then
try
set theCommand to ("sudo mkdir -p '/Library/Application Support/Adobe/Bridge CC 2017 Extensions'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mkdir -p '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
end try
end if
if numVerChk2013 is 0 then
try
set theCommand to ("sudo chown root '/Library/Application Support/Adobe/Bridge CC Extensions'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp admin '/Library/Application Support/Adobe/Bridge CC Extensions'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod 775 '/Library/Application Support/Adobe/Bridge CC Extensions'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
end if
if numVerChk2015 is 0 then
try
set theCommand to ("sudo chown root '/Library/Application Support/Adobe/Bridge CC 2015 Extensions'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp admin '/Library/Application Support/Adobe/Bridge CC 2015 Extensions'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod 775 '/Library/Application Support/Adobe/Bridge CC 2015 Extensions'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
end if
if numVerChk2017 is 0 then
try
set theCommand to ("sudo chown root '/Library/Application Support/Adobe/Bridge CC 2017 Extensions'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp admin '/Library/Application Support/Adobe/Bridge CC 2017 Extensions'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod 775 '/Library/Application Support/Adobe/Bridge CC 2017 Extensions'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
end if
if numVerChk2013 is 0 then
try
set theCommand to ("sudo chown root '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp admin '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod 777 '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
end if
if numVerChk2015 is 0 then
try
set theCommand to ("sudo chown root '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp admin '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod 777 '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
end if
if numVerChk2017 is 0 then
try
set theCommand to ("sudo chown root '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp admin '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod 777 '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
end if
if numVerChk2013 is 0 then
try
set theCommand to ("sudo mv -f '" & theTmpPathCC & "/AOM_Mac/AdobeOutputModule.workspace' '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
end try
end if
if numVerChk2015 is 0 then
try
set theCommand to ("sudo mv -f '" & theTmpPath2015 & "/AOM_Mac/AdobeOutputModule.workspace' '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
end try
end if
if numVerChk2017 is 0 then
try
set theCommand to ("sudo mv -f '" & theTmpPath2017 & "/AOM_Mac/AdobeOutputModule.workspace' '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
end try
end if
if numVerChk2013 is 0 then
try
set theCommand to ("sudo mv -f '" & theTmpPathCC & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC Extensions'") as text
do shell script theCommand with administrator privileges
on error
set theCommand to ("sudo mv -f '/Library/Application Support/Adobe/Bridge CC Extensions/Adobe Output Module' '" & theTmpPathCC & "'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mv -f '" & theTmpPathCC & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC Extensions'") as text
do shell script theCommand with administrator privileges
end try
try
set theCommand to ("sudo chown -Rf root '/Library/Application Support/Adobe/Bridge CC Extensions/Adobe Output Module'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp -Rf admin '/Library/Application Support/Adobe/Bridge CC Extensions/Adobe Output Module'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod -Rf 775 '/Library/Application Support/Adobe/Bridge CC Extensions/Adobe Output Module'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
try
set theCommand to ("sudo chown -Rf root '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces/AdobeOutputModule.workspace'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp -Rf admin '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces/AdobeOutputModule.workspace'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod -Rf 775 '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces/AdobeOutputModule.workspace'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
end if
if numVerChk2015 is 0 then
try
set theCommand to ("sudo mv -f '" & theTmpPath2015 & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC 2015 Extensions'") as text
do shell script theCommand with administrator privileges
on error
set theCommand to ("sudo mv -f '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Adobe Output Module' '" & theTmpPath2015 & "'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mv -f '" & theTmpPath2015 & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC 2015 Extensions'") as text
do shell script theCommand with administrator privileges
end try
try
set theCommand to ("sudo chown -Rf root '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Adobe Output Module'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp -Rf admin '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Adobe Output Module'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod -Rf 775 '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Adobe Output Module'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
try
set theCommand to ("sudo chown -Rf root '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Workspaces/AdobeOutputModule.workspace'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp -Rf admin '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Workspaces/AdobeOutputModule.workspace'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod -Rf 775 '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Workspaces/AdobeOutputModule.workspace'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
end if
if numVerChk2017 is 0 then
try
set theCommand to ("sudo mv -f '" & theTmpPath2017 & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC 2017 Extensions'") as text
do shell script theCommand with administrator privileges
on error
set theCommand to ("sudo mv -f '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Adobe Output Module' '" & theTmpPath2017 & "'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mv -f '" & theTmpPath2017 & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC 2017 Extensions'") as text
do shell script theCommand with administrator privileges
end try
try
set theCommand to ("sudo chown -Rf root '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Adobe Output Module'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp -Rf admin '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Adobe Output Module'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod -Rf 775 '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Adobe Output Module'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
try
set theCommand to ("sudo chown -Rf root '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Workspaces/AdobeOutputModule.workspace'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chgrp -Rf admin '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Workspaces/AdobeOutputModule.workspace'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo chmod -Rf 775 '/Library/Application Support/Adobe/Bridge CC 2017 Extensions/Workspaces/AdobeOutputModule.workspace'") as text
do shell script theCommand with administrator privileges
on error
return "アクセス権修正でエラーが発生しました"
end try
end if
if numVerChk2013 is 0 then
try
set theUserBridgeDir to path to application support folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPathCC & "/Support'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge CC' '" & theTmpPathCC & "/Support'") as text
do shell script theCommand
on error
end try
end if
if numVerChk2015 is 0 then
try
set theUserBridgeDir to path to application support folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath2015 & "/Support'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge CC 2015' '" & theTmpPath2015 & "/Support'") as text
do shell script theCommand
on error
end try
end if
if numVerChk2017 is 0 then
try
set theUserBridgeDir to path to application support folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath2017 & "/Support'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge CC 2017' '" & theTmpPath2017 & "/Support'") as text
do shell script theCommand
on error
end try
end if
try
set theUserBridgeDir to path to application support folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPathCC & "/Common'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Common' '" & theTmpPathCC & "/Common'") as text
do shell script theCommand
on error
end try
try
set theUserBridgeDir to path to preferences folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPathCC & "/Preferences'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge' '" & theTmpPathCC & "/Preferences'") as text
do shell script theCommand
on error
end try
if numVerChk2013 is 0 then
try
set theUserBridgeDir to path to preferences folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPathCC & "/Preferences'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "com.adobe.bridge6.plist' '" & theTmpPathCC & "/Preferences'") as text
do shell script theCommand
on error
end try
end if
if numVerChk2015 is 0 then
try
set theUserBridgeDir to path to preferences folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath2015 & "/Preferences'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "com.adobe.bridge6.3.plist' '" & theTmpPath2015 & "/Preferences'") as text
do shell script theCommand
on error
end try
end if
if numVerChk2017 is 0 then
try
set theUserBridgeDir to path to preferences folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath2017 & "/Preferences'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "com.adobe.bridge7.plist' '" & theTmpPath2017 & "/Preferences'") as text
do shell script theCommand
on error
end try
end if
if numVerChk2013 is 0 then
try
set theUserBridgeDir to path to library folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPathCC & "/Caches'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/Adobe/Bridge CC' '" & theTmpPathCC & "/Caches'") as text
do shell script theCommand
on error
end try
end if
if numVerChk2015 is 0 then
try
set theUserBridgeDir to path to library folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath2015 & "/Caches'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/Adobe/Bridge CC 2015' '" & theTmpPath2015 & "/Caches'") as text
do shell script theCommand
on error
end try
end if
if numVerChk2017 is 0 then
try
set theUserBridgeDir to path to library folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath2017 & "/Caches'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/Adobe/Bridge CC 2017' '" & theTmpPath2017 & "/Caches'") as text
do shell script theCommand
on error
end try
end if
if numVerChk2013 is 0 then
try
set theUserBridgeDir to path to library folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPathCC & "/Caches'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/com.adobe.bridge6' '" & theTmpPathCC & "/Caches'") as text
do shell script theCommand
on error
end try
end if
if numVerChk2015 is 0 then
try
set theUserBridgeDir to path to library folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath2015 & "/Caches'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/com.adobe.bridge6.3' '" & theTmpPath2015 & "/Caches'") as text
do shell script theCommand
on error
end try
end if
if numVerChk2017 is 0 then
try
set theUserBridgeDir to path to library folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath2017 & "/Caches'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/com.adobe.bridge7' '" & theTmpPath2017 & "/Caches'") as text
do shell script theCommand
on error
end try
end if
try
set theUserBridgeDir to path to temporary items
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPathCC & "/TemporaryItems'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe' '" & theTmpPathCC & "/TemporaryItems'") as text
do shell script theCommand
on error
end try
try
set theUserBridgeDir to path to temporary items
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPathCC & "/TemporaryItems'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe Output Module' '" & theTmpPathCC & "/TemporaryItems'") as text
do shell script theCommand
on error
end try
return "AOM(Adobe Output Module)のインストールが終了しました\rブリッジを起動させて出力パネルを確認してください\rテンポラリフォルダの中身は次回起動時に消去されます"
to doDateAndTIme(theDate)
set y to (year of theDate)
set m to my monthNumStr(month of theDate)
set d to day of theDate
set hms to time of theDate
set hh to h of sec2hms(hms)
set mm to m of sec2hms(hms)
set ss to s of sec2hms(hms)
return (y as text) & my zero1(m) & my zero1(d) & "_" & zero1(hh) & zero1(mm) & zero1(ss)
return (y as text) & my zero1(m) & my zero1(d)
end doDateAndTIme
to monthNumStr(theMonth)
set monList to {January, February, March, April, May, June, July, August, September, October, November, December}
repeat with i from 1 to 12
if item i of monList is theMonth then exit repeat
end repeat
return i
end monthNumStr
to sec2hms(sec)
set ret to {h:0, m:0, s:0}
set h of ret to sec div hours
set m of ret to (sec - (h of ret) * hours) div minutes
set s of ret to sec mod minutes
return ret
end sec2hms
to zero1(n)
if n < 10 then
return "0" & n
else
return n as text
end if
end zero1