AdobeBridge

AOM(Adobe Output Module)インストーラーちょっと直し


日本語
https://helpx.adobe.com/jp/bridge/kb/install-output-module-bridge-cc.html

英語
https://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html


「Install_Adobe_Output_Module_CC2017_r2.scpt.zip」をダウンロード

|

AOM(Adobe Output Module)インストーラーCC2017対応版

もっと簡素に作り直したかったが
可読性も捨てがたいのよ…

Adobeブリッジの出力パネルをインストール

「Install_Adobe_Output_Module_CC2017.scpt.zip」をダウンロード


------


https://github.com/force4u/Install_Adobe_Output_Module.scpt


Install the Adobe Output Module
https://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html

Adobe Output Module のインストール
https://helpx.adobe.com/jp/bridge/kb/install-output-module-bridge-cc.html


(*
AOM(Adobe Output Module)インストーラー
20151219初回作成
20151221一部修正
20151224ログ表示部修正
20151225udoの一部誤り訂正
20160510Adobeのサーバー側のリダイレクトに対応
20160517キャッシュの削除を含めて初期化する処理に変更
20160713CC2015に対応 少し直しました
20160720CC2015用のAOM_Package_Mac.zipのインストールに対応
20160720名称変更Install_Adobe_Output_Module_CC2015.scpt
20160831ダウンロードファイルのURL変更に対応
20161104CC2017に対応(JPサイトでエラーになったらENサイトからダウンロード)

AOM(Adobe Output Module)Mac版は
解凍時のアクセス権の影響で
複数の人が同じ機器を利用する場合
インストールした人以外が出力パネルを利用出来ない(エラーになる)
インストールからアクセス権設定までを自動化して
トラブル防止用に作成した
業務用に作成した物を可読性を配慮して作り直した
アクセス権でstaffにフルアクセス権を付けている(ここは好みの問題)
Bridge Help / Install Adobe Output Module
https://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html

*)

----ログを表示
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



-----Bridge CC 2017 のインストール判定
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
-----Bridge CC 2017 のインストール判定
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
-----Bridge CC 2017 のインストール判定
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


-----テンポラリーフォルダを作成Bridge CC 6.2
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
-----テンポラリーフォルダを作成Bridge CC 6.3
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
-----テンポラリーフォルダを作成Bridge CC 7
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

-----ファイルをダウンロード Bridge CC 2013 version 6.2
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
-----ファイルをダウンロードBridge CC 2015 version 6.3
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
-----ファイルをダウンロードBridge CC 2017 version 7
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


-----ファイルを解凍 Bridge CC version 6.2
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
-----ファイルを解凍 Bridge CC 2015 version 6.3
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
-----ファイルを解凍 Bridge CC 2017 version 7
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

-----インストール先のフォルダを確保 Bridge CC version 6.2
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
-----インストール先のフォルダを確保 Bridge CC 2015 version 6.3
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
-----インストール先のフォルダを確保 Bridge CC 2017 version 7
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


-----アクセス権を修正775(アクセス権は好みで)Bridge CC version 6.2
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
-----アクセス権を修正775(アクセス権は好みで)Bridge CC 2015 version 6.3
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
-----アクセス権を修正775(アクセス権は好みで)Bridge CC 2017 version 7
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




-----アクセス権を修正775(アクセス権は好みで)Bridge CC version 6.2
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
-----アクセス権を修正775(アクセス権は好みで)Bridge CC 2015 version 6.3
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

-----アクセス権を修正775(アクセス権は好みで)Bridge CC 2017 version 7
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




-----ワークススペースファイルを移動(おきかえ)Bridge CC version 6.2
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
---ここはエラー制御無しでOKかな
end try
end if
-----ワークススペースファイルを移動(おきかえ)Bridge CC 2015 version 6.3
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
---ここはエラー制御無しでOKかな
end try
end if
-----ワークススペースファイルを移動(おきかえ)Bridge CC 2017 version 7
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
---ここはエラー制御無しでOKかな
end try
end if




-----モジュールを移動(エラーしたら削除してから新しいファイルを移動)Bridge CC version 6.2
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
-----アクセス権を修正775(アクセス権は好みで)Bridge CC version 6.2
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
-----アクセス権を修正775(アクセス権は好みで) Bridge CC version 6.2
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

-----モジュールを移動(エラーしたら削除してから新しいファイルを移動)Bridge CC 2015 version 6.3
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
-----アクセス権を修正775(アクセス権は好みで)Bridge CC 2015 version 6.3
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
-----アクセス権を修正775(アクセス権は好みで)Bridge CC 2015 version 6.3
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


