Acrobat SCA

【Acrobat】インストーラー・アップデータ

1:従来版
2:SCA(SingleClientApp) Unified App版



1:従来版・エンタープライズ版
1−1:インストーラー
  1−1−1:製品版
  https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-1126c1.html
  1−1−2:リーダー無償版
  https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-614314.html
1−2:アップデータ
  1−2−1:製品版
  https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-3a0ba2.html
  1−2−2:リーダー無償版
  https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-8b37a3.html



2:SCA(SingleClientApp) Unified App版

新規インストーラー 常に最新
製品版
https://trials.adobe.com/AdobeProducts/APRO/Acrobat_HelpX/osx10/AcrobatSCA_DC_Web_WWMUI.dmg

2−1:インストーラー
  2−1−1:製品版・リーダー無償版共通
  https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-645472.html
2−2:アップデータ
  2−2−1:製品版・リーダー無償版共通
  https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-d64536.html
AcrobatSCA DC製品版




Classic Reader版は無い
[Acrobat Classic]最新アップデーターのURLを取得する
https://quicktimer.cocolog-nifty.com/icefloe/2024/08/post-757bbd.html


2020
新規インストーラー 
製品版
https://trials.adobe.com/AdobeProducts/APRO/Acrobat_HelpX/osx10/Acrobat_2020_Web_WWMUI.dmg
リーダー無償版 初期版
https://ardownload2.adobe.com/pub/adobe/reader/mac/Acrobat2020/2000130002/AcroRdr2020_2000130002_MUI.dmg
https://ardownload2.adobe.com/pub/adobe/reader/mac/Acrobat2020/2000130002/AcroRdr2020_2000130002_MUI.pkg
言語パック
https://ardownload2.adobe.com/pub/adobe/reader/mac/Acrobat2020/misc/FontPack2000130002_XtdAlf_Lang_2020.dmg
スペル辞書
https://ardownload2.adobe.com/pub/adobe/reader/mac/Acrobat2020/misc/AcroRdrSD2000130002_all_2020.dmg

[2020 Classic Track ]Acrobat製品版アップデータ一覧
https://quicktimer.cocolog-nifty.com/icefloe/2024/04/post-c1037f.html
[2020 Classic Track ]Acroabt Reader 無償版アップデータ一覧
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-e93b54.html



それ以前の古いバージョン リーダー版
https://quicktimer.cocolog-nifty.com/icefloe/2024/03/post-1e4019.html


従来版・エンタープライズ版のアップデータ
DC
https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html#continuous-track
2020
https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html#classic-track
Classic
https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html#acrobat-classic-track
上記以前
https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html#legacy-products



従来版・エンタープライズ版 新規インストーラー一覧
従来版 macOS版 DC 製品版
常に最新
https://trials.adobe.com/AdobeProducts/APRO/Acrobat_HelpX/osx10/Acrobat_DC_Web_WWMUI.dmg


24 現行
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400220759/AcrobatDC2400220759_MUI.pkg
24 初回
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400120604/AcrobatDC2400120604_MUI.pkg

23 最終
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2300820555/AcrobatDC2300820555_MUI.pkg

23 初回
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2300120063/AcrobatDC2300120063_MUI.pkg

22 最終
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2200320314/AcrobatDC2200320314_MUI.pkg

22 初回
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2200120085/AcrobatDC2200120085_MUI.pkg

21 最終
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2101120039/AcrobatDC2101120039_MUI.pkg

21 初回
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2100120135/AcrobatDC2100120135_MUI.pkg



エンタープライズ用
#従来版のAcrobat2018
https://trials.adobe.com/AdobeProducts/APRO/Acrobat_HelpX/osx10/Acrobat_DC_Web_WWMUI_1010.dmg
#従来版のAcrobat2020
https://trials.adobe.com/AdobeProducts/APRO/Acrobat_HelpX/osx10/Acrobat_DC_Web_WWMUI_1012.dmg
#従来版のAcrobat2021
https://trials.adobe.com/AdobeProducts/APRO/Acrobat_HelpX/osx10/Acrobat_DC_Web_WWMUI_1013.dmg
#従来版のAcrobat2022
https://trials.adobe.com/AdobeProducts/APRO/Acrobat_HelpX/osx10/Acrobat_DC_Web_WWMUI_1014.dmg
#従来版のAcrobat2023
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2300820423/AcrobatDC2300820423_MUI.pkg


それより古いお試し版配布時のURL
15
http://trials.adobe.com/AdobeProducts/APRO/15/osx10/Acrobat_DC_Web_WWMUI.dmg
17
http://trials.adobe.com/AdobeProducts/APRO/17/osx10/Acrobat_DC_Web_WWMUI.dmg
18
http://trials.adobe.com/AdobeProducts/APRO/18/osx10/Acrobat_DC_Web_WWMUI.dmg
19
http://trials.adobe.com/AdobeProducts/APRO/19/osx10/Acrobat_DC_Web_WWMUI.dmg
20
http://trials.adobe.com/AdobeProducts/APRO/20/osx10/Acrobat_DC_Web_WWMUI.dmg



ClassicTrack版
#従来版のAcrobat2015
https://trials.adobe.com/AdobeProducts/APRO/Acrobat_HelpX/osx10/Acrobat_2015_Web_WWMUI.dmg
About_x2_20241003192501

#従来版のAcrobat2017
https://trials.adobe.com/AdobeProducts/APRO/Acrobat_HelpX/osx10/Acrobat_2017_Web_WWMUI.dmg
About_x2

#従来版のAcrobat2020
https://trials.adobe.com/AdobeProducts/APRO/Acrobat_HelpX/osx10/Acrobat_2020_Web_WWMUI.dmg
20241003071611_1190x1040



オプション
2017
http://prdl-download.adobe.com/Acrobat%20Professional/7D1CAD83986848F092F39734E60DCFEA/1508139532629/Acrobat_DC_Web_WWMUI.dmg
2019
http://prdl-download.adobe.com/Acrobat%20Professional/D7F54F0D29444633826976D79A5A752C/1551166390837/Acrobat_DC_Web_WWMUI.dmg

|

[Manifest] AcrobatのアップデータURLを取得する(まとめ)更新

Adobeの掲示板にも書き込みました

Mac版です
Windowsはこちら
Acrobat Classicが SCA (SingleClientApp)版 Unified App 版として追加された
バージョン取得テキスト

■SCA(SingleClientApp) Unified App版
https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/acrobatSCA/current_version.txt
Acrobat
https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/acrobat/current_version.txt
https://armmf.adobe.com/arm-manifests/mac/Acrobat2020/acrobat/current_version.txt
https://armmf.adobe.com/arm-manifests/mac/Acrobat2017/acrobat/current_version.txt
https://armmf.adobe.com/arm-manifests/mac/Acrobat2015/acrobat/current_version.txt
#新しく追加されたクラッシック リーダー版は無い
https://armmf.adobe.com/arm-manifests/mac/Classic/acrobatSCA/current_version.txt

Reader
https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/reader/current_version.txt
https://armmf.adobe.com/arm-manifests/mac/Acrobat2020/reader/current_version.txt
https://armmf.adobe.com/arm-manifests/mac/Acrobat2017/reader/current_version.txt
https://armmf.adobe.com/arm-manifests/mac/Acrobat2015/reader/current_version.txt



マニフェスト
■SCA(SingleClientApp) Unified App版
https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/acrobatSCA/AcrobatSCAManifest.arm
Acrobat
https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/acrobat/AcrobatManifest.arm"
https://armmf.adobe.com/arm-manifests/mac/Acrobat2020/acrobat/AcrobatManifest.arm
https://armmf.adobe.com/arm-manifests/mac/Acrobat2017/acrobat/AcrobatManifest.arm
https://armmf.adobe.com/arm-manifests/mac/Acrobat2015/acrobat/AcrobatManifest.arm
#新しく追加されたクラッシック
https://armmf.adobe.com/arm-manifests/mac/Classic/acrobatSCA/AcrobatSCAManifest.arm

Reader
https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/reader/ReaderManifest.arm
https://armmf.adobe.com/arm-manifests/mac/Acrobat2020/reader/ReaderManifest.arm
https://armmf.adobe.com/arm-manifests/mac/Acrobat2017/reader/ReaderManifest.arm
https://armmf.adobe.com/arm-manifests/mac/Acrobat2015/reader/ReaderManifest.arm




ここからは先の更新前の記事と同じ


1:macOS用
2:Windows用


1:macOS用
AppleScript
1−1:従来版
1−1−1:従来版 Acrobat製品版
【従来版】Acrobat DC製品版 の最新のアップデートPKGのURLを取得する
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-3a0ba2.html


1−1−2:従来版 Reader版
【従来版】Acrobat Readerの最新のアップデートPKGのURLを取得する
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-8b37a3.html


1−2:SCA版
【SCA版】Acrobat 最新版のアップデートPKGのURLを取得する(製品版DCとReader版Mini両方含みます)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-d64536.html


1−3:Acrobat Classic SCA版
https://quicktimer.cocolog-nifty.com/icefloe/2024/08/post-dd47d7.html




BASH
1−1:従来版
1−1−1:従来版 Acrobat製品版
[bash]従来版 Acrobat製品版 インストールパッケージURL取得
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-8ad0c6.html

1−1−2:従来版 Reader版
[bash]従来版 Reader版 インストールパッケージURL取得
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-d68468.html

1−2:SCA版
[bash]SCA(SingleClientApp) Unified App版の最新アップデータのURLを取得する(製品版FULLとReader版Mini両方含みます)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-cc8915.html

