【SCA(single cliant app)版】Adobe Acrobat インストーラー・アップデータ一覧(令和07年07月12日土曜日時点)
SCA(single cliant app)版 アップデータ一覧: (令和07年07月12日土曜日時点)
SCA(Single Cliant App)版のアップデータと新規インストーラーのURLです
SCA(Single Cliant App)版のアップデータと新規インストーラーのURLです
SCA(Single Cliant App)版のアップデータと新規インストーラーのURLです
SCA(Single Cliant App)版のアップデータと新規インストーラーのURLです
AcrobatのダウンロードWEBサーバーURLは3つあり
https://ardownload.adobe.com
https://ardownload2.adobe.com
https:///ardownload3.adobe.com
今回
https://ardownload.adobe.com が
証明書切れになりました
ダウンロードURLのホスト名が
https://ardownload.adobe.com になっている場合
https://ardownload3.adobe.com と3を加えれば証明書のエラー表示にはなりません
過去のURLを書き換える事はしませんので
ご自身で置換してより安全なURLでダウンロードしてください
また
自動化(bash,zshでのCURLやNSCURL)しているスクリプトの場合
この証明書が起因で、エラーになる可能性がある場合
先に、アクセス先を
https://ardownload3.adobe.comに変更する事で回避できることがあるかも?しれません
SCA(Single Cliant App)版のアップデータと新規インストーラーのURLです
SCA(Single Cliant App)版のアップデータと新規インストーラーのURLです
| 固定リンク
行番号 | ソース |
---|---|
001 | #!/usr/bin/env osascript |
002 | ----+----1----+----2----+-----3----+----4----+----5----+----6----+----7 |
003 | (* |
004 | シングルクライアントアプリケーションSCA版のAcrobatの |
005 | 最新アップデーターのURLを取得します |
006 | V2色々を変更修正した |
007 | com.cocolog-nifty.quicktimer.icefloe *) |
008 | ----+----1----+----2----+-----3----+----4----+----5----+----6----+----7 |
009 | use AppleScript version "2.8" |
010 | use framework "Foundation" |
011 | use framework "AppKit" |
012 | use scripting additions |
013 | |
014 | property refMe : a reference to current application |
015 | |
016 | property refNSNotFound : a reference to 9.22337203685477E+18 + 5807 |
017 | |
018 | |
019 | ############################## |
020 | #ダウンロードするURL |
021 | set ocidURLComponents to refMe's NSURLComponents's alloc()'s init() |
022 | ocidURLComponents's setScheme:"https" |
023 | ocidURLComponents's setHost:"armmf.adobe.com" |
024 | ocidURLComponents's setPath:"/arm-manifests/mac/AcrobatDC/acrobatSCA/AcrobatSCAManifest.arm" |
025 | set ocidURLStrings to ocidURLComponents's |URL|'s absoluteString() |
026 | set ocidURL to refMe's NSURL's alloc()'s initWithString:(ocidURLStrings) |
027 | log ocidURL's absoluteString() as text |
028 | |
029 | ############################## |
030 | #起動時に削除される項目にダウンロード |
031 | set appFileManager to refMe's NSFileManager's defaultManager() |
032 | set ocidTempDirURL to appFileManager's temporaryDirectory() |
033 | set ocidUUID to refMe's NSUUID's alloc()'s init() |
034 | set ocidUUIDString to ocidUUID's UUIDString |
035 | set ocidSaveDirPathURL to ocidTempDirURL's URLByAppendingPathComponent:(ocidUUIDString) isDirectory:(true) |
036 | #フォルダを作っておく |
037 | set ocidAttrDict to refMe's NSMutableDictionary's alloc()'s initWithCapacity:0 |
038 | ocidAttrDict's setValue:(511) forKey:(refMe's NSFilePosixPermissions) |
039 | set listDone to appFileManager's createDirectoryAtURL:(ocidSaveDirPathURL) withIntermediateDirectories:(true) attributes:(ocidAttrDict) |error| :(reference) |
040 | if (item 1 of listDone) is true then |
041 | log "createDirectoryAtURL 正常処理" |
042 | else if (item 2 of listDone) ≠ (missing value) then |
043 | log (item 2 of listDone)'s code() as text |
044 | log (item 2 of listDone)'s localizedDescription() as text |
045 | return "createDirectoryAtURL エラーしました" |
046 | end if |
047 | #保存パス |
048 | set strSaveFileName to "AcrobatSCAManifest.pkg" as text |
049 | set ocidSaveFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:(strSaveFileName) isDirectory:(false) |
050 | |
051 | ############################## |
052 | #NSDATAでダウンロード |
053 | set ocidOption to (refMe's NSDataReadingMappedIfSafe) |
054 | set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidURL) options:(ocidOption) |error| :(reference) |
055 | if (item 2 of listResponse) = (missing value) then |
056 | log "正常処理" |
057 | set ocidReadData to (item 1 of listResponse) |
058 | else if (item 2 of listResponse) ≠ (missing value) then |
059 | log (item 2 of listResponse)'s code() as text |
060 | log (item 2 of listResponse)'s localizedDescription() as text |
061 | return "エラーしました" |
062 | end if |
063 | |
064 | ############################## |
065 | #保存 |
066 | set ocidOption to (refMe's NSDataWritingAtomic) |
067 | set listDone to ocidReadData's writeToURL:(ocidSaveFilePathURL) options:(ocidOption) |error| :(reference) |
068 | if (item 1 of listDone) is true then |
069 | log "正常処理" |
070 | else if (item 2 of listDone) ≠ (missing value) then |
071 | log (item 2 of listDone)'s code() as text |
072 | log (item 2 of listDone)'s localizedDescription() as text |
073 | return "エラーしました" |
074 | end if |
075 | ############################## |
076 | #PKG解凍 |
077 | set strPkgPath to (ocidSaveFilePathURL's |path|()) as text |
078 | #解凍先 |
079 | set ocidDistDirPathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:("UnArchived") isDirectory:(true) |
080 | set strDistPath to (ocidDistDirPathURL's |path|()) as text |
081 | #コマンド実行 |
082 | set strComandText to ("/usr/sbin/pkgutil --expand \"" & strPkgPath & "\" \"" & strDistPath & "\"") as text |
083 | log strComandText |
084 | try |
085 | do shell script strComandText |
086 | on error |
087 | return "pkgutilでエラーになりました" |
088 | end try |
089 | |
090 | ############################## |
091 | #マニフェスト読み込み |
092 | #XMLパス |
093 | set ocidXmlFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:("UnArchived/ASSET/AcrobatSCAManifest.xml") isDirectory:(true) |
094 | ############################## |
095 | #NSDATAに読み込み |
096 | set ocidOption to (refMe's NSDataReadingMappedIfSafe) |
097 | set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidXmlFilePathURL) options:(ocidOption) |error| :(reference) |
098 | if (item 2 of listResponse) = (missing value) then |
099 | log "initWithContentsOfURL 正常処理" |
100 | set ocidReadData to (item 1 of listResponse) |
101 | else if (item 2 of listResponse) ≠ (missing value) then |
102 | log (item 2 of listResponse)'s code() as text |
103 | log (item 2 of listResponse)'s localizedDescription() as text |
104 | return "initWithContentsOfURL エラーしました" |
105 | end if |
106 | ############################## |
107 | #XMLに読み込む |
108 | set ocidOption to (refMe's NSXMLNodePreserveAll) + (refMe's NSXMLDocumentTidyHTML) |
109 | set listResponse to refMe's NSXMLDocument's alloc()'s initWithData:(ocidReadData) options:(ocidOption) |error| :(reference) |
110 | if (item 2 of listResponse) = (missing value) then |
111 | log "initWithData 正常処理" |
112 | set ocidXMLDoc to (item 1 of listResponse) |
113 | else if (item 2 of listResponse) ≠ (missing value) then |
114 | log (item 2 of listResponse)'s code() as text |
115 | log (item 2 of listResponse)'s localizedDescription() as text |
116 | log "initWithData エラー 警告がありました" |
117 | set ocidXMLDoc to (item 1 of listResponse) |
118 | end if |
119 | |
120 | set recordTitle to {|dld_Patch_Mini_Incr|:"【Reader】アップデータ差分", ||:""} as record |
121 | ############################## |
122 | #出力用テキスト |
123 | set ocidOutPutstring to refMe's NSMutableString's alloc()'s initWithCapacity:(0) |
124 | ocidOutPutstring's appendString:("SCA版 Acrobatの最新パッチURL\n\n") |
125 | set strSetInfoStr to ("dld_Patch_Mini_Incr:旧称Readerの差分パッチ\ndld_Patch_Mini_Cumulative:旧称Readerの累積パッチ\ndld_Patch_Combined_Incr:製品版DCの差分パッチ\ndld_Acrobat_Full:製品版DCの新規インストーラー上書き用\ndld_Patch_Combined_Cumulative:製品版DCの累積パッチ\n") as text |
126 | ocidOutPutstring's appendString:(strSetInfoStr) |
127 | (ocidOutPutstring's appendString:("----+----1----+----2----+-----3----+----4----+----5----+----6----+----7")) |
128 | ocidOutPutstring's appendString:("\n") |
129 | ############################## |
130 | #XML解析 |
131 | #ROOT |
132 | set ocidRootElement to ocidXMLDoc's rootElement() |
133 | set ocidActionItemsArray to ocidRootElement's elementsForName:("DownloadActionItems") |
134 | set ocidActionItems to ocidActionItemsArray's firstObject() |
135 | set ocidItemArray to (ocidActionItems's elementsForName:("dItem")) |
136 | #項目をソートするためのArray |
137 | set ocidItemStringArray to refMe's NSMutableArray's alloc()'s init() |
138 | #dItemをループ |
139 | repeat with itemArray in ocidItemArray |
140 | #dItem毎のテキスト |
141 | set ocidItemString to refMe's NSMutableString's alloc()'s init() |
142 | #処理 |
143 | (ocidItemString's appendString:("\n")) |
144 | set ocidID to (itemArray's attributeForName:("id"))'s stringValue() |
145 | (ocidItemString's appendString:(ocidID)) |
146 | (ocidItemString's appendString:("\n")) |
147 | #URL |
148 | set ocidHost to (itemArray's attributeForName:("httpURLBase"))'s stringValue() |
149 | set ocidPath to (itemArray's attributeForName:("URL"))'s stringValue() |
150 | set ocidLastPath to (itemArray's attributeForName:("fileName"))'s stringValue() |
151 | set ocidPkgURL to (refMe's NSURL's alloc()'s initWithString:(ocidHost)) |
152 | set ocidPkgURL to (ocidPkgURL's URLByAppendingPathComponent:(ocidPath)) |
153 | set ocidPkgURL to (ocidPkgURL's URLByAppendingPathComponent:(ocidLastPath)) |
154 | set ocidSetURL to ocidPkgURL's absoluteString() |
155 | |
156 | (ocidItemString's appendString:(ocidSetURL)) |
157 | (ocidItemString's appendString:("\n")) |
158 | set boolContain to (ocidSetURL's hasSuffix:("_MUI.pkg")) |
159 | if boolContain is true then |
160 | set ocidSetURL to (ocidSetURL's stringByReplacingOccurrencesOfString:("_MUI.pkg") withString:("_MUI.dmg")) |
161 | (ocidItemString's appendString:(ocidSetURL)) |
162 | (ocidItemString's appendString:("\n")) |
163 | end if |
164 | |
165 | |
166 | # log (itemArray's attributeForName:("signingEntity"))'s stringValue as text |
167 | # log (itemArray's attributeForName:("hashValue"))'s stringValue as text |
168 | #PKGのファイルサイズ |
169 | set ocidFileSizeStr to (itemArray's attributeForName:("size"))'s stringValue() |
170 | set ocidFileSizeDec to (refMe's NSDecimalNumber's alloc()'s initWithString:(ocidFileSizeStr)) |
171 | set ocidThousandDec to (refMe's NSDecimalNumber's alloc()'s initWithString:("1000000")) |
172 | set ocidMBDec to (ocidFileSizeDec's decimalNumberByDividingBy:(ocidThousandDec)) |
173 | set ocidFormatter to refMe's NSNumberFormatter's alloc()'s init() |
174 | (ocidFormatter's setRoundingMode:(refMe's NSNumberFormatterRoundFloor)) |
175 | (ocidFormatter's setNumberStyle:(refMe's NSNumberFormatterDecimalStyle)) |
176 | (ocidFormatter's setMaximumFractionDigits:(2)) |
177 | set ocidMBstr to (ocidFormatter's stringFromNumber:(ocidMBDec)) |
178 | (ocidItemString's appendString:(ocidMBstr)) |
179 | (ocidItemString's appendString:(" MB")) |
180 | (ocidItemString's appendString:("\n")) |
181 | #項目テキストをソート用のArrayにセット |
182 | (ocidItemStringArray's addObject:(ocidItemString)) |
183 | end repeat |
184 | #ソートして |
185 | set ocidSortedArray to ocidItemStringArray's sortedArrayUsingSelector:("localizedStandardCompare:") |
186 | set ocidJoinText to ocidSortedArray's componentsJoinedByString:("\n") |
187 | ocidOutPutstring's appendString:(ocidJoinText) |
188 | ############################## |
189 | # |
190 | set ocidOutPutstring to (ocidOutPutstring's stringByReplacingOccurrencesOfString:("_dropOS11") withString:("macOS11まで")) |
191 | set ocidOutPutstring to (ocidOutPutstring's stringByReplacingOccurrencesOfString:("_Full") withString:("新規インストーラー")) |
192 | set ocidOutPutstring to (ocidOutPutstring's stringByReplacingOccurrencesOfString:("_Patch") withString:("アップデータ:")) |
193 | set ocidOutPutstring to (ocidOutPutstring's stringByReplacingOccurrencesOfString:("_Mini") withString:("Reader版")) |
194 | set ocidOutPutstring to (ocidOutPutstring's stringByReplacingOccurrencesOfString:("_Acrobat") withString:("Acrobat版")) |
195 | set ocidOutPutstring to (ocidOutPutstring's stringByReplacingOccurrencesOfString:("_Cumulative") withString:("累積")) |
196 | set ocidOutPutstring to (ocidOutPutstring's stringByReplacingOccurrencesOfString:("_Combined") withString:("統合")) |
197 | set ocidOutPutstring to (ocidOutPutstring's stringByReplacingOccurrencesOfString:("_Incr") withString:("差分")) |
198 | set ocidOutPutstring to (ocidOutPutstring's stringByReplacingOccurrencesOfString:("dld") withString:("")) |
199 | |
200 | |
201 | ############################## |
202 | #テキスト保存 |
203 | set ocidSaveTextFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:("AcrobatSCAManifest.txt") isDirectory:(false) |
204 | set listDone to ocidOutPutstring's writeToURL:(ocidSaveTextFilePathURL) atomically:(true) encoding:(refMe's NSUTF8StringEncoding) |error| :(reference) |
205 | if (item 1 of listDone) is true then |
206 | log "writeToURL 正常処理" |
207 | else if (item 2 of listDone) ≠ (missing value) then |
208 | log (item 2 of listDone)'s code() as text |
209 | log (item 2 of listDone)'s localizedDescription() as text |
210 | return "writeToURL エラーしました" |
211 | end if |
212 | |
213 | ############################## |
214 | #開く |
215 | set appSharedWorkspace to refMe's NSWorkspace's sharedWorkspace() |
216 | set boolDone to appSharedWorkspace's openURL:(ocidSaveTextFilePathURL) |
217 | |
218 | if (boolDone) is true then |
219 | return "正常処理" |
220 | else if (boolDone) is false then |
221 | return "エラーしました" |
222 | end if |
223 | |
AppleScriptで生成しました |
| 固定リンク
注意SCA(single client app) Unified App版です
アップデータ:Reader版差分:旧称Readerの差分パッチ
アップデータ:Reader版累積:旧称Readerの累積パッチ
アップデータ:統合差分:製品版DCの差分パッチ
Acrobat版新規インストーラー:製品版DCの新規インストーラー上書き用
アップデータ:統合累積:製品版DCの累積パッチ
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
Acrobat版新規インストーラー
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400520400/AcrobatSCADC2400520400_MUI.pkg
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400520400/AcrobatSCADC2400520400_MUI.dmg
1,531.09 MB
Acrobat版新規インストーラーmacOS11まで
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcrobatSCADC2400420272_MUI.pkg
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcrobatSCADC2400420272_MUI.dmg
1,432.81 MB
Reader版新規インストーラー
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400520400/AcroRdrSCADC2400520400_MUI.pkg
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400520400/AcroRdrSCADC2400520400_MUI.dmg
689.1 MB
Reader版新規インストーラーmacOS11まで
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcroRdrSCADC2400420272_MUI.pkg
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcroRdrSCADC2400420272_MUI.dmg
594.08 MB
アップデータ:統合累積
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400520400/AcrobatSCADCUpd2400520400.pkg
781.26 MB
アップデータ:統合累積macOS11まで
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcrobatSCADCUpd2400420272.pkg
692.8 MB
アップデータ:統合差分
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400520400/AcrobatSCADCUpd2400520400_incr.pkg
276.1 MB
アップデータ:統合差分macOS11まで
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcrobatSCADCUpd2400420272_incr.pkg
194.06 MB
アップデータ:Reader版累積
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400520400/AcroRdrSCADCUpd2400520400_MUI.pkg
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400520400/AcroRdrSCADCUpd2400520400_MUI.dmg
599.55 MB
アップデータ:Reader版累積macOS11まで
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcroRdrSCADCUpd2400420272_MUI.pkg
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcroRdrSCADCUpd2400420272_MUI.dmg
508.84 MB
アップデータ:Reader版差分
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400520400/AcroRdrSCADCUpd2400520400_MUI_incr.pkg
249.32 MB
アップデータ:Reader版差分macOS11まで
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcroRdrSCADCUpd2400420272_MUI_incr.pkg
166.98 MB
| 固定リンク
macOS11以前のバージョンのmacOSのサポートは終了したので
macOS11以前のmacOSを利用している場合の最終版
注意SCA(single client app) Unified App版です
Acrobat累積アップデート
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcrobatSCADCUpd2400420272.pkg
692.8 MB
Acrobat累積の差分のみアップデート
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcrobatSCADCUpd2400420272_incr.pkg
194.06 MB
新規 Readerインストーラー
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcroRdrSCADC2400420272_MUI.pkg
594.08 MB
Reader累積アップデート
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcroRdrSCADCUpd2400420272_MUI.pkg
508.84 MB
Reader累積の差分のみアップデート
https://ardownload3.adobe.com/pub/adobe/acrobat/mac/AcrobatDC/2400420272/AcroRdrSCADCUpd2400420272_MUI_incr.pkg
166.98 MB
| 固定リンク
行番号 | ソース |
---|---|
001 | #! /usr/bin/env osascript |
002 | ----+----1----+----2----+-----3----+----4----+----5----+----6----+----7 |
003 | (* |
004 | シングルクライアントアプリケーションSCA版のAcrobatの |
005 | 最新アップデーターのURLを取得します |
006 | com.cocolog-nifty.quicktimer.icefloe *) |
007 | ----+----1----+----2----+-----3----+----4----+----5----+----6----+----7 |
008 | use AppleScript version "2.8" |
009 | use framework "Foundation" |
010 | use framework "AppKit" |
011 | use scripting additions |
012 | |
013 | property refMe : a reference to current application |
014 | |
015 | property refNSNotFound : a reference to 9.22337203685477E+18 + 5807 |
016 | |
017 | |
018 | ############################## |
019 | #ダウンロードするURL |
020 | set ocidURLComponents to refMe's NSURLComponents's alloc()'s init() |
021 | ocidURLComponents's setScheme:"https" |
022 | ocidURLComponents's setHost:"armmf.adobe.com" |
023 | ocidURLComponents's setPath:"/arm-manifests/mac/AcrobatDC/acrobatSCA/AcrobatSCAManifest.arm" |
024 | set ocidURLStrings to ocidURLComponents's |URL|'s absoluteString() |
025 | set ocidURL to refMe's NSURL's alloc()'s initWithString:(ocidURLStrings) |
026 | log ocidURL's absoluteString() as text |
027 | |
028 | ############################## |
029 | #起動時に削除される項目にダウンロード |
030 | set appFileManager to refMe's NSFileManager's defaultManager() |
031 | set ocidTempDirURL to appFileManager's temporaryDirectory() |
032 | set ocidUUID to refMe's NSUUID's alloc()'s init() |
033 | set ocidUUIDString to ocidUUID's UUIDString |
034 | set ocidSaveDirPathURL to ocidTempDirURL's URLByAppendingPathComponent:(ocidUUIDString) isDirectory:(true) |
035 | #フォルダを作っておく |
036 | set ocidAttrDict to refMe's NSMutableDictionary's alloc()'s initWithCapacity:0 |
037 | ocidAttrDict's setValue:(511) forKey:(refMe's NSFilePosixPermissions) |
038 | set listDone to appFileManager's createDirectoryAtURL:(ocidSaveDirPathURL) withIntermediateDirectories:(true) attributes:(ocidAttrDict) |error| :(reference) |
039 | if (item 1 of listDone) is true then |
040 | log "createDirectoryAtURL 正常処理" |
041 | else 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 エラーしました" |
045 | end if |
046 | #保存パス |
047 | set strSaveFileName to "AcrobatSCAManifest.pkg" as text |
048 | set ocidSaveFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:(strSaveFileName) isDirectory:(false) |
049 | |
050 | ############################## |
051 | #NSDATAでダウンロード |
052 | set ocidOption to (refMe's NSDataReadingMappedIfSafe) |
053 | set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidURL) options:(ocidOption) |error| :(reference) |
054 | if (item 2 of listResponse) = (missing value) then |
055 | log "正常処理" |
056 | set ocidReadData to (item 1 of listResponse) |
057 | else 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 "エラーしました" |
061 | end if |
062 | |
063 | ############################## |
064 | #保存 |
065 | set ocidOption to (refMe's NSDataWritingAtomic) |
066 | set listDone to ocidReadData's writeToURL:(ocidSaveFilePathURL) options:(ocidOption) |error| :(reference) |
067 | if (item 1 of listDone) is true then |
068 | log "正常処理" |
069 | else 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 "エラーしました" |
073 | end if |
074 | ############################## |
075 | #PKG解凍 |
076 | set strPkgPath to (ocidSaveFilePathURL's |path|()) as text |
077 | #解凍先 |
078 | set ocidDistDirPathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:("UnArchived") isDirectory:(true) |
079 | set strDistPath to (ocidDistDirPathURL's |path|()) as text |
080 | #コマンド実行 |
081 | set strComandText to ("/usr/sbin/pkgutil --expand \"" & strPkgPath & "\" \"" & strDistPath & "\"") as text |
082 | log strComandText |
083 | try |
084 | do shell script strComandText |
085 | on error |
086 | return "pkgutilでエラーになりました" |
087 | end try |
088 | |
089 | ############################## |
090 | #マニフェスト読み込み |
091 | #XMLパス |
092 | set ocidXmlFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:("UnArchived/ASSET/AcrobatSCAManifest.xml") isDirectory:(true) |
093 | ############################## |
094 | #NSDATAに読み込み |
095 | set ocidOption to (refMe's NSDataReadingMappedIfSafe) |
096 | set listResponse to refMe's NSData's alloc()'s initWithContentsOfURL:(ocidXmlFilePathURL) options:(ocidOption) |error| :(reference) |
097 | if (item 2 of listResponse) = (missing value) then |
098 | log "initWithContentsOfURL 正常処理" |
099 | set ocidReadData to (item 1 of listResponse) |
100 | else 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 エラーしました" |
104 | end if |
105 | ############################## |
106 | #XMLに読み込む |
107 | set ocidOption to (refMe's NSXMLNodePreserveAll) + (refMe's NSXMLDocumentTidyHTML) |
108 | set listResponse to refMe's NSXMLDocument's alloc()'s initWithData:(ocidReadData) options:(ocidOption) |error| :(reference) |
109 | if (item 2 of listResponse) = (missing value) then |
110 | log "initWithData 正常処理" |
111 | set ocidXMLDoc to (item 1 of listResponse) |
112 | else 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) |
117 | end if |
118 | ############################## |
119 | #出力用テキスト |
120 | set ocidOutPutstring to refMe's NSMutableString's alloc()'s initWithCapacity:(0) |
121 | ocidOutPutstring's appendString:("SCA版 Acrobatの最新パッチURL\n\n") |
122 | set strSetInfoStr to ("dld_Patch_Mini_Incr:旧称Readerの差分パッチ\ndld_Patch_Mini_Cumulative:旧称Readerの累積パッチ\ndld_Patch_Combined_Incr:製品版DCの差分パッチ\ndld_Acrobat_Full:製品版DCの新規インストーラー上書き用\ndld_Patch_Combined_Cumulative:製品版DCの累積パッチ\n") as text |
123 | ocidOutPutstring's appendString:(strSetInfoStr) |
124 | ocidOutPutstring's appendString:("\n") |
125 | ############################## |
126 | #XML解析 |
127 | #ROOT |
128 | set ocidRootElement to ocidXMLDoc's rootElement() |
129 | set ocidActionItemsArray to ocidRootElement's elementsForName:("DownloadActionItems") |
130 | set ocidActionItems to ocidActionItemsArray's firstObject() |
131 | set ocidItemArray to (ocidActionItems's elementsForName:("dItem")) |
132 | repeat 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 | |
164 | end repeat |
165 | |
166 | |
167 | ############################## |
168 | #テキスト保存 |
169 | set ocidSaveTextFilePathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:("AcrobatSCAManifest.txt") isDirectory:(false) |
170 | set listDone to ocidOutPutstring's writeToURL:(ocidSaveTextFilePathURL) atomically:(true) encoding:(refMe's NSUTF8StringEncoding) |error| :(reference) |
171 | if (item 1 of listDone) is true then |
172 | log "writeToURL 正常処理" |
173 | else 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 エラーしました" |
177 | end if |
178 | |
179 | ############################## |
180 | #開く |
181 | set appSharedWorkspace to refMe's NSWorkspace's sharedWorkspace() |
182 | set boolDone to appSharedWorkspace's openURL:(ocidSaveTextFilePathURL) |
183 | |
184 | if (boolDone) is true then |
185 | return "正常処理" |
186 | else if (boolDone) is false then |
187 | return "エラーしました" |
188 | end if |
189 | |
AppleScriptで生成しました |
| 固定リンク
Accessibility Acrobat Acrobat 2020 Acrobat 2024 Acrobat AddOn Acrobat Annotation Acrobat AppleScript Acrobat ARMDC Acrobat AV2 Acrobat BookMark Acrobat Classic Acrobat DC Acrobat Dialog Acrobat Distiller Acrobat Form Acrobat GentechAI Acrobat JS Acrobat JS Word Search Acrobat Maintenance Acrobat Manifest Acrobat Menu Acrobat Merge Acrobat Open Acrobat PDFPage Acrobat Plugin Acrobat Preferences Acrobat Preflight Acrobat Print Acrobat Python Acrobat Reader Acrobat Reader Localized Acrobat Reference Acrobat Registered Products Acrobat SCA Acrobat SCA Updater Acrobat Sequ Acrobat Sign Acrobat Stamps Acrobat URL List Mac Acrobat URL List Windows Acrobat Watermark Acrobat Windows Acrobat Windows Reader Admin Admin Account Admin Apachectl Admin ConfigCode Admin configCode Admin Device Management Admin LaunchServices Admin Locationd Admin loginitem Admin Maintenance Admin Mobileconfig Admin NetWork Admin Permission Admin Pkg Admin Power Management Admin Printer Admin Printer Basic Admin Printer Custompapers Admin SetUp Admin SMB Admin softwareupdate Admin Support Admin System Information Admin TCC Admin Tools Admin Umask Admin Users Admin Volumes Admin XProtect Adobe Adobe AUSST Adobe Bridge Adobe Documents Adobe FDKO Adobe Fonts Adobe Reference Adobe RemoteUpdateManager Adobe Sap Code AppKit Apple AppleScript AppleScript Duplicate AppleScript entire contents AppleScript List AppleScript ObjC AppleScript Osax AppleScript PDF AppleScript Pictures AppleScript record AppleScript Video Applications AppStore Archive Archive Keka Attributes Automator BackUp Barcode Barcode Decode Barcode QR Bash Basic Basic Path Bluetooth BOX Browser Calendar CD/DVD Choose Chrome Chromedriver CIImage CityCode CloudStorage Color Color NSColor Color NSColorList com.apple.LaunchServices.OpenWith Console Contacts CotEditor CURL current application Date&Time delimiters Desktop Desktop Position Device Diff Disk do shell script Dock Dock Launchpad DropBox Droplet eMail Encode % Encode Decode Encode HTML Entity Encode UTF8 Error EXIFData exiftool ffmpeg File File Name Finder Finder Window Firefox Folder FolderAction Font List FontCollections Fonts Fonts Asset_Font Fonts ATS Fonts Emoji Fonts Maintenance Fonts Morisawa Fonts Python Fonts Variable Foxit GIF github Guide HTML Icon Icon Assets.car Illustrator Image Events ImageOptim Input Dictionary iPhone iWork Javascript Jedit Ω Json Label Language Link locationd lsappinfo m3u8 Mail 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 Microsoft Office Link Microsoft OneDrive Microsoft Teams Mouse Music Node Notes NSArray NSArray Sort NSAttributedString NSBezierPath NSBitmapImageRep NSBundle NSCFBoolean NSCharacterSet NSData NSDecimalNumber NSDictionary NSError NSEvent NSFileAttributes NSFileManager NSFileManager enumeratorAtURL NSFont NSFontManager NSGraphicsContext NSGraphicsContext Crop NSImage NSIndex NSKeyedArchiver NSKeyedUnarchiver NSLocale NSMetadataItem NSMutableArray NSMutableDictionary NSMutableString NSNotFound NSNumber NSOpenPanel NSPasteboard NSpoint NSPredicate NSRange NSRect NSRegularExpression NSRunningApplication NSScreen NSSet NSSize NSString NSString stringByApplyingTransform NSStringCompareOptions NSTask NSTimeZone NSUbiquitous NSURL NSURL File NSURLBookmark NSURLComponents NSURLResourceKey NSURLSession NSUserDefaults NSUUID NSView NSWorkspace Numbers OAuth PDF PDF Image2PDF PDF MakePDF PDF nUP PDF Pymupdf PDF Pypdf PDFContext PDFDisplayBox PDFImageRep PDFKit PDFKit Annotation PDFKit AnnotationWidget PDFKit DocumentPermissions PDFKit OCR PDFKit Outline PDFKit Start PDFPage PDFPage Rotation PDFView perl Photoshop PlistBuddy pluginkit plutil postalcode PostScript PowerShell prefPane Preview Python Python eyed3 Python pip QuickLook QuickTime ReadMe Regular Expression Reminders ReName Repeat RTF Safari SaveFile ScreenCapture ScreenSaver Script Editor Script Menu SF Symbols character id SF Symbols Entity Shortcuts Shortcuts Events sips Skype Slack Sound Spotlight sqlite StandardAdditions StationSearch Subtitles LRC Subtitles SRT Subtitles VTT Swift swiftDialog System Events System Settings 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 Weather webarchive webp Wifi Windows XML XML EPUB XML HTML XML LSSharedFileList XML LSSharedFileList sfl2 XML LSSharedFileList sfl3 XML objectsForXQuery XML OPML XML Plist XML Plist System Events XML RSS XML savedSearch XML SVG XML TTML XML webloc XML xmllint XML XMP YouTube Zero Padding zoom