-----モジュールを移動(エラーしたら削除してから新しいファイルを移動)Bridge CC 2017 version 7
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
-----アクセス権を修正775(アクセス権は好みで)Bridge CC 2017 version 7
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
-----アクセス権を修正775(アクセス権は好みで)Bridge CC 2017 version 7
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

-----Workspacesキャッシュクリア Bridge CC version 6.2
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

-----Workspacesキャッシュクリア Bridge CC 2015 version 6.3
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

-----Workspacesキャッシュクリア Bridge CC 2017 version 7
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

-----Commonクリア
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

-----Preferencesクリア
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


-----plistクリア Bridge CC version 6.2
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
-----plistクリア Bridge CC 2015 version 6.3
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
-----plistクリア Bridge CC 2017 version 7
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

-----Cachesクリア Bridge CC version 6.2
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
-----Cachesクリア Bridge CC 2015 version 6.3
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
-----Cachesクリア Bridge CC 2017 version 7
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





-----Cachesクリア Bridge CC version 6.2
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
-----Cachesクリア Bridge CC 2015 version 6.3
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
-----Cachesクリア Bridge CC 2017 version 7
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

-----temporary itemsクリア
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


-----temporary itemsクリア
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


---do shell script "defaults write com.apple.spaces spans-displays -bool true"





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


|

Install the Adobe Output Module for Bridge CC 2015 version 6.3

CC版はこちら
http://force4u.cocolog-nifty.com/skywalker/2016/08/install-the-ado.html

AOL出力パネルのダウンロードURLが変わったので
スクリプトを変更した。

Website_image00280831_221748


(*
AOM(Adobe Output Module)インストーラー
20160723 Install_Adobe_Output_Module_CC2015 初回作成
20160831ダウンロードファイルの新URLに対応しました。

################################
【重要】2015がインストールされているのが前提です
################################


AOM(Adobe Output Module)Mac版は
解凍時のアクセス権の影響で
複数の人が同じ機器を利用する場合
インストールした人以外が出力パネルを利用出来ない(エラーになる)
インストールからアクセス権設定までを自動化して
トラブル防止用に作成した
業務用に作成した物を可読性を配慮して作り直した
アクセス権でstaffにフルアクセス権を付けている(ここは好みの問題)
Bridge Help / Install Adobe Output Module
https://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html
詳しくはこちら
http://force4u.cocolog-nifty.com/skywalker/2015/12/aomadobe-output.html
*)

----ログを表示
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

-----Bridge CC 2015 のインストール判定
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
return "BridgeCC2015が未インストールです"
end try





---日付けと時間からテンポラリー用のフォルダ名を作成
set theNowTime to (my doDateAndTIme(current date)) as text
---テンポラリー用フォルダのパスを定義
set theTrashDir to ("/tmp/" & theNowTime) as text


-----テンポラリーフォルダを作成
try
set theCommand to ("mkdir -pv " & theTrashDir) as text
do shell script theCommand
set theTmpPath to theTrashDir as text
delay 1
on error
return "テンポラリフォルダ作成でエラーが発生しました"
end try

-----ファイルをダウンロード
try
---URL
---set theCommand to ("curl -L -o '" & theTmpPath & "/AOM_Package_Mac.zip' 'https://helpx.adobe.com/content/help/en/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_1/file.res/AOM_Package_Mac.zip'") as text
---20160831URL
set theCommand to ("curl -L -o '" & theTmpPath & "/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
-----ファイルを解凍
try
set theCommand to ("unzip '" & theTmpPath & "/AOM_Package_Mac.zip' -d '" & theTmpPath & "'") as text
do shell script theCommand
delay 1
on error
return "ファイルの解凍でエラーが発生しました"
end try
-----インストール先のフォルダを確保
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
-----ワークススペースファイルを移動(おきかえ)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/AdobeOutputModule.workspace' '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
---ここはエラー制御無しでOKかな
end try
-----モジュールを移動(エラーしたら削除してから新しいファイルを移動)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/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' '" & theTmpPath & "'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC 2015 Extensions'") as text
do shell script theCommand with administrator privileges
end try
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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
-----Workspacesキャッシュクリア
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 '" & theTmpPath & "/Support'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge CC 2015' '" & theTmpPath & "/Support'") as text
do shell script theCommand with administrator privileges
on error
log "Workspacesキャッシュがありませんでした"
end try

-----Commonクリア
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 '" & theTmpPath & "/Common'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Common' '" & theTmpPath & "/Common'") as text
do shell script theCommand with administrator privileges
on error
log "Commonキャッシュがありませんでした"
end try
-----Preferencesクリア
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 '" & theTmpPath & "/Preferences'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge' '" & theTmpPath & "/Preferences'") as text
do shell script theCommand with administrator privileges
on error
log "Preferencesディレクトリがありませんでした"
end try
-----plistクリア
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 '" & theTmpPath & "/Preferences'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "com.adobe.bridge6.3.plist' '" & theTmpPath & "/Preferences'") as text
do shell script theCommand with administrator privileges
on error
log "plistがありませんでした"
end try
-----Cachesクリア
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 '" & theTmpPath & "/Caches'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/Adobe' '" & theTmpPath & "/Caches'") as text
do shell script theCommand with administrator privileges
on error
log "Caches Adobeがありませんでした"
end try
-----Cachesクリア Bridge CC 2015 version 6.3
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 with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/com.adobe.bridge6.3' '" & theTmpPath2015 & "/Caches'") as text
do shell script theCommand with administrator privileges
on error
log "Caches Bridgeがありませんでした"
end try