1−3:Acrobat Classic SCA版
https://quicktimer.cocolog-nifty.com/icefloe/2024/08/post-dd47d7.html



2:Windows用
A:アップデータ全部URLのセット
https://quicktimer.cocolog-nifty.com/icefloe/files/acrobatwindows.zip

B:最新版のみ取得のセット
https://quicktimer.cocolog-nifty.com/icefloe/files/acrobatwindowsmanifest.zip

最新アップデート64bitのみ
[Manifest] Acrobat とReader の64 bit Windows版の最新版のみ アップデータのURLを取得する
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-7670ef.html

2−1:Acrobat製品版
全部のパッチURL
[Windows]Windows版のAcrobat製品版のアップデータのURLを『全部』取得する
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-714cce.html

2−1−1:32bit版
[Manifest] Acrobat 32 bit Windows版の最新版のみ アップデータのURLを取得する
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-8e7003.html

2−1−2:64bit版
[Manifest] Acrobat 64 bit Windows版の最新版のみ アップデータのURLを取得する
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-2ca2e7.html

2−2:Reader版
全部のパッチURL
[Windows]Windows版のAcrobat Reader版のアップデータのURLを『全部』取得する
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-544fa7.html

2−2−1:32bit版
[Manifest] Reader 32 bit Windows版の最新版のみ アップデータのURLを取得する
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-d33532.html

2−2−2:64bit版
[Manifest] Reader 64 bit Windows版の最新版のみ アップデータのURLを取得する
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-7dcf98.html

|

Acrobat SCA (SingleClientApp)版 Unified App 版 現時点まとめ(更新)

ClassicTrackに変更が入った
Gvfzj7ca4aandxe

バージョン確認用のテキストURLは
https://armmf.adobe.com/arm-manifests/mac/Classic/acrobatSCA/current_version.txt
マニフェストXMLのURLは
https://armmf.adobe.com/arm-manifests/mac/Classic/acrobatSCA/AcrobatSCAManifest.arm

AcrobatSCAManifest.arm
こちらは圧縮pkg形式なので
/usr/sbin/pkgutil --expand で解凍
解凍されると
ASSET/AcrobatSCAManifest.xmlにマニフェストのXMLが入っている

ダウンロードファイル
https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/acrobatclassic/acrobatclassicbase.html#acrobatclassic
について
ClassicトラックにもかかわらずSCAの文字がありバージョンも24になっている
設定ファイルも別となり
完全ではないが※、別アプリとして運用可能だし
同時起動できる

20240821053229_1404x366
※設定ファイルのplistは同時起動で同時に書き込みとか?で
ファイル破損はある話なので、あくまでも同時起動はオマケ的
20240821053439_990x886




それ以前の情報はこちらから
https://quicktimer.cocolog-nifty.com/icefloe/2024/07/post-d15048.html

Gpdgwdjacaetdlt22

|

Acrobat SCA (SingleClientApp)版 Unified App 版 現時点まとめ(更新)

Windows版は製品版、Reader版ともに
64bitがSCA=Unified Appって位置付け



Mac版
Acrobat SCA (SingleClientApp)版 Unified App 版 現時点まとめ(更新)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-37b2fa.html

Mac版のSCA版は以下のようなラインナップ
FULL=製品版
INTER=スタンダード版相当機能限定(プリフライトとペーパーキャプチャーが無い)
MINI=Reader相当

(Inter版の呼称は『Adobe Acrobat Next Pro』になっている)
Gtkmt1_aeaaygke




Windows版
[Windows]Acrobat Acrobat Readerのインストーラー アップデーター まとめ(更新)
https://quicktimer.cocolog-nifty.com/icefloe/2024/07/post-209623.html

カテゴリー
https://quicktimer.cocolog-nifty.com/icefloe/cat76058441/index.html



更新
SCA版最新版上書きインストール
[Acrobat] Acrobat DC製品版 SCA版の最新バージョンを上書きインストールする(要管理者アカウント設定)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-c113cf.html

[Acrobat] Acrobat Reader版mini SCA版の最新バージョンを上書きインストールする(要管理者アカウント設定)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-c8b30f.html



Sca001

Mini版でライセンスユーザーが利用できない機能は以下
Pro製品版にのみインストールされているプラグインは
Web2PDF.acroplugin WEBページをPDFに
TouchUp.acroplugin 修正
Scan.acroplugin スキャン
SaveAsXML.acroplugin XML書き出し
Preflight.acroplugin プリフライト
PaperCapture.acroplugin キャプチャー
ImageConversion.acroplugin コンバージョン
HTML2PDF.acroplugin HTMLのPDF化
DistillerPI.acroplugin ディスティラー
Compare.acroplugin コンペア 比較
Catalog.acroplugin カタログ インデックス
なので
基本的にはFULL版をインストールして使う事になる



パッケージURL取得
[bash]SCA(SingleClientApp) Unified App版の最新アップデータのURLを取得する(製品版FULLとReader版Mini両方含みます)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-cc8915.html

【SCA版】Acrobat 最新版のアップデートPKGと新規インストール用のPKGのURLを取得する(製品版DCとReader版Mini両方含みます)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-645472.html


[Acrobat macOS] 24.002.20854 ダウンロードURLリスト(従来版・SCA(SingleClientApp)版)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-5ffcdc.html




インストール
[Acrobat] Acrobat Reader版mini SCA版の最新バージョンを上書きインストールする(要管理者アカウント設定)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-c8b30f.html


[Acrobat] Acrobat DC製品版 SCA版の最新バージョンを上書きインストールする(要管理者アカウント設定)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-c113cf.html

|

[bash]SCA(SingleClientApp) Unified App版の最新アップデータのURLを取得する(製品版FULLとReader版Mini両方含みます)


サンプルコード

サンプルソース(参考)
行番号ソース
001#!/bin/bash
002#com.cocolog-nifty.quicktimer.icefloe
003# SCA(SingleClientApp) Unified App版
004# IDに MINIがつくのはREADER版
005# FULLは新規または上書きインストール用
006#################################################
007#ダウンロード先を確保
008LOCAL_TMP_DIR=$(/usr/bin/mktemp -d)
009/bin/echo "TMPDIR:" "$LOCAL_TMP_DIR"
010#保存先のパス
011STR_PKG_FILE_PATH="${LOCAL_TMP_DIR}/AcrobatSCAManifest.pkg"
012#ダウンロードURL
013STR_URL="https://armmf.adobe.com/arm-manifests/mac/AcrobatDC/acrobatSCA/AcrobatSCAManifest.arm"
014#ダウンロード
015if ! /usr/bin/curl -L -o "$STR_PKG_FILE_PATH" "$STR_URL" --connect-timeout 20; then
016  /bin/echo "ファイルのダウンロードに失敗しました HTTP1.1で再トライします"
017  if ! /usr/bin/curl -L -o "$STR_PKG_FILE_PATH" "$STR_URL" --http1.1 --connect-timeout 20; then
018    /bin/echo "ファイルのダウンロードに失敗しました"
019    exit 1
020  fi
021fi
022#################################################
023#解凍先パス
024STR_EXPAND_DIR_PATH="${LOCAL_TMP_DIR}/AcrobatSCAManifest"
025#解凍
026/usr/sbin/pkgutil --expand-full "$STR_PKG_FILE_PATH" "$STR_EXPAND_DIR_PATH"
027
028#################################################
029#出力用のテキスト
030STR_OUTPUT_TEXT=""
031#テキスト保存先
032STR_TEXT_FILE_PATH="${LOCAL_TMP_DIR}/AcrobatSCAManifest/AcrobatSCAManifest.txt"
033#XML保存先
034STR_XML_FILE_PATH="${LOCAL_TMP_DIR}/AcrobatSCAManifest/ASSET/AcrobatSCAManifest.xml"
035#XML読み込み
036XML_READ_DATA=$(/usr/bin/xmllint --format "$STR_XML_FILE_PATH")
037#XMLをdItemだけ読み込んで
038STR_DITEM=$(/bin/echo "$XML_READ_DATA" | /usr/bin/xmllint --xpath '//dItem' -)
039#改行でリストにする
040IFS=$'\n' read -r -d '' -a LIST_DITEM <<<"$STR_DITEM"
041for ITEM_DITEM in "${LIST_DITEM[@]}"; do
042  #ID
043  STR_ID=$(/bin/echo "$ITEM_DITEM" | /usr/bin/xmllint --xpath 'string(/dItem/@id)' -)
044  #URLだけ必要な場合はここを出力しなければいい
045  /bin/echo "STR_ID : " "$STR_ID" >>"$STR_TEXT_FILE_PATH"
046  #httpURLBase
047  STR_URLBASE=$(/bin/echo "$ITEM_DITEM" | /usr/bin/xmllint --xpath 'string(/dItem/@httpURLBase)' -)
048  /bin/echo "STR_URLBASE : " "$STR_URLBASE"
049  #httpURLBase
050  STR_URL_PATH=$(/bin/echo "$ITEM_DITEM" | /usr/bin/xmllint --xpath 'string(/dItem/@URL)' -)
051  /bin/echo "STR_URL_PATH : " "$STR_URL_PATH"
052  #fileName
053  STR_FILE_NAME=$(/bin/echo "$ITEM_DITEM" | /usr/bin/xmllint --xpath 'string(/dItem/@fileName)' -)
054  /bin/echo "STR_FILE_NAME : " "$STR_FILE_NAME"
055
056  STR_OUTPUT_TEXT="${STR_URLBASE}/${STR_URL_PATH}/${STR_FILE_NAME}"
057  /bin/echo "$STR_OUTPUT_TEXT" >>"$STR_TEXT_FILE_PATH"
058  /bin/echo "" >>"$STR_TEXT_FILE_PATH"
059done
060
061#################################################
062#収集したURLテキストを開く
063/usr/bin/open "$STR_TEXT_FILE_PATH"
064
065exit 0
AppleScriptで生成しました