-----temporary itemsクリア
try
set theUserBridgeDir to path to temporary items
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe' '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand with administrator privileges
on error
log "temporary Adobeがありませんでした"
end try


-----temporary itemsクリア
try
set theUserBridgeDir to path to temporary items
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe Output Module' '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand with administrator privileges
on error
log "temporary Adobe Output Moduleがありませんでした"
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


「Install_Adobe_Output_Module_CC2015.20160831.zip」をダウンロード


|

Install the Adobe Output Module for Bridge CC 6.2


ブリッジCC用(not2015)のAOL出力パネルのダウンロードURLが変わったので
スクリプトを変更した。

中身は変わらない。

ワンポイント
出力パネルの表示がナニな時はAdobe Airを最新版にすると改善する『ケース』がありました。
(まぁヨッポド古いバージョンを使っていなければ大丈夫)


Website_image00280831_220202


(*
AOM(Adobe Output Module)インストーラー
20151219 初回作成
20151221 一部修正
20151224 ログ表示部修正
20151225 sudoの一部誤り訂正
20160510 Adobeのサーバー側のリダイレクトに対応
20160517 キャッシュの削除を含めて初期化する処理に変更
20160529 Reset_Adobe_Output_Module_BridgeCC.scptに名称変更
20160831ダウンロードファイルの変更に対応
【ポイント】
一部の環境(Bridge CS6版とBridge CC版を併用する方)で発生する
出力パネルの『I/oエラー』が発生する場合
このスクリプトを実行すると解決する事があります。(必ずではないですが

【留意事項】
一部初期設定等をリセットします。
設定等をリセットしないインストールだけの場合は
こちら
http://force4u.cocolog-nifty.com/skywalker/2016/05/bridgeccaomadob.html
を利用してください

AOM(Adobe Output Module)Mac版は
解凍時のアクセス権の影響で
複数の人が同じ機器を利用する場合
インストールした人以外が出力パネルを利用出来ない(エラーになる)
インストールからアクセス権設定までを自動化して
トラブル防止用に作成した
業務用に作成した物を可読性を配慮して作り直した
アクセス権でstaffにフルアクセス権を付けている(ここは好みの問題)
Bridge Help / Install Adobe Output Module
Install the Adobe Output Module for Bridge CC 6.2
https://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html
詳しくはこちら
http://force4u.cocolog-nifty.com/skywalker/2015/12/aomadobe-output.html

AdobeOutputModule.jsx
DateTime: 2008/04/10
Adobe Output Module 4.0
*)

----ログを表示
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 theNowTime to (my doDateAndTIme(current date)) as text
---テンポラリー用フォルダのパスを定義
set theTrashDir to ("/tmp/" & theNowTime) as text


-----テンポラリーフォルダを作成
try
set theCommand to ("mkdir -pv " & theTrashDir) as text
do shell script theCommand
set theTmpPath to theTrashDir as text
delay 1
on error
return "テンポラリフォルダ作成でエラーが発生しました"
end try

-----ファイルをダウンロード
try
---URL
---set theCommand to ("curl -L -o '" & theTmpPath & "/AOM_Mac_New.zip' 'https://helpx.adobe.com/content/help/en/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_1/file.res/AOM_Mac_New.zip'") as text
---20160831URL
set theCommand to ("curl -L -o '" & theTmpPath & "/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
-----ファイルを解凍
try
set theCommand to ("unzip '" & theTmpPath & "/AOM_Mac_New.zip' -d '" & theTmpPath & "'") as text
do shell script theCommand
delay 1
on error
return "ファイルの解凍でエラーが発生しました"
end try
-----インストール先のフォルダを確保
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
-----ワークススペースファイルを移動(おきかえ)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/AdobeOutputModule.workspace' '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
---ここはエラー制御無しでOKかな
end try
-----モジュールを移動(エラーしたら削除してから新しいファイルを移動)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/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' '" & theTmpPath & "'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC Extensions'") as text
do shell script theCommand with administrator privileges
end try
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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

-----Workspacesキャッシュクリア
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 '" & theTmpPath & "/Support'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge CC' '" & theTmpPath & "/Support'") as text
do shell script theCommand
on error
log "Workspacesキャッシュがありませんでした"
end try

-----Commonクリア
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 '" & theTmpPath & "/Common'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Common' '" & theTmpPath & "/Common'") as text
do shell script theCommand
on error
log "Commonキャッシュがありませんでした"
end try

-----Preferencesクリア
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 '" & theTmpPath & "/Preferences'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge' '" & theTmpPath & "/Preferences'") as text
do shell script theCommand
on error
log "Preferencesディレクトリがありませんでした"
end try

-----plistクリア
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 '" & theTmpPath & "/Preferences'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "com.adobe.bridge6.plist' '" & theTmpPath & "/Preferences'") as text
do shell script theCommand
on error
log "plistがありませんでした"
end try



-----Cachesクリア
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 '" & theTmpPath & "/Caches'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/Adobe' '" & theTmpPath & "/Caches'") as text
do shell script theCommand
on error
log "Cachesがありませんでした"
end try

-----temporary itemsクリア
try
set theUserBridgeDir to path to temporary items
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe' '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand
on error
log "temporary Adobeがありませんでした"
end try


-----temporary itemsクリア
try
set theUserBridgeDir to path to temporary items
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe Output Module' '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand
on error
log "temporary Adobe Output Moduleがありませんでした"
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


「Reset_Adobe_Output_Module_BridgeCC.20160831.zip」をダウンロード

|

Install_Adobe_Output_Module_CC2015.scpt

BridgeCC2015の出力パネル|AOM(Adobe Output Module)をインストールします

(*
AOM(Adobe Output Module)インストーラー
20160723 Install_Adobe_Output_Module_CC2015 初回作成
################################
【重要】2015がインストールされているのが前提です
################################


AOM(Adobe Output Module)Mac版は
解凍時のアクセス権の影響で
複数の人が同じ機器を利用する場合
インストールした人以外が出力パネルを利用出来ない(エラーになる)
インストールからアクセス権設定までを自動化して
トラブル防止用に作成した
業務用に作成した物を可読性を配慮して作り直した
アクセス権でstaffにフルアクセス権を付けている(ここは好みの問題)
Bridge Help / Install Adobe Output Module
https://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html
詳しくはこちら
http://force4u.cocolog-nifty.com/skywalker/2015/12/aomadobe-output.html
*)

----ログを表示
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

-----Bridge CC 2015 のインストール判定
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
return "BridgeCC2015が未インストールです"
end try





---日付けと時間からテンポラリー用のフォルダ名を作成
set theNowTime to (my doDateAndTIme(current date)) as text
---テンポラリー用フォルダのパスを定義
set theTrashDir to ("/tmp/" & theNowTime) as text


-----テンポラリーフォルダを作成
try
set theCommand to ("mkdir -pv " & theTrashDir) as text
do shell script theCommand
set theTmpPath to theTrashDir as text
delay 1
on error
return "テンポラリフォルダ作成でエラーが発生しました"
end try

-----ファイルをダウンロード
try
set theCommand to ("curl -L -o '" & theTmpPath & "/AOM_Package_Mac.zip' 'https://helpx.adobe.com/content/help/en/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_1/file.res/AOM_Package_Mac.zip'") as text
do shell script theCommand
delay 1
on error
return "ダウンロードでエラーが発生しました"
end try
-----ファイルを解凍
try
set theCommand to ("unzip '" & theTmpPath & "/AOM_Package_Mac.zip' -d '" & theTmpPath & "'") as text
do shell script theCommand
delay 1
on error
return "ファイルの解凍でエラーが発生しました"
end try
-----インストール先のフォルダを確保
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
-----ワークススペースファイルを移動(おきかえ)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/AdobeOutputModule.workspace' '/Library/Application Support/Adobe/Bridge CC 2015 Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
---ここはエラー制御無しでOKかな
end try
-----モジュールを移動(エラーしたら削除してから新しいファイルを移動)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/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' '" & theTmpPath & "'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC 2015 Extensions'") as text
do shell script theCommand with administrator privileges
end try
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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
-----Workspacesキャッシュクリア
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 '" & theTmpPath & "/Support'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge CC 2015' '" & theTmpPath & "/Support'") as text
do shell script theCommand with administrator privileges
on error
-----ここはエラー制御なし
end try

-----Commonクリア
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 '" & theTmpPath & "/Common'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Common' '" & theTmpPath & "/Common'") as text
do shell script theCommand with administrator privileges
on error
-----ここはエラー制御なし
end try
-----Preferencesクリア
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 '" & theTmpPath & "/Preferences'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge' '" & theTmpPath & "/Preferences'") as text
do shell script theCommand with administrator privileges
on error
-----ここはエラー制御なし
end try
-----plistクリア
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 '" & theTmpPath & "/Preferences'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "com.adobe.bridge6.3.plist' '" & theTmpPath & "/Preferences'") as text
do shell script theCommand with administrator privileges
on error
-----ここはエラー制御なし
end try
-----Cachesクリア
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 '" & theTmpPath & "/Caches'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/Adobe' '" & theTmpPath & "/Caches'") as text
do shell script theCommand with administrator privileges
on error
-----ここはエラー制御なし
end try
-----Cachesクリア Bridge CC 2015 version 6.3
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 with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/com.adobe.bridge6.3' '" & theTmpPath2015 & "/Caches'") as text
do shell script theCommand with administrator privileges
on error
-----ここはエラー制御なし
end try

-----temporary itemsクリア
try
set theUserBridgeDir to path to temporary items
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe' '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand with administrator privileges
on error
-----ここはエラー制御なし
end try


-----temporary itemsクリア
try
set theUserBridgeDir to path to temporary items
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand with administrator privileges
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe Output Module' '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand with administrator privileges
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


「Install_Adobe_Output_Module_CC2015.scpt.zip」をダウンロード

|

BridgeCC2015の出力パネル|AOM(Adobe Output Module)

Bridge CC 2015 version 6.3
出力パネル(Adobe Output Module)の
ワークスペースが別になりましたとさ

Website_image00280721_232557


今回もアクセス権に問題がるので
マルチユーザー環境で利用する方は留意してください
詳しくはこちら
http://force4u.cocolog-nifty.com/skywalker/2016/05/bridgeccaomadob.html


内容はさして違いませんが
CC版も一応新しくなっていますので
ブリッジでトラブっている方は
新しくしてみるのも良いかもです

Website_image00280721_234338


|

BridgeCCの出力パネル|AOM(Adobe Output Module)のリセット

こちらの記事
BridgeCCの出力パネル|AOM(Adobe Output Module)のインストール
http://force4u.cocolog-nifty.com/skywalker/2016/05/bridgeccaomadob.html
のスクリプトを発展させて
リセットする物に変更した