|

【SCA版】Acrobat 最新版のアップデートPKGと新規インストール用のPKGのURLを取得する(製品版DCとReader版Mini両方含みます)


AppleScript サンプルコード

【スクリプトエディタで開く】 |

AppleScript サンプルソース(参考)
行番号ソース
001#! /usr/bin/env osascript
002----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
003(*
004シングルクライアントアプリケーションSCA版のAcrobatの
005最新アップデーターのURLを取得します
006com.cocolog-nifty.quicktimer.icefloe *)
007----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
008use AppleScript version "2.8"
009use framework "Foundation"
010use framework "AppKit"
011use scripting additions
012
013property refMe : a reference to current application
014
015property refNSNotFound : a reference to 9.22337203685477E+18 + 5807
016
017
018##############################
019#ダウンロードするURL
020set ocidURLComponents to refMe's NSURLComponents's alloc()'s init()
021ocidURLComponents's setScheme:"https"
022ocidURLComponents's setHost:"armmf.adobe.com"
023ocidURLComponents's setPath:"/arm-manifests/mac/AcrobatDC/acrobatSCA/AcrobatSCAManifest.arm"
024set ocidURLStrings to ocidURLComponents's |URL|'s absoluteString()
025set ocidURL to refMe's NSURL's alloc()'s initWithString:(ocidURLStrings)
026log ocidURL's absoluteString() as text
027
028##############################
029#起動時に削除される項目にダウンロード
030set appFileManager to refMe's NSFileManager's defaultManager()
031set ocidTempDirURL to appFileManager's temporaryDirectory()
032set ocidUUID to refMe's NSUUID's alloc()'s init()
033set ocidUUIDString to ocidUUID's UUIDString
034set ocidSaveDirPathURL to ocidTempDirURL's URLByAppendingPathComponent:(ocidUUIDString) isDirectory:(true)
035#フォルダを作っておく
036set ocidAttrDict to refMe's NSMutableDictionary's alloc()'s initWithCapacity:0
037ocidAttrDict's setValue:(511) forKey:(refMe's NSFilePosixPermissions)
038set listDone to appFileManager's createDirectoryAtURL:(ocidSaveDirPathURL) withIntermediateDirectories:(true) attributes:(ocidAttrDict) |error| :(reference)
039if (item 1 of listDone) is true then
040  log "createDirectoryAtURL 正常処理"
041else if (item 2 of listDone) ≠ (missing value) then
042  log (item 2 of listDone)'s code() as text
043  log (item 2 of listDone)'s localizedDescription() as text
044  return "createDirectoryAtURL エラーしました"
045end if
046#保存パス
047set strSaveFileName to "AcrobatSCAManifest.pkg" as text
048set ocidSaveFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:(strSaveFileName) isDirectory:(false)
049
050##############################
051#NSDATAでダウンロード
052set ocidOption to (refMe's NSDataReadingMappedIfSafe)
053set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidURL) options:(ocidOption) |error| :(reference)
054if (item 2 of listResponse) = (missing value) then
055  log "正常処理"
056  set ocidReadData to (item 1 of listResponse)
057else if (item 2 of listResponse) ≠ (missing value) then
058  log (item 2 of listResponse)'s code() as text
059  log (item 2 of listResponse)'s localizedDescription() as text
060  return "エラーしました"
061end if
062
063##############################
064#保存
065set ocidOption to (refMe's NSDataWritingAtomic)
066set listDone to ocidReadData's writeToURL:(ocidSaveFilePathURL) options:(ocidOption) |error| :(reference)
067if (item 1 of listDone) is true then
068  log "正常処理"
069else if (item 2 of listDone) ≠ (missing value) then
070  log (item 2 of listDone)'s code() as text
071  log (item 2 of listDone)'s localizedDescription() as text
072  return "エラーしました"
073end if
074##############################
075#PKG解凍
076set strPkgPath to (ocidSaveFilePathURL's |path|()) as text
077#解凍先
078set ocidDistDirPathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:("UnArchived") isDirectory:(true)
079set strDistPath to (ocidDistDirPathURL's |path|()) as text
080#コマンド実行
081set strComandText to ("/usr/sbin/pkgutil  --expand  \"" & strPkgPath & "\" \"" & strDistPath & "\"") as text
082log strComandText
083try
084  do shell script strComandText
085on error
086  return "pkgutilでエラーになりました"
087end try
088
089##############################
090#マニフェスト読み込み
091#XMLパス
092set ocidXmlFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:("UnArchived/ASSET/AcrobatSCAManifest.xml") isDirectory:(true)
093##############################
094#NSDATAに読み込み
095set ocidOption to (refMe's NSDataReadingMappedIfSafe)
096set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidXmlFilePathURL) options:(ocidOption) |error| :(reference)
097if (item 2 of listResponse) = (missing value) then
098  log "initWithContentsOfURL 正常処理"
099  set ocidReadData to (item 1 of listResponse)
100else if (item 2 of listResponse) ≠ (missing value) then
101  log (item 2 of listResponse)'s code() as text
102  log (item 2 of listResponse)'s localizedDescription() as text
103  return "initWithContentsOfURL エラーしました"
104end if
105##############################
106#XMLに読み込む
107set ocidOption to (refMe's NSXMLNodePreserveAll) + (refMe's NSXMLDocumentTidyHTML)
108set listResponse to refMe's NSXMLDocument's alloc()'s initWithData:(ocidReadData) options:(ocidOption) |error| :(reference)
109if (item 2 of listResponse) = (missing value) then
110  log "initWithData 正常処理"
111  set ocidXMLDoc to (item 1 of listResponse)
112else if (item 2 of listResponse) ≠ (missing value) then
113  log (item 2 of listResponse)'s code() as text
114  log (item 2 of listResponse)'s localizedDescription() as text
115  log "initWithData エラー 警告がありました"
116  set ocidXMLDoc to (item 1 of listResponse)
117end if
118##############################
119#出力用テキスト
120set ocidOutPutstring to refMe's NSMutableString's alloc()'s initWithCapacity:(0)
121ocidOutPutstring's appendString:("SCA版 Acrobatの最新パッチURL\n\n")
122set strSetInfoStr to ("dld_Patch_Mini_Incr:旧称Readerの差分パッチ\ndld_Patch_Mini_Cumulative:旧称Readerの累積パッチ\ndld_Patch_Combined_Incr:製品版DCの差分パッチ\ndld_Mini_Full: Reader版Miniの新規インストーラー上書き用\ndld_Acrobat_Full:製品版DCの新規インストーラー上書き用\ndld_Patch_Combined_Cumulative:製品版DCの累積パッチ\n") as text
123ocidOutPutstring's appendString:(strSetInfoStr)
124ocidOutPutstring's appendString:("\n")
125##############################
126#XML解析
127#ROOT
128set ocidRootElement to ocidXMLDoc's rootElement()
129set ocidActionItemsArray to ocidRootElement's elementsForName:("DownloadActionItems")
130set ocidActionItems to ocidActionItemsArray's firstObject()
131set ocidItemArray to (ocidActionItems's elementsForName:("dItem"))
132repeat with itemArray in ocidItemArray
133  (ocidOutPutstring's appendString:("----+----1----+----2----+-----3----+----4----+----5----+----6----+----7"))
134  (ocidOutPutstring's appendString:("\n"))
135  set ocidID to (itemArray's attributeForName:("id"))'s stringValue()
136  (ocidOutPutstring's appendString:(ocidID))
137  (ocidOutPutstring's appendString:("\n"))
138  #URL
139  set ocidHost to (itemArray's attributeForName:("httpURLBase"))'s stringValue()
140  set ocidPath to (itemArray's attributeForName:("URL"))'s stringValue()
141  set ocidLastPath to (itemArray's attributeForName:("fileName"))'s stringValue()
142  set ocidPkgURL to (refMe's NSURL's alloc()'s initWithString:(ocidHost))
143  set ocidPkgURL to (ocidPkgURL's URLByAppendingPathComponent:(ocidPath))
144  set ocidPkgURL to (ocidPkgURL's URLByAppendingPathComponent:(ocidLastPath))
145  set ocidSetURL to ocidPkgURL's absoluteString()
146  (ocidOutPutstring's appendString:(ocidSetURL))
147  (ocidOutPutstring's appendString:("\n"))
148  # log (itemArray's attributeForName:("signingEntity"))'s stringValue as text
149  # log (itemArray's attributeForName:("hashValue"))'s stringValue as text
150  #PKGのファイルサイズ
151  set ocidFileSizeStr to (itemArray's attributeForName:("size"))'s stringValue()
152  set ocidFileSizeDec to (refMe's NSDecimalNumber's alloc()'s initWithString:(ocidFileSizeStr))
153  set ocidThousandDec to (refMe's NSDecimalNumber's alloc()'s initWithString:("1000000"))
154  set ocidMBDec to (ocidFileSizeDec's decimalNumberByDividingBy:(ocidThousandDec))
155  set ocidFormatter to refMe's NSNumberFormatter's alloc()'s init()
156  (ocidFormatter's setRoundingMode:(refMe's NSNumberFormatterRoundFloor))
157  (ocidFormatter's setNumberStyle:(refMe's NSNumberFormatterDecimalStyle))
158  (ocidFormatter's setMaximumFractionDigits:(2))
159  set ocidMBstr to (ocidFormatter's stringFromNumber:(ocidMBDec))
160  (ocidOutPutstring's appendString:(ocidMBstr))
161  (ocidOutPutstring's appendString:(" MB"))
162  (ocidOutPutstring's appendString:("\n"))
163  
164end repeat
165
166
167##############################
168#テキスト保存
169set ocidSaveTextFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:("AcrobatSCAManifest.txt") isDirectory:(false)
170set listDone to ocidOutPutstring's writeToURL:(ocidSaveTextFilePathURL) atomically:(true) encoding:(refMe's NSUTF8StringEncoding) |error| :(reference)
171if (item 1 of listDone) is true then
172  log "writeToURL 正常処理"
173else if (item 2 of listDone) ≠ (missing value) then
174  log (item 2 of listDone)'s code() as text
175  log (item 2 of listDone)'s localizedDescription() as text
176  return "writeToURL エラーしました"
177end if
178
179##############################
180#開く
181set appSharedWorkspace to refMe's NSWorkspace's sharedWorkspace()
182set boolDone to appSharedWorkspace's openURL:(ocidSaveTextFilePathURL)
183
184if (boolDone) is true then
185  return "正常処理"
186else if (boolDone) is false then
187  return "エラーしました"
188end if
189
AppleScriptで生成しました

|

Acrobat SCA (SingleClientApp)版 Unified App 版 現時点まとめ(更新)

Windows版は製品版、Reader版ともに
64bitがSCA=Unified Appって位置付け



Mac版
Acrobat SCA (SingleClientApp)版 Unified App 版 現時点まとめ(更新)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-37b2fa.html


Windows版
[Windows]Acrobat Acrobat Readerのインストーラー アップデーター まとめ
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-64b4a3.html

カテゴリー
https://quicktimer.cocolog-nifty.com/icefloe/cat76058441/index.html



更新
SCA版最新版上書きインストール
[Acrobat] Acrobat DC製品版 SCA版の最新バージョンを上書きインストールする(要管理者アカウント設定)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-c113cf.html

[Acrobat] Acrobat Reader版mini SCA版の最新バージョンを上書きインストールする(要管理者アカウント設定)
https://quicktimer.cocolog-nifty.com/icefloe/2024/06/post-c8b30f.html



Sca001

Mini版でライセンスユーザーが利用できない機能は以下
Pro製品版にのみインストールされているプラグインは
Web2PDF.acroplugin WEBページをPDFに
TouchUp.acroplugin 修正
Scan.acroplugin スキャン
SaveAsXML.acroplugin XML書き出し
Preflight.acroplugin プリフライト
PaperCapture.acroplugin キャプチャー
ImageConversion.acroplugin コンバージョン
HTML2PDF.acroplugin HTMLのPDF化
DistillerPI.acroplugin ディスティラー
Compare.acroplugin コンペア 比較
Catalog.acroplugin カタログ インデックス
なので
基本的にはFULL版をインストールして使う事になる

|

[Acrobat] Acrobat Reader版mini SCA版の最新バージョンを上書きインストールする(要管理者アカウント設定)


AppleScript サンプルコード

【スクリプトエディタで開く】 |

AppleScript サンプルソース(参考)
行番号ソース
001#! /usr/bin/env osascript
002----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
003(*
004従来版のAcrobat Reader SCA版 Mini
005最新版を上書きインストールします
006# 【注意事項】必ず 『実行専用』の『アプリケーション』にしてください
007#管理者パスワードが平文で記述される事になりますので
008#セキュリティには留意ください
009com.cocolog-nifty.quicktimer.icefloe *)
010----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
011use AppleScript version "2.8"
012use framework "Foundation"
013use framework "AppKit"
014use scripting additions
015
016property refMe : a reference to current application
017
018property refNSNotFound : a reference to 9.22337203685477E+18 + 5807
019
020######################################
021#設定項目
022#管理者ユーザー名(ショート)
023set strAdminUserName to ("admin") as text
024#管理者パスワード
025set strAuthPW to ("管理者パスワード") as text
026
027##############################
028#ダウンロードするURL
029set ocidURLComponents to refMe's NSURLComponents's alloc()'s init()
030ocidURLComponents's setScheme:"https"
031ocidURLComponents's setHost:"armmf.adobe.com"
032ocidURLComponents's setPath:"/arm-manifests/mac/AcrobatDC/acrobatSCA/current_version.txt"
033set ocidURLStrings to ocidURLComponents's |URL|'s absoluteString()
034set ocidURL to refMe's NSURL's alloc()'s initWithString:(ocidURLStrings)
035log ocidURL's absoluteString() as text
036
037##############################
038#起動時に削除される項目にダウンロード
039set appFileManager to refMe's NSFileManager's defaultManager()
040set ocidTempDirURL to appFileManager's temporaryDirectory()
041set ocidUUID to refMe's NSUUID's alloc()'s init()
042set ocidUUIDString to ocidUUID's UUIDString
043set ocidSaveDirPathURL to ocidTempDirURL's URLByAppendingPathComponent:(ocidUUIDString) isDirectory:(true)
044#フォルダを作っておく
045set ocidAttrDict to refMe's NSMutableDictionary's alloc()'s initWithCapacity:0
046ocidAttrDict's setValue:(511) forKey:(refMe's NSFilePosixPermissions)
047set listDone to appFileManager's createDirectoryAtURL:(ocidSaveDirPathURL) withIntermediateDirectories:(true) attributes:(ocidAttrDict) |error| :(reference)
048if (item 1 of listDone) is true then
049  log "createDirectoryAtURL 正常処理"
050else if (item 2 of listDone) ≠ (missing value) then
051  log (item 2 of listDone)'s code() as text
052  log (item 2 of listDone)'s localizedDescription() as text
053  return "createDirectoryAtURL エラーしました"
054end if
055#保存パス
056set strSaveFileName to "current_version.txt" as text
057set ocidSaveFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:(strSaveFileName) isDirectory:(false)
058
059
060##############################
061#NSDATAでダウンロード
062set ocidOption to (refMe's NSDataReadingMappedIfSafe)
063set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidURL) options:(ocidOption) |error| :(reference)
064if (item 2 of listResponse) = (missing value) then
065  log "正常処理"
066  set ocidReadData to (item 1 of listResponse)
067else if (item 2 of listResponse) ≠ (missing value) then
068  log (item 2 of listResponse)'s code() as text
069  log (item 2 of listResponse)'s localizedDescription() as text
070  return "エラーしました"
071end if
072
073##############################
074#保存
075set ocidOption to (refMe's NSDataWritingAtomic)
076set listDone to ocidReadData's writeToURL:(ocidSaveFilePathURL) options:(ocidOption) |error| :(reference)
077if (item 1 of listDone) is true then
078  log "正常処理"
079else if (item 2 of listDone) ≠ (missing value) then
080  log (item 2 of listDone)'s code() as text
081  log (item 2 of listDone)'s localizedDescription() as text
082  return "エラーしました"
083end if
084##############################
085#テキスト抽出
086set ocidReadText to refMe's NSString's alloc()'s initWithData:(ocidReadData) encoding:(refMe's NSUTF8StringEncoding)
087log "最新バージョンは:" & (ocidReadText as text)
088#バージョン番号整形
089set ocidVersionText to (ocidReadText's stringByReplacingOccurrencesOfString:(".") withString:(""))
090
091
092##############################
093#ダウンロードするURL PKG
094set ocidURLComponents to refMe's NSURLComponents's alloc()'s init()
095ocidURLComponents's setScheme:("https")
096ocidURLComponents's setHost:("ardownload3.adobe.com")
097set strSetPath to ("/pub/adobe/acrobat/mac/AcrobatDC/" & ocidVersionText & "/AcroRdrSCADC" & ocidVersionText & "_MUI.pkg") as text
098ocidURLComponents's setPath:(strSetPath)
099set ocidURLStrings to ocidURLComponents's |URL|'s absoluteString()
100set ocidPKGURL to refMe's NSURL's alloc()'s initWithString:(ocidURLStrings)
101log ocidPKGURL's absoluteString() as text
102set ocidPKGFileName to ocidPKGURL's lastPathComponent()
103#保存パス
104set ocidPkgFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:(ocidPKGFileName) isDirectory:(false)
105
106##############################
107#ダウンロードするURL DMG
108set ocidURLComponents to refMe's NSURLComponents's alloc()'s init()
109ocidURLComponents's setScheme:("https")
110ocidURLComponents's setHost:("ardownload2.adobe.com")
111set strSetPath to ("/pub/adobe/acrobat/mac/AcrobatDC/" & ocidVersionText & "/AcroRdrSCADC" & ocidVersionText & "_MUI.dmg") as text
112ocidURLComponents's setPath:(strSetPath)
113set ocidURLStrings to ocidURLComponents's |URL|'s absoluteString()
114set ocidDMGURL to refMe's NSURL's alloc()'s initWithString:(ocidURLStrings)
115log ocidDMGURL's absoluteString() as text
116set ocidFileName to ocidPKGURL's lastPathComponent()
117#保存パス
118set ocidDmgFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:(ocidFileName) isDirectory:(false)
119
120log "ダウンロード開始"
121##############################
122#NSDATAに読み込み ダウンロード
123set ocidOption to (refMe's NSDataReadingMappedIfSafe)
124set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidPKGURL) options:(ocidOption) |error| :(reference)
125if (item 2 of listResponse) = (missing value) then
126  log "initWithContentsOfURL 正常処理"
127  set ocidReadData to (item 1 of listResponse)
128  set boolPKG to true as boolean
129else if (item 2 of listResponse) ≠ (missing value) then
130  log (item 2 of listResponse)'s code() as text
131  log (item 2 of listResponse)'s localizedDescription() as text
132  log "PKGURLのダウンロードに失敗しました DMGのダウンロードを試みます"
133  log "initWithContentsOfURL エラーしました"
134  set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidDMGURL) options:(ocidOption) |error| :(reference)
135  if (item 2 of listResponse) = (missing value) then
136    log "initWithContentsOfURL 正常処理"
137    set boolPKG to false as boolean
138    set ocidReadData to (item 1 of listResponse)
139  else if (item 2 of listResponse) ≠ (missing value) then
140    log (item 2 of listResponse)'s code() as text
141    log (item 2 of listResponse)'s localizedDescription() as text
142    return "initWithContentsOfURL エラーしました"
143  end if
144end if
145log "ダウンロード終了"
146##############################
147#保存
148if boolPKG with to then
149  set ocidSaveFilePathURL to ocidPkgFilePathURL
150else
151  set ocidSaveFilePathURL to ocidDmgFilePathURL
152end if
153set ocidOption to (refMe's NSDataWritingAtomic)
154set listDone to ocidReadData's writeToURL:(ocidSaveFilePathURL) options:(ocidOption) |error| :(reference)
155if (item 1 of listDone) is true then
156  log "正常処理"
157else if (item 2 of listDone) ≠ (missing value) then
158  log (item 2 of listDone)'s code() as text
159  log (item 2 of listDone)'s localizedDescription() as text
160  return "エラーしました"
161end if
162
163##############################
164#アクロバットを終了させる
165log doQuitAcrobat()
166
167##############################
168#インストール 前処理
169if boolPKG with to then
170  set strFilePath to (ocidSaveFilePathURL's |path|()) as text
171else
172  #DMGのパス
173  set strFilePath to (ocidSaveFilePathURL's |path|()) as text
174  set strCommandText to ("/usr/bin/hdiutil attach \"" & strFilePath & "\" -noverify -nobrowse -noautoopen") as text
175  log strCommandText
176  try
177    do shell script strCommandText
178    #マウントするボリュームのパス
179    set strDMGVolumeName to ("/Volumes/AcroRdrSCADC" & ocidVersionText & "_MUI") as text
180    set ocidDMGVolumeName to refMe's NSString's stringWithString:(strDMGVolumeName)
181    set ocidDMGVolumeNamePath to ocidDMGVolumeName's stringByStandardizingPath()
182    set ocidDMGVolumePathURL to (refMe's NSURL's alloc()'s initFileURLWithPath:(ocidDMGVolumeNamePath) isDirectory:false)
183    set strValumePath to (ocidDMGVolumePathURL's |path|()) as text
184    #マウントしたDMGの中にあるPKGのパス
185    set ocidPkgFilePath to ocidDMGVolumePathURL's URLByAppendingPathComponent:(ocidPKGFileName) isDirectory:(false)
186    set strFilePath to (ocidPkgFilePath's |path|()) as text
187  on error
188    return "DMGのマウントに失敗しました"
189  end try
190end if
191
192##############################
193#インストール
194set strCommandText to ("/usr/bin/sudo /usr/sbin/installer -pkg \"" & strFilePath & "\" -target / -dumplog -allowUntrusted -lang ja") as text
195log strCommandText
196try
197  #指紋認証やパスワードでインストールする場合
198  # do shell script strCommandText
199  #設定した管理者パスワードでインストールする場合
200  do shell script strCommandText user name strAdminUserName password strAuthPW with administrator privileges
201on error
202  set strCommandText to ("/usr/bin/hdiutil detach  \"" & strValumePath & "\" -force") as text
203  log strCommandText
204  try
205    do shell script strCommandText
206    log "インストール終了"
207  on error
208    return "DMGのアンマウントに失敗しました"
209  end try
210  
211  return "インストールに失敗しました"
212end try
213
214##############################
215#インストール後処理
216if boolPKG with to then
217  log "インストール終了"
218else
219  set strCommandText to ("/usr/bin/hdiutil detach  \"" & strValumePath & "\" -force") as text
220  log strCommandText
221  try
222    do shell script strCommandText
223    log "インストール終了"
224  on error
225    return "DMGのアンマウントに失敗しました"
226  end try
227end if
228
229
230return "処理終了"
231
232##############################
233#アクロバットを終了させる
234to doQuitAcrobat()
235  
236  set listBundleID to {"com.adobe.distiller", "com.adobe.Reader", "com.adobe.Acrobat.Pro", "com.adobe.AdobeAcroCEFHelper", "com.adobe.AdobeAcroCEFHelperRenderer", "com.adobe.AdobeAcroCEFHelperGPU", "com.adobe.AdobeResourceSynchronizer", "com.adobe.Acrobat.Uninstaller", "com.adobe.headlights.LogTransport2App", "com.adobe.acrobat.assert", "com.adobe.AdobeAcroCEF", "com.adobe.acc.AdobeCreativeCloud", "com.adobe.ccd.helper", "com.adobe.acc.HEXHelper", "com.adobe.acc.HEXHelper.Renderer", "com.adobe.acc.HEXHelper.GPU", "com.adobe.AdobeCRDaemon", "com.adobe.crashreporter", "com.adobe.LogTransport.LogTransport", "com.adobe.CCXProcess", "com.adobe.accmac", "com.adobe.accmac.ACCFinderSync", "com.adobe.adobe_licutil", "com.adobe.ngl.p7helper", "com.adobe.AcroLicApp", "com.adobe.acc.AdobeDesktopService", "com.adobe.AdobeApplicationUpdater", "com.adobe.HDInstall", "com.adobe.AdobeIPCBroker", "com.adobe.ngl.p7helper", "com.adobe.ARMDCHelper", "com.adobe.ARMDC", "com.adobe.CCLibrary", "com.adobe.Acrobat.NativeMessagingHost", "com.adobe.Automator.Save-as-Adobe-PDF"} as list
237  (*
238  repeat with itemBundleID in listBundleID
239    set strBundleID to itemBundleID as text
240    if strBundleID is not "" then
241      try
242        tell application id strBundleID to quit
243      end try
244    end if
245  end repeat
246  *)
247  repeat with itemBundleID in listBundleID
248    set strBundleID to itemBundleID as text
249    try
250      set ocidResultsArray to (refMe's NSRunningApplication's runningApplicationsWithBundleIdentifier:(strBundleID))
251      set numCntArray to ocidResultsArray count
252      set ocidRunApp to (ocidResultsArray's objectAtIndex:0)
253      ###通常終了
254      set boolDone to ocidRunApp's terminate()
255      ####強制終了
256      set boolDone to ocidRunApp's forceTerminate()
257    end try
258  end repeat
259  return true
260  
261end doQuitAcrobat
AppleScriptで生成しました

|

[Acrobat] Acrobat DC製品版 SCA版の最新バージョンを上書きインストールする(要管理者アカウント設定)


AppleScript サンプルコード

【スクリプトエディタで開く】 |

AppleScript サンプルソース(参考)
行番号ソース
001#! /usr/bin/env osascript
002----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
003(*
004従来版のAcrobat SCA版
005最新版を上書きインストールします
006# 【注意事項】必ず 『実行専用』の『アプリケーション』にしてください
007#管理者パスワードが平文で記述される事になりますので
008#セキュリティには留意ください
009com.cocolog-nifty.quicktimer.icefloe *)
010----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
011use AppleScript version "2.8"
012use framework "Foundation"
013use framework "AppKit"
014use scripting additions
015
016property refMe : a reference to current application
017
018property refNSNotFound : a reference to 9.22337203685477E+18 + 5807
019
020######################################
021#設定項目
022#管理者ユーザー名(ショート)
023set strAdminUserName to ("admin") as text
024#管理者パスワード
025set strAuthPW to ("管理者パスワード") as text
026
027##############################
028#ダウンロードするURL
029set ocidURLComponents to refMe's NSURLComponents's alloc()'s init()
030ocidURLComponents's setScheme:"https"
031ocidURLComponents's setHost:"armmf.adobe.com"
032ocidURLComponents's setPath:"/arm-manifests/mac/AcrobatDC/acrobatSCA/current_version.txt"
033set ocidURLStrings to ocidURLComponents's |URL|'s absoluteString()
034set ocidURL to refMe's NSURL's alloc()'s initWithString:(ocidURLStrings)
035log ocidURL's absoluteString() as text
036
037##############################
038#起動時に削除される項目にダウンロード
039set appFileManager to refMe's NSFileManager's defaultManager()
040set ocidTempDirURL to appFileManager's temporaryDirectory()
041set ocidUUID to refMe's NSUUID's alloc()'s init()
042set ocidUUIDString to ocidUUID's UUIDString
043set ocidSaveDirPathURL to ocidTempDirURL's URLByAppendingPathComponent:(ocidUUIDString) isDirectory:(true)
044#フォルダを作っておく
045set ocidAttrDict to refMe's NSMutableDictionary's alloc()'s initWithCapacity:0
046ocidAttrDict's setValue:(511) forKey:(refMe's NSFilePosixPermissions)
047set listDone to appFileManager's createDirectoryAtURL:(ocidSaveDirPathURL) withIntermediateDirectories:(true) attributes:(ocidAttrDict) |error| :(reference)
048if (item 1 of listDone) is true then
049  log "createDirectoryAtURL 正常処理"
050else if (item 2 of listDone) ≠ (missing value) then
051  log (item 2 of listDone)'s code() as text
052  log (item 2 of listDone)'s localizedDescription() as text
053  return "createDirectoryAtURL エラーしました"
054end if
055#保存パス
056set strSaveFileName to "current_version.txt" as text
057set ocidSaveFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:(strSaveFileName) isDirectory:(false)
058
059
060##############################
061#NSDATAでダウンロード
062set ocidOption to (refMe's NSDataReadingMappedIfSafe)
063set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidURL) options:(ocidOption) |error| :(reference)
064if (item 2 of listResponse) = (missing value) then
065  log "正常処理"
066  set ocidReadData to (item 1 of listResponse)
067else if (item 2 of listResponse) ≠ (missing value) then
068  log (item 2 of listResponse)'s code() as text
069  log (item 2 of listResponse)'s localizedDescription() as text
070  return "エラーしました"
071end if
072
073##############################
074#保存
075set ocidOption to (refMe's NSDataWritingAtomic)
076set listDone to ocidReadData's writeToURL:(ocidSaveFilePathURL) options:(ocidOption) |error| :(reference)
077if (item 1 of listDone) is true then
078  log "正常処理"
079else if (item 2 of listDone) ≠ (missing value) then
080  log (item 2 of listDone)'s code() as text
081  log (item 2 of listDone)'s localizedDescription() as text
082  return "エラーしました"
083end if
084##############################
085#テキスト抽出
086set ocidReadText to refMe's NSString's alloc()'s initWithData:(ocidReadData) encoding:(refMe's NSUTF8StringEncoding)
087log "最新バージョンは:" & (ocidReadText as text)
088#バージョン番号整形
089set ocidVersionText to (ocidReadText's stringByReplacingOccurrencesOfString:(".") withString:(""))
090
091
092##############################
093#ダウンロードするURL PKG
094set ocidURLComponents to refMe's NSURLComponents's alloc()'s init()
095ocidURLComponents's setScheme:("https")
096ocidURLComponents's setHost:("ardownload3.adobe.com")
097set strSetPath to ("/pub/adobe/acrobat/mac/AcrobatDC/" & ocidVersionText & "/AcrobatSCADC" & ocidVersionText & "_MUI.pkg") as text
098ocidURLComponents's setPath:(strSetPath)
099set ocidURLStrings to ocidURLComponents's |URL|'s absoluteString()
100set ocidPKGURL to refMe's NSURL's alloc()'s initWithString:(ocidURLStrings)
101log ocidPKGURL's absoluteString() as text
102set ocidPKGFileName to ocidPKGURL's lastPathComponent()
103#保存パス
104set ocidPkgFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:(ocidPKGFileName) isDirectory:(false)
105
106##############################
107#ダウンロードするURL DMG
108set ocidURLComponents to refMe's NSURLComponents's alloc()'s init()
109ocidURLComponents's setScheme:("https")
110ocidURLComponents's setHost:("ardownload2.adobe.com")
111set strSetPath to ("/pub/adobe/acrobat/mac/AcrobatDC/" & ocidVersionText & "/AcrobatSCADC" & ocidVersionText & "_MUI.dmg") as text
112ocidURLComponents's setPath:(strSetPath)
113set ocidURLStrings to ocidURLComponents's |URL|'s absoluteString()
114set ocidDMGURL to refMe's NSURL's alloc()'s initWithString:(ocidURLStrings)
115log ocidDMGURL's absoluteString() as text
116set ocidFileName to ocidPKGURL's lastPathComponent()
117#保存パス
118set ocidDmgFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:(ocidFileName) isDirectory:(false)
119
120log "ダウンロード開始"
121##############################
122#NSDATAに読み込み ダウンロード
123set ocidOption to (refMe's NSDataReadingMappedIfSafe)
124set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidPKGURL) options:(ocidOption) |error| :(reference)
125if (item 2 of listResponse) = (missing value) then
126  log "initWithContentsOfURL 正常処理"
127  set ocidReadData to (item 1 of listResponse)
128  set boolPKG to true as boolean
129else if (item 2 of listResponse) ≠ (missing value) then
130  log (item 2 of listResponse)'s code() as text
131  log (item 2 of listResponse)'s localizedDescription() as text
132  log "PKGURLのダウンロードに失敗しました DMGのダウンロードを試みます"
133  log "initWithContentsOfURL エラーしました"
134  set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidDMGURL) options:(ocidOption) |error| :(reference)
135  if (item 2 of listResponse) = (missing value) then
136    log "initWithContentsOfURL 正常処理"
137    set boolPKG to false as boolean
138    set ocidReadData to (item 1 of listResponse)
139  else if (item 2 of listResponse) ≠ (missing value) then
140    log (item 2 of listResponse)'s code() as text
141    log (item 2 of listResponse)'s localizedDescription() as text
142    return "initWithContentsOfURL エラーしました"
143  end if
144end if
145log "ダウンロード終了"
146##############################
147#保存
148if boolPKG with to then
149  set ocidSaveFilePathURL to ocidPkgFilePathURL
150else
151  set ocidSaveFilePathURL to ocidDmgFilePathURL
152end if
153set ocidOption to (refMe's NSDataWritingAtomic)
154set listDone to ocidReadData's writeToURL:(ocidSaveFilePathURL) options:(ocidOption) |error| :(reference)
155if (item 1 of listDone) is true then
156  log "正常処理"
157else if (item 2 of listDone) ≠ (missing value) then
158  log (item 2 of listDone)'s code() as text
159  log (item 2 of listDone)'s localizedDescription() as text
160  return "エラーしました"
161end if
162
163##############################
164#アクロバットを終了させる
165log doQuitAcrobat()
166
167##############################
168#インストール 前処理
169if boolPKG with to then
170  set strFilePath to (ocidSaveFilePathURL's |path|()) as text
171else
172  #DMGのパス
173  set strFilePath to (ocidSaveFilePathURL's |path|()) as text
174  set strCommandText to ("/usr/bin/hdiutil attach \"" & strFilePath & "\" -noverify -nobrowse -noautoopen") as text
175  log strCommandText
176  try
177    do shell script strCommandText
178    #マウントするボリュームのパス
179    set strDMGVolumeName to ("/Volumes/AcrobatSCADC" & ocidVersionText & "_MUI") as text
180    set ocidDMGVolumeName to refMe's NSString's stringWithString:(strDMGVolumeName)
181    set ocidDMGVolumeNamePath to ocidDMGVolumeName's stringByStandardizingPath()
182    set ocidDMGVolumePathURL to (refMe's NSURL's alloc()'s initFileURLWithPath:(ocidDMGVolumeNamePath) isDirectory:false)
183    set strValumePath to (ocidDMGVolumePathURL's |path|()) as text
184    #マウントしたDMGの中にあるPKGのパス
185    set ocidPkgFilePath to ocidDMGVolumePathURL's URLByAppendingPathComponent:(ocidPKGFileName) isDirectory:(false)
186    set strFilePath to (ocidPkgFilePath's |path|()) as text
187  on error
188    return "DMGのマウントに失敗しました"
189  end try
190end if
191
192##############################
193#インストール
194set strCommandText to ("/usr/bin/sudo /usr/sbin/installer -pkg \"" & strFilePath & "\" -target / -dumplog -allowUntrusted -lang ja") as text
195log strCommandText
196try
197  #指紋認証やパスワードでインストールする場合
198  # do shell script strCommandText
199  #設定した管理者パスワードでインストールする場合
200  do shell script strCommandText user name strAdminUserName password strAuthPW with administrator privileges
201on error
202  set strCommandText to ("/usr/bin/hdiutil detach  \"" & strValumePath & "\" -force") as text
203  log strCommandText
204  try
205    do shell script strCommandText
206    log "インストール終了"
207  on error
208    return "DMGのアンマウントに失敗しました"
209  end try
210  
211  return "インストールに失敗しました"
212end try
213
214##############################
215#インストール後処理
216if boolPKG with to then
217  log "インストール終了"
218else
219  set strCommandText to ("/usr/bin/hdiutil detach  \"" & strValumePath & "\" -force") as text
220  log strCommandText
221  try
222    do shell script strCommandText
223    log "インストール終了"
224  on error
225    return "DMGのアンマウントに失敗しました"
226  end try
227end if
228
229
230return "処理終了"
231
232##############################
233#アクロバットを終了させる
234to doQuitAcrobat()
235  
236  set listBundleID to {"com.adobe.distiller", "com.adobe.Reader", "com.adobe.Acrobat.Pro", "com.adobe.AdobeAcroCEFHelper", "com.adobe.AdobeAcroCEFHelperRenderer", "com.adobe.AdobeAcroCEFHelperGPU", "com.adobe.AdobeResourceSynchronizer", "com.adobe.Acrobat.Uninstaller", "com.adobe.headlights.LogTransport2App", "com.adobe.acrobat.assert", "com.adobe.AdobeAcroCEF", "com.adobe.acc.AdobeCreativeCloud", "com.adobe.ccd.helper", "com.adobe.acc.HEXHelper", "com.adobe.acc.HEXHelper.Renderer", "com.adobe.acc.HEXHelper.GPU", "com.adobe.AdobeCRDaemon", "com.adobe.crashreporter", "com.adobe.LogTransport.LogTransport", "com.adobe.CCXProcess", "com.adobe.accmac", "com.adobe.accmac.ACCFinderSync", "com.adobe.adobe_licutil", "com.adobe.ngl.p7helper", "com.adobe.AcroLicApp", "com.adobe.acc.AdobeDesktopService", "com.adobe.AdobeApplicationUpdater", "com.adobe.HDInstall", "com.adobe.AdobeIPCBroker", "com.adobe.ngl.p7helper", "com.adobe.ARMDCHelper", "com.adobe.ARMDC", "com.adobe.CCLibrary", "com.adobe.Acrobat.NativeMessagingHost", "com.adobe.Automator.Save-as-Adobe-PDF"} as list
237  (*
238  repeat with itemBundleID in listBundleID
239    set strBundleID to itemBundleID as text
240    if strBundleID is not "" then
241      try
242        tell application id strBundleID to quit
243      end try
244    end if
245  end repeat
246  *)
247  repeat with itemBundleID in listBundleID
248    set strBundleID to itemBundleID as text
249    try
250      set ocidResultsArray to (refMe's NSRunningApplication's runningApplicationsWithBundleIdentifier:(strBundleID))
251      set numCntArray to ocidResultsArray count
252      set ocidRunApp to (ocidResultsArray's objectAtIndex:0)
253      ###通常終了
254      set boolDone to ocidRunApp's terminate()
255      ####強制終了
256      set boolDone to ocidRunApp's forceTerminate()
257    end try
258  end repeat
259  return true
260  
261end doQuitAcrobat
AppleScriptで生成しました

|

Acrobat Cleaner アクロバット関連ファイルをごっそりゴミ箱に入れる(途中)


サンプルコード

サンプルソース(参考)
行番号ソース
001#!/bin/bash
002#com.cocolog-nifty.quicktimer.icefloe
003#Adobe クリーナー ACROBAT用 自分用です
004#参考にするのは良いと思いますが
005#クリエイティブクラウド関連のファイルも削除します
006#このスクリプトは実行しない方がいいです
007# ゴミ箱に入れて削除することで
008# lsregisterがクリーニングされるので
009# 起動項目 BackgroundItems-v9.btmに反映されます
010#################################################
011###管理者インストールしているか?チェック
012USER_WHOAMI=$(/usr/bin/whoami)
013/bin/echo "実行ユーザー(whoami): $USER_WHOAMI"
014if [ "$USER_WHOAMI" != "root" ]; then
015  /bin/echo "このスクリプトを実行するには管理者権限が必要です。"
016  /bin/echo "sudo で実行してください"
017  ### path to me
018  SCRIPT_PATH="${BASH_SOURCE[0]}"
019  /bin/echo "/usr/bin/sudo \"$SCRIPT_PATH\""
020  /bin/echo "↑を実行してください"
021  /bin/echo "---------------------"
022  /bin/echo "注意・注意・注意・注意"
023  /bin/echo "ローカルのサポートファイルを全部ゴミ箱に入れます"
024  /bin/echo "クリエイティブクラウド利用者は実行しないでください"
025  exit 1
026else
027  ###実行しているユーザー名
028  CONSOLE_USER=$(/bin/echo "show State:/Users/ConsoleUser" | /usr/sbin/scutil | /usr/bin/awk '/Name :/ { print $3 }')
029  /bin/echo "コンソールユーザー(scutil): $CONSOLE_USER"
030  ###実行しているユーザー名
031  HOME_USER=$(/bin/echo "$HOME" | /usr/bin/awk -F'/' '{print $NF}')
032  /bin/echo "実行ユーザー(HOME): $HOME_USER"
033  ###logname
034  LOGIN_NAME=$(/usr/bin/logname)
035  /bin/echo "ログイン名(logname): $LOGIN_NAME"
036  ###UID
037  USER_NAME=$(/usr/bin/id -un)
038  /bin/echo "ユーザー名(id): $USER_NAME"
039  ###STAT
040  STAT_USR=$(/usr/bin/stat -f%Su /dev/console)
041  /bin/echo "STAT_USR(console): $STAT_USR"
042fi
043#################################################
044###ゴミ箱に入れる ユーザー環境
045### 運用上Acrobat削除後に出る問題部分のみ対応
046
047function DO_MOVE_TO_TRASH() {
048  if [ -e "$1" ]; then
049    TRASH_DIR=$(/usr/bin/sudo -u "$STAT_USR" /usr/bin/mktemp -d "/Users/${STAT_USR}/.Trash/XXXXXXXX")
050    /usr/bin/sudo -u "$STAT_USR" /bin/chmod 777 "$TRASH_DIR"
051    /bin/mv "$1" "$TRASH_DIR"
052  else
053    /bin/echo "$1""は見つかりませんでした"
054  fi
055}
056#依存関係先
057#/Library/Application Support/Adobe/MACPDFM/MacPDFM.frameworkを削除するで
058#Microsoft Officeのアドオンのみ削除しておく
059STR_STARTUP_DIR="/Users/${STAT_USR}/Library/Group Containers/UBF8T346G9.Office/User Content.localized/Startup.localized"
060DO_MOVE_TO_TRASH "$STR_STARTUP_DIR/Excel/SaveAsAdobePDF.xlam"
061DO_MOVE_TO_TRASH "$STR_STARTUP_DIR/Powerpoint/SaveAsAdobePDF.ppam"
062DO_MOVE_TO_TRASH "$STR_STARTUP_DIR/Word/linkCreation.dotm"
063
064#################################################
065###ゴミ箱に入れる ローカル環境
066DO_MOVE_TO_TRASH "/Library/ColorSync/Profiles/Profiles"
067DO_MOVE_TO_TRASH "/Library/ColorSync/Profiles/Recommended"
068
069DO_MOVE_TO_TRASH "/Applications/Adobe Acrobat DC"
070DO_MOVE_TO_TRASH "/Applications/Adobe Acrobat Reader.app"
071DO_MOVE_TO_TRASH "/Applications/Adobe Reader.app"
072DO_MOVE_TO_TRASH "/Applications/Adobe Acrobat Reader DC.app"
073
074DO_MOVE_TO_TRASH "/Applications/Utilities/Adobe Genuine Service"
075
076DO_MOVE_TO_TRASH "/Library/Automator/Save as Adobe PDF.action"
077DO_MOVE_TO_TRASH "/Library/Browser Plug-In/AdobePDFViewerNPAPI.plugin"
078DO_MOVE_TO_TRASH "/Library/Browser Plug-In/AdobePDFViewer.plugin"
079DO_MOVE_TO_TRASH "/Library/Internet Plug-Ins/AdobePDFViewer.plugin"
080DO_MOVE_TO_TRASH "/Library/Internet Plug-Ins/AdobePDFViewerNPAPI.plugin"
081DO_MOVE_TO_TRASH "/Library/PDF Services/Save as Adobe PDF.app"
082DO_MOVE_TO_TRASH "/Library/Logs/Adobe"
083DO_MOVE_TO_TRASH "/Library/Logs/adobegc.log"
084DO_MOVE_TO_TRASH "/Library/Logs/CreativeCloud"
085DO_MOVE_TO_TRASH "/Library/Google/Chrome/NativeMessagingHosts/com.adobe.acrobat.chrome_webcapture.json"
086
087DO_MOVE_TO_TRASH "/Library/PrivilegedHelperTools/com.adobe.ARMDC.Communicator"
088DO_MOVE_TO_TRASH "/Library/PrivilegedHelperTools/com.adobe.ARMDC.SMJobBlessHelper"
089
090DO_MOVE_TO_TRASH "/Library/LaunchDaemons/com.adobe.ARMDC.SMJobBlessHelper.plist"
091DO_MOVE_TO_TRASH "/Library/LaunchDaemons/com.adobe.ARMDC.Communicator.plist"
092DO_MOVE_TO_TRASH "/Library/LaunchDaemons/com.adobe.agsservice.plist"
093
094#DO_MOVE_TO_TRASH "/Library/Application Support/Adobe"
095DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/Acrobat"
096DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/Acrobat DC AMT"
097DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/Acrobat DC Helper Frameworks"
098DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/Adobe PCD"
099DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/Adobe PDF"
100DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/AdobeGCClient"
101DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/ARMDC"
102DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/ARMNext"
103DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/Color"
104DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/HelpCfg"
105DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/MACPDFM"
106DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/PCF"
107DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/SLCache"
108DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/SLStore"
109DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/Reader"
110DO_MOVE_TO_TRASH "/Library/Application Support/Adobe/WebExtnUtils"
111
112DO_MOVE_TO_TRASH "/Library/Application Support/regid.1986-12.com.adobe"
113DO_MOVE_TO_TRASH "/Library/Application Support/Mozilla/Extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
114DO_MOVE_TO_TRASH "/Library/Application Support/Mozilla/NativeMessagingHosts/com.adobe.acrobat.firefox_webcapture.json"
115DO_MOVE_TO_TRASH "/Library/Application Support/Mozilla/NativeMessagingHosts/com.apple.passwordmanager.json"
116DO_MOVE_TO_TRASH "/Library/Application Support/Mozilla/NativeMessagingHosts/.DC"
117DO_MOVE_TO_TRASH "/Library/Caches/com.adobe.acrobat.updater"
118#
119DO_MOVE_TO_TRASH "/Users/Shared/Adobe"
120DO_MOVE_TO_TRASH "/Users/Shared/AdobeGCData"
121DO_MOVE_TO_TRASH "/Users/Shared/AdobeGCInfo"
122DO_MOVE_TO_TRASH "/Users/Shared/SC Info"
123
124#################################################
125###ゴミ箱に入れる ローカル環境
126STR_CHK_DIR_PATH="/Library/Preferences"
127STR_CHK_STRING="adobe"
128LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
129if [ -n "$LIST_FILE_NAME" ]; then
130  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
131    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
132    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
133  done
134fi
135###
136STR_CHK_DIR_PATH="/Library/LaunchDaemons"
137STR_CHK_STRING="adobe"
138LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
139if [ -n "$LIST_FILE_NAME" ]; then
140  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
141    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
142    /usr/bin/chflags nouchg "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
143    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
144  done
145fi
146###
147STR_CHK_DIR_PATH="/Library/LaunchAgents"
148STR_CHK_STRING="adobe"
149LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
150if [ -n "$LIST_FILE_NAME" ]; then
151  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
152    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
153    /usr/bin/chflags nouchg "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
154    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
155  done
156fi
157###
158STR_CHK_DIR_PATH="/Library/Caches"
159STR_CHK_STRING="adobe"
160LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
161if [ -n "$LIST_FILE_NAME" ]; then
162  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
163    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
164    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
165  done
166fi
167###
168STR_CHK_DIR_PATH="/Library/PrivilegedHelperTools"
169STR_CHK_STRING="adobe"
170LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
171if [ -n "$LIST_FILE_NAME" ]; then
172  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
173    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
174    /usr/bin/chflags nouchg "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
175    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
176  done
177fi
178###
179STR_CHK_DIR_PATH="/Library/ScriptingAdditions"
180STR_CHK_STRING="Adobe"
181LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
182if [ -n "$LIST_FILE_NAME" ]; then
183  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
184    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
185    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
186  done
187fi
188
189###########################
190#root環境
191STR_CHK_DIR_PATH="/var/root/Library/HTTPStorages"
192STR_CHK_STRING="adobe"
193LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
194if [ -n "$LIST_FILE_NAME" ]; then
195  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
196    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
197    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
198  done
199fi
200#
201STR_CHK_DIR_PATH="/var/root/Library/Application Scripts"
202STR_CHK_STRING="adobe"
203LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
204if [ -n "$LIST_FILE_NAME" ]; then
205  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
206    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
207    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
208  done
209fi
210#
211STR_CHK_DIR_PATH="/var/root/Library/Application Support"
212STR_CHK_STRING="adobe"
213LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
214if [ -n "$LIST_FILE_NAME" ]; then
215  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
216    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
217    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
218  done
219fi
220#
221STR_CHK_DIR_PATH="/var/root/Library/Caches"
222STR_CHK_STRING="adobe"
223LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
224if [ -n "$LIST_FILE_NAME" ]; then
225  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
226    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
227    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
228  done
229fi
230#
231STR_CHK_DIR_PATH="/var/root/Library/Preferences"
232STR_CHK_STRING="adobe"
233LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
234if [ -n "$LIST_FILE_NAME" ]; then
235  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
236    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
237    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
238  done
239fi
240#
241STR_CHK_DIR_PATH="/var/root/Library/Logs"
242STR_CHK_STRING="adobe"
243LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
244if [ -n "$LIST_FILE_NAME" ]; then
245  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
246    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
247    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
248  done
249fi
250
251#################################################
252###テンポラリーのクリーニング
253STR_MKTEMP_DIR_PATH=$(/usr/bin/sudo -u "$STAT_USR" /usr/bin/mktemp -d)
254STR_TEMP_DIR_T=$(/usr/bin/dirname "$STR_MKTEMP_DIR_PATH")
255STR_CHK_DIR_PATH="$STR_TEMP_DIR_T"
256STR_CHK_STRING="adobe"
257LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
258if [ -n "$LIST_FILE_NAME" ]; then
259  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
260    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
261    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
262  done
263fi
264###
265STR_MKTEMP_DIR_PATH=$(/usr/bin/sudo -u "$STAT_USR" /usr/bin/mktemp -d)
266STR_TEMP_DIR=$(/usr/bin/dirname "$STR_TEMP_DIR_T")
267STR_TEMP_DIR_C="$STR_TEMP_DIR/C"
268STR_CHK_DIR_PATH="$STR_TEMP_DIR_C"
269STR_CHK_STRING="adobe"
270LIST_FILE_NAME=$(/bin/ls "$STR_CHK_DIR_PATH" | grep "$STR_CHK_STRING")
271if [ -n "$LIST_FILE_NAME" ]; then
272  /bin/echo "$LIST_FILE_NAME" | while read -r ITEM_FILE_NAME; do
273    /bin/echo "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
274    DO_MOVE_TO_TRASH "$STR_CHK_DIR_PATH/$ITEM_FILE_NAME"
275  done
276fi
277
278exit 0
AppleScriptで生成しました

|

その他のカテゴリー

Accessibility Acrobat Acrobat 2020 Acrobat AddOn Acrobat Annotation Acrobat ARMDC Acrobat AV2 Acrobat BookMark Acrobat Classic Acrobat DC Acrobat Dialog Acrobat Distiller Acrobat Form Acrobat JS Acrobat Manifest Acrobat Menu Acrobat Open Acrobat Plugin Acrobat Preferences Acrobat Preflight Acrobat Python Acrobat Reader Acrobat Reader Localized Acrobat Reference Acrobat SCA Acrobat SCA Updater Acrobat Sequ Acrobat Sign Acrobat Stamps Acrobat Watermark Acrobat Windows Acrobat Windows Reader Admin Admin Account Admin Apachectl Admin configCode Admin Device Management Admin LaunchServices Admin Locationd Admin loginitem Admin Maintenance Admin Mobileconfig Admin Permission Admin Pkg Admin Power Management Admin Printer Admin SetUp Admin SMB Admin Support Admin System Information Admin Tools Admin Users Admin Volumes Admin XProtect Adobe Adobe Bridge Adobe FDKO Adobe Fonts Adobe Reference Adobe RemoteUpdateManager AppKit Apple AppleScript AppleScript do shell script AppleScript List AppleScript ObjC AppleScript Osax AppleScript PDF AppleScript Pictures AppleScript record AppleScript Script Editor AppleScript Script Menu AppleScript Shortcuts AppleScript Shortcuts Events AppleScript System Events AppleScript System Events Plist AppleScript Video Applications AppStore Archive Attributes Automator BackUp Barcode Barcode Decode Barcode QR Bash Basic Basic Path Bluetooth BOX Browser Calendar CD/DVD Choose Chrome CIImage CityCode CloudStorage Color com.apple.LaunchServices.OpenWith Console Contacts CotEditor CURL current application Date&Time defaults delimiters Desktop Device Diff Disk Dock DropBox Droplet eMail Encode % Encode Decode Encode HTML Entity Encode UTF8 Error EXIFData ffmpeg File File Name Finder Firefox Folder FolderAction Fonts Fonts ATS Fonts Python Foxit GIF github Guide HTML Icon Illustrator Image Events Image2PDF ImageOptim Input Dictionary iPhone iWork Javascript Jedit Json Label Language Leading Zero List locationd LRC lsappinfo m3u8 Mail MakePDF Map Math Media Media AVAsset Media AVconvert Media AVFoundation Media AVURLAsset Media Movie Media Music Memo Messages Microsoft Microsoft Edge Microsoft Excel Microsoft Fonts Microsoft Office Mouse Music NetWork Notes NSArray NSArray Sort NSBezierPath NSBitmapImageRep NSBundle NSCFBoolean NSCharacterSet NSColor NSColorList NSData NSDecimalNumber NSDictionary NSError NSEvent NSFileAttributes NSFileManager NSFileManager enumeratorAtURL NSFont NSFontManager NSGraphicsContext NSImage NSIndex NSKeyedArchiver NSKeyedUnarchiver NSLocale NSMetadataItem NSMutableArray NSMutableDictionary NSMutableString NSNotFound NSNumber NSOpenPanel NSPasteboard NSpoint NSPredicate NSRange NSRect NSRegularExpression NSRunningApplication NSScreen NSSize NSString NSString stringByApplyingTransform NSStringCompareOptions NSTask NSTimeZone NSURL NSURL File NSURLBookmark NSURLComponents NSURLResourceKey NSURLSession NSUserDefaults NSUUID NSView NSWorkspace Numbers OAuth OneDrive PDF PDF Pymupdf PDFAnnotation PDFAnnotationWidget PDFContext PDFDisplayBox PDFDocumentPermissions PDFImageRep PDFKit PDFnUP PDFOutline PDFView perl Photoshop PlistBuddy pluginkit plutil postalcode PostScript prefPane Preview Python QuickLook QuickTime ReadMe Regular Expression Reminders ReName Repeat RTF Safari SaveFile ScreenCapture ScreenSaver SF Symbols character id SF Symbols Entity sips Skype Slack Sound Spotlight sqlite SRT StandardAdditions Swift System Settings TCC TemporaryItems Terminal Text Text CSV Text MD Text TSV TextEdit Tools Translate Trash Twitter Typography UI Unit Conversion UTType valueForKeyPath Video VisionKit Visual Studio Code VMware Fusion Wacom webarchive webp Wifi Windows XML XML EPUB XML HTML XML LSSharedFileList XML OPML XML Plist XML RSS XML savedSearch XML SVG XML TTML XML webloc XML xmllint XML XMP YouTube zoom