Bridge CS6とBridge CCを交互に使う環境で発生する
IOエラーを解消させるのが目的

確認はしていないが
テンポラリーアイテムに生成される一時ファイル用のディレクトリ名が重複する場合に発生すると思っているので
この辺りもクリアしている。

Website_image00280529_01938


一部の初期設定ファイルが削除される
そのため、利用については自己責任で

(*
AOM(Adobe Output Module)インストーラー
20151219 初回作成
20151221 一部修正
20151224 ログ表示部修正
20151225 sudoの一部誤り訂正
20160510 Adobeのサーバー側のリダイレクトに対応
20160517 キャッシュの削除を含めて初期化する処理に変更
20160529 Reset_Adobe_Output_Module_BridgeCC.scptに名称変更
【ポイント】
一部の環境(Bridge CS6版とBridge CC版を併用する方)で発生する
出力パネルの『I/oエラー』が発生する場合
このスクリプトを実行すると解決する事があります。(必ずではないですが

【留意事項】
一部初期設定等をリセットします。
設定等をリセットしないインストールだけの場合は
こちら
http://force4u.cocolog-nifty.com/skywalker/2016/05/bridgeccaomadob.html
を利用してください

AOM(Adobe Output Module)Mac版は
解凍時のアクセス権の影響で
複数の人が同じ機器を利用する場合
インストールした人以外が出力パネルを利用出来ない(エラーになる)
インストールからアクセス権設定までを自動化して
トラブル防止用に作成した
業務用に作成した物を可読性を配慮して作り直した
アクセス権でstaffにフルアクセス権を付けている(ここは好みの問題)
Bridge Help / Install Adobe Output Module
https://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html
詳しくはこちら
http://force4u.cocolog-nifty.com/skywalker/2015/12/aomadobe-output.html
*)

----ログを表示
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 theNowTime to (my doDateAndTIme(current date)) as text
---テンポラリー用フォルダのパスを定義
set theTrashDir to ("/tmp/" & theNowTime) as text


-----テンポラリーフォルダを作成
try
set theCommand to ("mkdir -pv " & theTrashDir) as text
do shell script theCommand
set theTmpPath to theTrashDir as text
delay 1
on error
return "テンポラリフォルダ作成でエラーが発生しました"
end try

-----ファイルをダウンロード
try
set theCommand to ("curl -L -o '" & theTmpPath & "/AOM_Mac_New.zip' 'https://helpx.adobe.com/content/help/en/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_1/file.res/AOM_Mac_New.zip'") as text
do shell script theCommand
delay 1
on error
return "ダウンロードでエラーが発生しました"
end try
-----ファイルを解凍
try
set theCommand to ("unzip '" & theTmpPath & "/AOM_Mac_New.zip' -d '" & theTmpPath & "'") as text
do shell script theCommand
delay 1
on error
return "ファイルの解凍でエラーが発生しました"
end try
-----インストール先のフォルダを確保
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
-----ワークススペースファイルを移動(おきかえ)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/AdobeOutputModule.workspace' '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
---ここはエラー制御無しでOKかな
end try
-----モジュールを移動(エラーしたら削除してから新しいファイルを移動)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/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' '" & theTmpPath & "'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC Extensions'") as text
do shell script theCommand with administrator privileges
end try
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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

-----Workspacesキャッシュクリア
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 '" & theTmpPath & "/Support'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge CC' '" & theTmpPath & "/Support'") as text
do shell script theCommand
on error
-----ここはエラー制御なし
end try

-----Commonクリア
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 '" & theTmpPath & "/Common'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Common' '" & theTmpPath & "/Common'") as text
do shell script theCommand
on error
-----ここはエラー制御なし
end try

-----Preferencesクリア
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 '" & theTmpPath & "/Preferences'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge' '" & theTmpPath & "/Preferences'") as text
do shell script theCommand
on error
-----ここはエラー制御なし
end try





-----plistクリア
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 '" & theTmpPath & "/Preferences'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "com.adobe.bridge6.plist' '" & theTmpPath & "/Preferences'") as text
do shell script theCommand
on error
-----ここはエラー制御なし
end try



-----Cachesクリア
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 '" & theTmpPath & "/Caches'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Caches/Adobe' '" & theTmpPath & "/Caches'") as text
do shell script theCommand
on error
-----ここはエラー制御なし
end try

-----temporary itemsクリア
try
set theUserBridgeDir to path to temporary items
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe' '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand
on error
-----ここはエラー制御なし
end try


-----temporary itemsクリア
try
set theUserBridgeDir to path to temporary items
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mkdir -p '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe Output Module' '" & theTmpPath & "/TemporaryItems'") as text
do shell script theCommand
on error
-----ここはエラー制御なし
end try


-----com.adobe.headlightsクリア
try
set theCommand to ("defaults -currentHost delete com.adobe.headlights") 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


「Reset_Adobe_Output_Module_BridgeCC.scpt.zip」をダウンロード

|

BridgeCCの出力パネル|AOM(Adobe Output Module)のインストール

こちらの記事
BridgeCCの出力パネル|AOM(Adobe Output Module)のアクセス権を修正する
http://force4u.cocolog-nifty.com/skywalker/2015/12/aomadobe-output.html

修正版


「Install_Adobe_Output_Module.scpt.zip」をダウンロード

(*
AOM(Adobe Output Module)インストーラー
20151219 初回作成
20151221 一部修正
20151224 ログ表示部修正
20151225 sudoの一部誤り訂正
20160510 Adobeのサーバー側のリダイレクトに対応


AOM(Adobe Output Module)Mac版は
解凍時のアクセス権の影響で
複数の人が同じ機器を利用する場合
インストールした人以外が出力パネルを利用出来ない(エラーになる)
インストールからアクセス権設定までを自動化して
トラブル防止用に作成した
業務用に作成した物を可読性を配慮して作り直した
アクセス権でstaffにフルアクセス権を付けている(ここは好みの問題)
Bridge Help / Install Adobe Output Module
https://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html
詳しくはこちら
http://force4u.cocolog-nifty.com/skywalker/2015/12/aomadobe-output.html
*)

----ログを表示
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 theNowTime to (my doDateAndTIme(current date)) as text
---テンポラリー用フォルダのパスを定義
set theTrashDir to ("/tmp/" & theNowTime) as text


-----テンポラリーフォルダを作成
try
set theCommand to ("mkdir -pv " & theTrashDir) as text
do shell script theCommand
set theTmpPath to theTrashDir as text
delay 1
on error
return "テンポラリフォルダ作成でエラーが発生しました"
end try

-----ファイルをダウンロード
try
set theCommand to ("curl -L -o '" & theTmpPath & "/AOM_Mac_New.zip' 'https://helpx.adobe.com/content/help/en/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_1/file.res/AOM_Mac_New.zip'") as text
---リダイレクト先への直リンクの場合はこちら
---set theCommand to ("curl -L -o '" & theTmpPath & "/AOM_Mac_New.zip' 'https://helpx.adobe.com/en/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_1/file.res/AOM_Mac_New.zip'") as text
do shell script theCommand
delay 1
on error
return "ダウンロードでエラーが発生しました"
end try
-----ファイルを解凍
try
set theCommand to ("unzip '" & theTmpPath & "/AOM_Mac_New.zip' -d '" & theTmpPath & "'") as text
do shell script theCommand
delay 1
on error
return "ファイルの解凍でエラーが発生しました"
end try
-----インストール先のフォルダを確保
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
-----ワークススペースファイルを移動(おきかえ)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/AdobeOutputModule.workspace' '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
---ここはエラー制御無しでOKかな
end try
-----モジュールを移動(エラーしたら削除してから新しいファイルを移動)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/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' '" & theTmpPath & "'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC Extensions'") as text
do shell script theCommand with administrator privileges
end try
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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

-----キャッシュクリア
try
set theUserBridgeDir to path to application support folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge CC/Workspaces/!!-$$$AdobeOutputModule.workspace' '" & theTmpPath & "'") 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

ソースはこちら
https://github.com/force4u/Install_Adobe_Output_Module.scpt


 

|

BridgeCCの出力パネル|AOM(Adobe Output Module)のアクセス権を修正する

Bridge Help / Install Adobe Output Module
https://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html

以前にも記事にしました
http://force4u.cocolog-nifty.com/skywalker/2014/01/adobe-bridge-ou.html

いまさら…な感じですが…
今の現場は複数のアカウントで同じMacを利用するので
アクセス権の問題が出る
現場ではRemote Desktopのサイレントインストールで修正しているが
家で仕事している人に頼まれたのでスクリプトにした

アクセス権の問題は以下を参照ください
ユーザー以外にアクセス権が無いファイルを
『移動』で手動インストールするために
インストールした人以外が利用出来ない…って事になります。


Website_image00271219_154331

ソースはこちらから
https://github.com/force4u/Install_Adobe_Output_Module.scpt/blob/master/Install_Adobe_Output_Module.scpt


「Install_Adobe_Output_Module.scpt.zip」をダウンロード


(*
AOM(Adobe Output Module)インストーラー
20151219 初回作成
20151221 一部修正
20151224 ログ表示部修正
20151225 sudoの一部誤り訂正

AOM(Adobe Output Module)Mac版は
解凍時のアクセス権の影響で
複数の人が同じ機器を利用する場合
インストールした人以外が出力パネルを利用出来ない(エラーになる)
インストールからアクセス権設定までを自動化して
トラブル防止用に作成した
業務用に作成した物を可読性を配慮して作り直した
アクセス権でstaffにフルアクセス権を付けている(ここは好みの問題)
Bridge Help / Install Adobe Output Module
https://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html
詳しくはこちら
http://force4u.cocolog-nifty.com/skywalker/2015/12/aomadobe-output.html
*)

----ログを表示
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 theNowTime to (my doDateAndTIme(current date)) as text
---テンポラリー用フォルダのパスを定義
set theTrashDir to ("/tmp/" & theNowTime) as text


-----テンポラリーフォルダを作成
try
set theCommand to ("mkdir -pv " & theTrashDir) as text
do shell script theCommand
set theTmpPath to theTrashDir as text
delay 1
on error
return "テンポラリフォルダ作成でエラーが発生しました"
end try

-----ファイルをダウンロード
try
set theCommand to ("curl -o '" & theTmpPath & "/AOM_Mac_New.zip' 'https://helpx.adobe.com/content/help/en/bridge/kb/install-output-module-bridge-cc/_jcr_content/main-pars/download_1/file.res/AOM_Mac_New.zip'") as text
do shell script theCommand
delay 1
on error
return "ダウンロードでエラーが発生しました"
end try
-----ファイルを解凍
try
set theCommand to ("unzip '" & theTmpPath & "/AOM_Mac_New.zip' -d '" & theTmpPath & "'") as text
do shell script theCommand
delay 1
on error
return "ファイルの解凍でエラーが発生しました"
end try
-----インストール先のフォルダを確保
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
-----ワークススペースファイルを移動(おきかえ)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/AdobeOutputModule.workspace' '/Library/Application Support/Adobe/Bridge CC Extensions/Workspaces'") as text
do shell script theCommand with administrator privileges
on error
---ここはエラー制御無しでOKかな
end try
-----モジュールを移動(エラーしたら削除してから新しいファイルを移動)
try
set theCommand to ("sudo mv -f '" & theTmpPath & "/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' '" & theTmpPath & "'") as text
do shell script theCommand with administrator privileges
set theCommand to ("sudo mv -f '" & theTmpPath & "/AOM_Mac/Adobe Output Module' '/Library/Application Support/Adobe/Bridge CC Extensions'") as text
do shell script theCommand with administrator privileges
end try
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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
-----アクセス権を修正775(アクセス権は好みで)
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 staff '/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

-----キャッシュクリア
try
set theUserBridgeDir to path to application support folder from user domain
set theUserBridgeDir to (POSIX path of theUserBridgeDir) as text
set theCommand to ("mv -f '" & theUserBridgeDir & "Adobe/Bridge CC/Workspaces/!!-$$$AdobeOutputModule.workspace' '" & theTmpPath & "'") 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

|

1ページに3頁分面付けしたPDFを作る

A4サイズの表示変更についてLINK
答えてみました。

1:PDFを全ての頁に分割する
2:ブリッジで面付け〜PDF化する

本当はCUPS-PDFLINK
カスタム用紙サイズ作って印刷するのが
最も簡単と思いますが
「カスタム用紙サイズ」が解りにくいかな?と…

まぁAdobe InDesignでやった方が奇麗に出来ますが
Adobe InDesignは一般な人には敷居が高く感じるようですので
(Bridgeの方がややこしいか?…汗)

設定は以下のようにすれば
1頁に3頁を面付けしたPDFが出来ます


Adobe_bridge_cs6


------------------------------

CUPS-PDFなら
こんな設定で

カスタム用紙サイズ
Papersize



CUPS-PDFでPDF化
Cupspdf

この方法だと
CUPS-PDFとAdobe Readerで作れますから
ぶっちゃけコストパフォーマンスは良いですね


|

より以前の記事一覧

その他のカテゴリー

Accessibility AccessibilityCheck AccessibilityForm AccessibilityInDesign AccessibilityPDF Acrobat Acrobat Action Acrobat Annotation Acrobat AppleScript Acrobat Layer Acrobat Plug-ins Acrobat Portfolios Acrobat Print AcrobatBarcode AcrobatDialog AcrobatForm AcrobatJS AcrobatMenu AcrobatPDF AcrobatStamp AcrobatYouTube AddressBook Adobe Adobe InDesign AdobeAppleScript AdobeBridge AdobeIllustrator AdobeJSX aed Alfresco Android AnimationGif Apple AppleScript AppleScriptBasics AppleScriptCharacter AppleScriptColor AppleScriptDroplet AppleScriptErrorNum AppleScriptFolder AppleScriptFontBook AppleScriptRename AppleScriptTools AppleSymbols Applications Barcode Barcode2D BarcodePostal BetterHTMLExport Book Browser buzz Certificates CharacterEntity CharacterSets Colors Cool Site CSS Cutting DecoMail DecorationMail Design Desktop Diff DJ dmg DNS Documents Download eBook Editer eMail Envelopes ExifTool Facebook FFmpeg File System Fonts FontsTool FontsWeb FOOD FormPrint ftp Gadget Gif Animation Google HexEditor HTML info iPhoto ISBN ISO iTunes iWork iWorkNumbers iWorkNumbersCalendar iWorkNumbersTimecard iWorkPages JavaScript JeditX JeditX Regexp JeditXAppleScript JIS jquery Letterpress Library logo Mac Admin Mac Archiver Mac Browser Mac Browser Plugin Mac QuickLook Mac Spotlight Mac Video Map Mobby Moto Movies Music Network Basic ntp OCR Office OSX Pantone Paper PDFlib Permission Photo Pictograms Print Public QuickLook QuickTime QuickTimeSetting QuickTimeSound Real Media ReName ResourceFork ruby Screen ScreenCast Search Security SEO Sharing SLAResource Spotlight Stamp SWF Tutorial PSD TV Twitter Typography Unicode Utilities Video WebFont Wedding Windows WindowsMedia XML XMP XPS YouTube YouTube Rss