Adobe

Adobe Creative Cloudデスクトップアプリがファイルの同期をしているか?の確認


AppleScript サンプルコード

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

AppleScript サンプルソース(参考)
行番号ソース
001#! /usr/bin/env osascript
002----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
003#com.cocolog-nifty.quicktimer.icefloe
004#
005----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
006use AppleScript version "2.8"
007use framework "Foundation"
008use scripting additions
009
010property refMe : a reference to current application
011
012set strFilePath to ("~/Library/Application Support/Adobe/OOBE/filesync.db") as text
013set ocidFilePathStr to refMe's NSString's stringWithString:(strFilePath)
014set ocidFilePath to ocidFilePathStr's stringByStandardizingPath()
015set ocidFilePathURL to (refMe's NSURL's alloc()'s initFileURLWithPath:(ocidFilePath) isDirectory:false)
016set strFilePath to (ocidFilePathURL's |path|()) as text
017
018set strCommandText to ("/usr/bin/sqlite3 \"" & strFilePath & "\" \"SELECT \\\"sync_status\\\" FROM \\\"user_bucket_mapping\\\";\"")
019log strCommandText
020set strResponse to (do shell script strCommandText) as text
021
022if strResponse is "on" then
023  log "ファイルの同期がONです"
024  
025else if strResponse is "off" then
026  log "ファイルの同期がOFFです"
027  
028end if
AppleScriptで生成しました

|

AdobeFontsのインストール中のフォント一覧を出力する(HTML形式)


あくまでも参考にしてください

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

サンプルソース(参考)
行番号ソース
001#!/usr/bin/env osascript
002----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
003#
004# 最初にarrayにしてHTMLを生成しようとしたので無駄な行が多い
005#com.cocolog-nifty.quicktimer.icefloe
006----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
007use AppleScript version "2.8"
008use framework "Foundation"
009use framework "UniformTypeIdentifiers"
010use framework "AppKit"
011use scripting additions
012
013property refMe : a reference to current application
014#入力ファイル
015set appFileManager to refMe's NSFileManager's defaultManager()
016set ocidURLsArray to (appFileManager's URLsForDirectory:(refMe's NSApplicationSupportDirectory) inDomains:(refMe's NSUserDomainMask))
017set ocidApplicatioocidupportDirPathURL to ocidURLsArray's firstObject()
018set ocidFilePathURL to ocidApplicatioocidupportDirPathURL's URLByAppendingPathComponent:("Adobe/CoreSync/plugins/livetype/.c/entitlements.xml") isDirectory:(false)
019#出力先ディレクトリ HTML
020set ocidHomeDirURL to appFileManager's homeDirectoryForCurrentUser()
021set ocidSaveDirPathURL to ocidHomeDirURL's URLByAppendingPathComponent:("Sites/AdobeFonts") isDirectory:(true)
022set ocidSaveDirPath to ocidSaveDirPathURL's |path|()
023set boolDirExists to appFileManager's fileExistsAtPath:(ocidSaveDirPath) isDirectory:(true)
024if boolDirExists = true then
025  log "保存先フォルダ有り"
026else if boolDirExists = false then
027  log "保存先フォルダを作ります"
028  set ocidAttrDict to refMe's NSMutableDictionary's alloc()'s initWithCapacity:0
029  #留意 アクセス権755です
030  ocidAttrDict's setValue:(493) forKey:(refMe's NSFilePosixPermissions)
031  set listDone to appFileManager's createDirectoryAtURL:(ocidSaveDirPathURL) withIntermediateDirectories:true attributes:(ocidAttrDict) |error| :(reference)
032  if (item 1 of listDone) is true then
033    log "正常処理"
034  else if (item 2 of listDone) ≠ (missing value) then
035    log (item 2 of listDone)'s code() as text
036    log (item 2 of listDone)'s localizedDescription() as text
037    return "エラーしました"
038  end if
039end if
040#出力ファイル HTML
041set strTime to doGetDateNo("yyyyMMdd_HHmmss") as text
042set strHtmlFileName to ("" & strTime & ".html") as text
043set ocidSaveHTMLPathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:(strHtmlFileName) isDirectory:(false)
044
045
046##########################################
047####本処理 データ収集
048##########################################
049##出力用のリスト
050set ocidOutPutArray to refMe's NSMutableArray's alloc()'s initWithCapacity:(0)
051#XML初期化
052set ocidOption to (refMe's NSXMLDocumentTidyXML)
053set listResponse to (refMe's NSXMLDocument's alloc()'s initWithContentsOfURL:(ocidFilePathURL) options:(ocidOption) |error| :(reference))
054#
055if (item 2 of listResponse) = (missing value) then
056  log "正常処理"
057  set ocidReadXML to (item 1 of listResponse)
058else 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 "エラーしました"
062end if
063#【1】ROOT typekitSyncState
064set ocidRootElement to ocidReadXML's rootElement()
065#【2】Fontsリスト
066set ocidFontsElement to (ocidRootElement's elementsForName:("fonts"))
067set ocidFonts to ocidFontsElement's firstObject()
068set ocidFontsChild to ocidFonts's children()
069set ocidCntInstallFont to ocidFonts's childCount()
070#【3】子要素のFontの数だけ繰り返し
071repeat with itemNo from 0 to (ocidCntInstallFont - 1) by 1
072  ##出力用のレコード
073  set ocidSetDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
074  #値の取得
075  set ocidFontChild to (ocidFonts's childAtIndex:(itemNo))
076  set ocidFontID to (ocidFontChild's elementsForName:("id"))'s firstObject()'s stringValue()
077  #レコードに保存
078  (ocidSetDict's setValue:(ocidFontID) forKey:("id"))
079  set ocidProperties to (ocidFontChild's elementsForName:("properties"))'s firstObject()
080  set ocidCntProperties to ocidProperties's childCount()
081  #familyName
082  set ocidValue to (ocidProperties's elementsForName:("familyName"))'s firstObject()
083  set ocidStingValue to ocidValue's stringValue()
084  #レコードに保存
085  (ocidSetDict's setValue:(ocidStingValue) forKey:("familyName"))
086  #
087  set ocidValue to (ocidProperties's elementsForName:("familyURL"))'s firstObject()
088  if ocidValue ≠ (missing value) then
089    set ocidStingValue to ocidValue's stringValue()
090  else
091    set ocidStingValue to ""
092  end if
093  #レコードに保存
094  (ocidSetDict's setValue:(ocidStingValue) forKey:("familyURL"))
095  #sortOrder
096  set ocidValue to (ocidProperties's elementsForName:("sortOrder"))'s firstObject()
097  if ocidValue ≠ (missing value) then
098    set ocidStingValue to ocidValue's stringValue()
099  else
100    set ocidStingValue to ""
101  end if
102  #レコードに保存
103  (ocidSetDict's setValue:(ocidStingValue) forKey:("sortOrder"))
104  #fullName
105  set ocidValue to (ocidProperties's elementsForName:("fullName"))'s firstObject()
106  if ocidValue ≠ (missing value) then
107    set ocidStingValue to ocidValue's stringValue()
108  else
109    set ocidStingValue to ""
110  end if
111  #レコードに保存
112  (ocidSetDict's setValue:(ocidStingValue) forKey:("fullName"))
113  #variationName
114  set ocidValue to (ocidProperties's elementsForName:("variationName"))'s firstObject()
115  if ocidValue ≠ (missing value) then
116    set ocidStingValue to ocidValue's stringValue()
117  else
118    set ocidStingValue to ""
119  end if
120  #レコードに保存
121  (ocidSetDict's setValue:(ocidStingValue) forKey:("variationName"))
122  #variationName
123  set ocidValue to (ocidProperties's elementsForName:("isVariable"))'s firstObject()
124  if ocidValue ≠ (missing value) then
125    set ocidStingValue to ocidValue's stringValue()
126  else
127    set ocidStingValue to ""
128  end if
129  #レコードに保存
130  (ocidSetDict's setValue:(ocidStingValue) forKey:("isVariable"))
131  #i18n 子要素
132  set listResponse to (ocidProperties's objectsForXQuery:("./i18n/locales/locale/fullName") |error| :(reference))
133  set ocidValue to (item 1 of listResponse)'s firstObject()
134  if (ocidValue) ≠ (missing value) then
135    set ocidStingValue to ocidValue's stringValue()
136  else if (ocidValue) = (missing value) then
137    set ocidStingValue to ""
138  end if
139  #レコードに保存
140  (ocidSetDict's setValue:(ocidStingValue) forKey:("localefullName"))
141  #i18n 子要素
142  set listResponse to (ocidProperties's objectsForXQuery:("./i18n/locales/locale/familyName") |error| :(reference))
143  set ocidValue to (item 1 of listResponse)'s firstObject()
144  if (ocidValue) ≠ (missing value) then
145    set ocidStingValue to ocidValue's stringValue()
146  else if (ocidValue) = (missing value) then
147    set ocidStingValue to ""
148  end if
149  #レコードに保存
150  (ocidSetDict's setValue:(ocidStingValue) forKey:("localefamilyName"))
151  (ocidOutPutArray's addObject:(ocidSetDict))
152end repeat
153##########################################
154####本処理 TSV生成 ocidSaveTSVPathURL
155##########################################
156set ocidTSVstring to refMe's NSMutableString's alloc()'s initWithCapacity:(0)
157# ocidTSVstring's appendString:("no\tid\tfullName\tfamilyName\tvariationName\tsortOrder\tisVariable\tfullName\tfamilyName\tLINK\n")
158ocidTSVstring's appendString:("no\tid\tfullName\tfamilyName\tvariationName\tfullName\tfamilyName\tfamilyURL\n")
159set numCntNO to 1 as integer
160repeat with itemDict in ocidOutPutArray
161  (ocidTSVstring's appendString:(numCntNO as text))
162  (ocidTSVstring's appendString:("\t"))
163  (ocidTSVstring's appendString:(itemDict's valueForKey:("id")))
164  (ocidTSVstring's appendString:("\t"))
165  (ocidTSVstring's appendString:(itemDict's valueForKey:("fullName")))
166  (ocidTSVstring's appendString:("\t"))
167  (ocidTSVstring's appendString:(itemDict's valueForKey:("familyName")))
168  (ocidTSVstring's appendString:("\t"))
169  (ocidTSVstring's appendString:(itemDict's valueForKey:("variationName")))
170  (ocidTSVstring's appendString:("\t"))
171  # (ocidTSVstring's appendString:(itemDict's valueForKey:("sortOrder")))
172  # (ocidTSVstring's appendString:("\t"))
173  # (ocidTSVstring's appendString:(itemDict's valueForKey:("isVariable")))
174  # (ocidTSVstring's appendString:("\t"))
175  (ocidTSVstring's appendString:(itemDict's valueForKey:("localefullName")))
176  (ocidTSVstring's appendString:("\t"))
177  (ocidTSVstring's appendString:(itemDict's valueForKey:("localefamilyName")))
178  (ocidTSVstring's appendString:("\t"))
179  (ocidTSVstring's appendString:(itemDict's valueForKey:("familyURL")))
180  
181  (ocidTSVstring's appendString:("\n"))
182  set numCntNO to numCntNO + 1 as integer
183end repeat
184#改行毎でリストにする
185set ocidCharSet to (refMe's NSCharacterSet's newlineCharacterSet)
186set ocidLineArray to (ocidTSVstring's componentsSeparatedByCharactersInSet:(ocidCharSet))
187#最初の1行目だけ別で取得しておく
188set ocidFirstObjectString to ocidLineArray's firstObject()
189set ocidFirstLineArray to ocidFirstObjectString's componentsSeparatedByString:("\t")
190
191##########################################
192####本処理 HTML生成
193##########################################
194########################################
195#headerに渡すエレメント
196set ocidSetHeaderElement to (refMe's NSXMLElement's elementWithName:("div"))
197set ocidH3Element to refMe's NSXMLElement's elementWithName:("h3")
198(ocidH3Element's setStringValue:("インストール済みAdobeFont一覧"))
199(ocidSetHeaderElement's addChild:(ocidH3Element))
200########################################
201#footerに渡すエレメント
202set ocidSetFooterElement to (refMe's NSXMLElement's elementWithName:("div"))
203set ocidAElement to refMe's NSXMLElement's elementWithName:("a")
204set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("href") stringValue:("https://quicktimer.cocolog-nifty.com/"))
205(ocidAElement's addAttribute:(ocidAddNode))
206set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("target") stringValue:("_blank"))
207(ocidAElement's addAttribute:(ocidAddNode))
208set strContents to ("AppleScriptで生成しました") as text
209(ocidAElement's setStringValue:(strContents))
210(ocidSetFooterElement's addChild:(ocidAElement))
211
212########################################
213#articleに渡すエレメント
214set ocidSetArticleElement to (refMe's NSXMLElement's elementWithName:("div"))
215set ocidH3Element to (refMe's NSXMLElement's elementWithName:("h3"))
216set strTime to doGetDateNo("yyyyMMdd") as text
217set strSetValue to (strTime & "時点のリスト") as text
218(ocidH3Element's setStringValue:(strSetValue))
219(ocidSetArticleElement's addChild:(ocidH3Element))
220
221
222#テーブル部生成開始
223set ocidTableElement to refMe's NSXMLElement's elementWithName:("table")
224#【caption】
225set ocidCaptionElement to refMe's NSXMLElement's elementWithName:("caption")
226ocidCaptionElement's setStringValue:("フォントリスト")
227ocidTableElement's addChild:(ocidCaptionElement)
228#【colgroup】
229set ocidColgroupElement to refMe's NSXMLElement's elementWithName:("colgroup")
230#タイトル部の数だけ繰り返し
231#項番部を追加する
232set strFirstCol to ("LineNo") as text
233ocidFirstLineArray's insertObject:(strFirstCol) atIndex:(0)
234repeat with itemColName in ocidFirstLineArray
235  #【col】col生成
236  set ocidAddElement to (refMe's NSXMLElement's elementWithName:("col"))
237  set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("title") stringValue:(itemColName))
238  (ocidAddElement's addAttribute:(ocidAddNode))
239  (ocidColgroupElement's addChild:(ocidAddElement))
240end repeat
241#【col】col生成 LINK部分
242set ocidAddElement to (refMe's NSXMLElement's elementWithName:("col"))
243set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("title") stringValue:("LINK"))
244(ocidAddElement's addAttribute:(ocidAddNode))
245
246
247#テーブルエレメントに追加
248ocidTableElement's addChild:(ocidColgroupElement)
249#【thead】
250set ocidTheadElement to refMe's NSXMLElement's elementWithName:("thead")
251#TR
252set ocidTrElement to refMe's NSXMLElement's elementWithName:("tr")
253#タイトル部の数だけ繰り返し
254repeat with itemColName in ocidFirstLineArray
255  if (itemColName as text) is "LineNo" then
256    #ここはTDではなくてTHを利用
257    set ocidAddElement to (refMe's NSXMLElement's elementWithName:("th"))
258    ####項番処理
259    set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("title") stringValue:(itemColName))
260    (ocidAddElement's addAttribute:(ocidAddNode))
261    #
262    set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("id") stringValue:(itemColName))
263    (ocidAddElement's addAttribute:(ocidAddNode))
264    set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("scope") stringValue:("col"))
265    (ocidAddElement's addAttribute:(ocidAddNode))
266    #値を入れる
267    (ocidAddElement's setStringValue:("\"))
268    #TH→TRにセット
269    (ocidTrElement's addChild:(ocidAddElement))
270  else
271    #ここはTDではなくてTHを利用
272    set ocidAddElement to (refMe's NSXMLElement's elementWithName:("th"))
273    set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("title") stringValue:(itemColName))
274    (ocidAddElement's addAttribute:(ocidAddNode))
275    #
276    set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("id") stringValue:(itemColName))
277    (ocidAddElement's addAttribute:(ocidAddNode))
278    set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("scope") stringValue:("col"))
279    (ocidAddElement's addAttribute:(ocidAddNode))
280    #値を入れる
281    (ocidAddElement's setStringValue:(itemColName))
282    #TH→TRにセット
283    (ocidTrElement's addChild:(ocidAddElement))
284  end if
285end repeat
286#ここはTDではなくてTHを利用 LINK部用
287set ocidAddElement to (refMe's NSXMLElement's elementWithName:("th"))
288set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("title") stringValue:("Link"))
289(ocidAddElement's addAttribute:(ocidAddNode))
290#
291set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("id") stringValue:("Link"))
292(ocidAddElement's addAttribute:(ocidAddNode))
293set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("scope") stringValue:("col"))
294(ocidAddElement's addAttribute:(ocidAddNode))
295#値を入れる
296(ocidAddElement's setStringValue:("LINK"))
297#TH→TRにセット
298(ocidTrElement's addChild:(ocidAddElement))
299
300#TRをTHEADにセット
301ocidTheadElement's addChild:(ocidTrElement)
302#THEADをテーブルにセット
303ocidTableElement's addChild:(ocidTheadElement)
304########################################
305#【tbody】
306set ocidTbodyElement to refMe's NSXMLElement's elementWithName:("tbody")
307###【3-4】:item
308set numCntContents to (count of ocidLineArray) - 1 as integer
309repeat with itemIntNo from 1 to numCntContents by 1
310  set ocidLineItem to (ocidLineArray's objectAtIndex:(itemIntNo))
311  #空行で終わり(TSVが改行で終わるタイプ)
312  if (ocidLineItem as text) is "" then
313    exit repeat
314  end if
315  #
316  set ocidItemLineArray to (ocidLineItem's componentsSeparatedByString:("\t"))
317  set numCntItemLineArray to (count of ocidItemLineArray) as integer
318  ##############
319  #TRの開始
320  set ocidTrElement to (refMe's NSXMLElement's elementWithName:("tr"))
321  ####項番処理
322  set ocidThElement to (refMe's NSXMLElement's elementWithName:("th"))
323  set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("title") stringValue:("項目番号:" & itemIntNo))
324  (ocidThElement's addAttribute:(ocidAddNode))
325  set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("headers") stringValue:("LineNo"))
326  (ocidThElement's addAttribute:(ocidAddNode))
327  set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("scope") stringValue:("col"))
328  (ocidThElement's addAttribute:(ocidAddNode))
329  (ocidThElement's setStringValue:(itemIntNo as text))
330  (ocidTrElement's addChild:(ocidThElement))
331  
332  repeat with itemLineNo from 0 to (numCntItemLineArray - 1) by 1
333    set coidFieldValue to (ocidItemLineArray's objectAtIndex:(itemLineNo))
334    if itemLineNo = 0 then
335      set ocidThElement to (refMe's NSXMLElement's elementWithName:("th"))
336      set strTitle to (ocidFirstLineArray's objectAtIndex:(itemLineNo + 1))
337      set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("title") stringValue:(strTitle))
338      (ocidThElement's addAttribute:(ocidAddNode))
339      set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("headers") stringValue:(strTitle))
340      (ocidThElement's addAttribute:(ocidAddNode))
341      set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("scope") stringValue:("col"))
342      (ocidThElement's addAttribute:(ocidAddNode))
343      (ocidThElement's setStringValue:(coidFieldValue))
344      (ocidTrElement's addChild:(ocidThElement))
345    else
346      set ocidTdElement to (refMe's NSXMLElement's elementWithName:("td"))
347      set strTitle to (ocidFirstLineArray's objectAtIndex:(itemLineNo + 1))
348      set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("title") stringValue:(strTitle))
349      (ocidTdElement's addAttribute:(ocidAddNode))
350      set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("headers") stringValue:(strTitle))
351      (ocidTdElement's addAttribute:(ocidAddNode))
352      (ocidTdElement's setStringValue:(coidFieldValue))
353      (ocidTrElement's addChild:(ocidTdElement))
354    end if
355  end repeat
356  set ocidTdElement to (refMe's NSXMLElement's elementWithName:("td"))
357  set strTitle to (ocidFirstLineArray's objectAtIndex:(itemLineNo + 1))
358  set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("title") stringValue:("Link"))
359  (ocidTdElement's addAttribute:(ocidAddNode))
360  set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("headers") stringValue:("Link"))
361  (ocidTdElement's addAttribute:(ocidAddNode))
362  ##(ocidTdElement's setStringValue:(coidFieldValue))
363  ##
364  set ocidAElement to (refMe's NSXMLElement's elementWithName:("a"))
365  set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("href") stringValue:(coidFieldValue))
366  (ocidAElement's addAttribute:(ocidAddNode))
367  set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("target") stringValue:("_blank"))
368  (ocidAElement's addAttribute:(ocidAddNode))
369  set strContents to ("LINK") as text
370  (ocidAElement's setStringValue:(strContents))
371  #
372  (ocidTdElement's addChild:(ocidAElement))
373  #
374  (ocidTrElement's addChild:(ocidTdElement))
375  (ocidTbodyElement's addChild:(ocidTrElement))
376end repeat
377#TBODYをテーブルにセット
378ocidTableElement's addChild:(ocidTbodyElement)
379#【tfoot】 TRで
380set ocidTfootElement to refMe's NSXMLElement's elementWithName:("tfoot")
381set ocidTrElement to refMe's NSXMLElement's elementWithName:("tr")
382#項目数を取得して
383set numCntCol to (count of ocidFirstLineArray) as integer
384#colspan指定して1行でセット
385set ocidThElement to (refMe's NSXMLElement's elementWithName:("th"))
386set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("title") stringValue:("テーブルの終わり"))
387(ocidThElement's addAttribute:(ocidAddNode))
388set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("colspan") stringValue:((numCntCol + 1) as text))
389(ocidThElement's addAttribute:(ocidAddNode))
390set ocidAddNode to (refMe's NSXMLNode's attributeWithName:("scope") stringValue:("row"))
391(ocidThElement's addAttribute:(ocidAddNode))
392#
393set strContents to ("項目数 : " & (numCntContents - 1)) as text
394(ocidThElement's setStringValue:(strContents))
395#THをTRにセットして
396ocidTrElement's addChild:(ocidThElement)
397#TRをTFOOTにセット
398ocidTfootElement's addChild:(ocidTrElement)
399#TFOOTをテーブルにセット
400ocidTableElement's addChild:(ocidTfootElement)
401#テーブルをアーティクルにセット
402ocidSetArticleElement's addChild:(ocidTableElement)
403
404##############################
405#HTMLにする
406##############################
407set ocidHTML to doMakeRootElement({ocidSetHeaderElement, ocidSetArticleElement, ocidSetFooterElement})
408
409#####保存
410#読み取りやすい表示
411set ocidXMLdata to ocidHTML's XMLDataWithOptions:(refMe's NSXMLNodePrettyPrint)
412
413set listDone to ocidXMLdata's writeToURL:(ocidSaveHTMLPathURL) options:(refMe's NSDataWritingAtomic) |error| :(reference)
414
415####ブラウザで開く
416set aliasFilePath to (ocidSaveHTMLPathURL's absoluteURL()) as alias
417tell application "Finder"
418  open location aliasFilePath
419end tell
420####保存先を開く
421set aliasDirPath to (ocidSaveDirPathURL's absoluteURL()) as alias
422tell application "Finder"
423  open folder aliasDirPath
424end tell
425
426
427
428##########################################
429####日付情報の取得
430##########################################
431to doGetDateNo(strDateFormat)
432  ####日付情報の取得
433  set ocidDate to refMe's NSDate's |date|()
434  ###日付のフォーマットを定義
435  set ocidNSDateFormatter to refMe's NSDateFormatter's alloc()'s init()
436  ocidNSDateFormatter's setLocale:(refMe's NSLocale's localeWithLocaleIdentifier:"en_US")
437  ocidNSDateFormatter's setDateFormat:strDateFormat
438  set ocidDateAndTime to ocidNSDateFormatter's stringFromDate:ocidDate
439  set strDateAndTime to ocidDateAndTime as text
440  return strDateAndTime
441end doGetDateNo
442
443############################################################
444# 基本的なHTMLの構造
445(*
446doMakeRootElement({argHeaderContents, argArticleContents, argFooterContents})
447HTMLのBODY部
448header
449article
450footerにそれぞれAddchildするデータをリストで渡す
451戻り値はRootエレメントにセットされた
452NSXMLDocumentを戻すので 保存すればOK
453*)
454############################################################
455to doMakeRootElement({argHeaderContents, argArticleContents, argFooterContents})
456  #XML初期化
457  set ocidXMLDoc to refMe's NSXMLDocument's alloc()'s init()
458  ocidXMLDoc's setDocumentContentKind:(refMe's NSXMLDocumentHTMLKind)
459  # DTD付与
460  set ocidDTD to refMe's NSXMLDTD's alloc()'s init()
461  ocidDTD's setName:("html")
462  ocidXMLDoc's setDTD:(ocidDTD)
463  #
464  set ocidRootElement to refMe's NSXMLElement's elementWithName:("html")
465  set ocidAddNode to refMe's NSXMLNode's attributeWithName:("lang") stringValue:("ja")
466  ocidRootElement's addAttribute:(ocidAddNode)
467  #
468  set ocidHeadElement to refMe's NSXMLElement's elementWithName:("head")
469  #
470  set ocidAddElement to refMe's NSXMLElement's elementWithName:("title")
471  ocidAddElement's setStringValue:("TSV2HTML")
472  ocidHeadElement's addChild:(ocidAddElement)
473  # http-equiv
474  set ocidAddElement to refMe's NSXMLElement's elementWithName:("meta")
475  set ocidAddNode to refMe's NSXMLNode's attributeWithName:("http-equiv") stringValue:("Content-Type")
476  ocidAddElement's addAttribute:(ocidAddNode)
477  set ocidAddNode to refMe's NSXMLNode's attributeWithName:("content") stringValue:("text/html; charset=UTF-8")
478  ocidAddElement's addAttribute:(ocidAddNode)
479  ocidHeadElement's addChild:(ocidAddElement)
480  #
481  set ocidAddElement to refMe's NSXMLElement's elementWithName:("meta")
482  set ocidAddNode to refMe's NSXMLNode's attributeWithName:("name") stringValue:("viewport")
483  ocidAddElement's addAttribute:(ocidAddNode)
484  set ocidAddNode to refMe's NSXMLNode's attributeWithName:("content") stringValue:("width=720")
485  ocidAddElement's addAttribute:(ocidAddNode)
486  ocidHeadElement's addChild:(ocidAddElement)
487  #
488  set ocidAddElement to refMe's NSXMLElement's elementWithName:("style")
489  ocidAddElement's setStringValue:("body { margin: 10px; background-color: #FFFFFF; } table { border-spacing: 0; caption-side: top; font-family: system-ui; } thead th { border: solid 1px #666666; padding: .5ch 1ch; border-block-width: 1px 0; border-inline-width: 1px 0; &:first-of-type { border-start-start-radius: .5em } &:last-of-type { border-start-end-radius: .5em; border-inline-end-width: 1px } } tbody td { word-wrap: break-word;max-width: 360px;border-spacing: 0; border: solid 1px #666666; padding: .5ch 1ch; border-block-width: 1px 0; border-inline-width: 1px 0; &:last-of-type { border-inline-end-width: 1px } } tbody th { border-spacing: 0; border: solid 1px #666666; padding: .5ch 1ch; border-block-width: 1px 0; border-inline-width: 1px 0; } tbody tr:nth-of-type(odd) { background: #F2F2F2; } .kind_string { font-size: 0.75em; } .date_string { font-size: 0.5em; } tfoot th { border: solid 1px #666666; padding: .5ch 1ch; &:first-of-type { border-end-start-radius: .5em } &:last-of-type { border-end-end-radius: .5em; border-inline-end-width: 1px } }")
490  ocidHeadElement's addChild:(ocidAddElement)
491  ocidRootElement's addChild:(ocidHeadElement)
492  #
493  #ボディエレメント
494  set ocidBodyElement to refMe's NSXMLElement's elementWithName:("body")
495  #ヘッダー
496  set ocidHeaderElement to refMe's NSXMLElement's elementWithName:("header")
497  set ocidAddNode to refMe's NSXMLNode's attributeWithName:("id") stringValue:("header")
498  ocidHeaderElement's addAttribute:(ocidAddNode)
499  set ocidAddNode to refMe's NSXMLNode's attributeWithName:("class") stringValue:("body_header")
500  ocidHeaderElement's addAttribute:(ocidAddNode)
501  ocidHeaderElement's addChild:(argHeaderContents)
502  ocidBodyElement's addChild:(ocidHeaderElement)
503  #アーティクル
504  set ocidArticleElement to refMe's NSXMLElement's elementWithName:("article")
505  set ocidAddNode to refMe's NSXMLNode's attributeWithName:("id") stringValue:("article")
506  ocidArticleElement's addAttribute:(ocidAddNode)
507  set ocidAddNode to refMe's NSXMLNode's attributeWithName:("class") stringValue:("body_article")
508  ocidArticleElement's addAttribute:(ocidAddNode)
509  ocidArticleElement's addChild:(argArticleContents)
510  ocidBodyElement's addChild:(ocidArticleElement)
511  #フッター
512  set ocidFooterElement to refMe's NSXMLElement's elementWithName:("footer")
513  set ocidAddNode to refMe's NSXMLNode's attributeWithName:("id") stringValue:("footer")
514  ocidFooterElement's addAttribute:(ocidAddNode)
515  set ocidAddNode to refMe's NSXMLNode's attributeWithName:("class") stringValue:("body_footer")
516  ocidFooterElement's addAttribute:(ocidAddNode)
517  ocidFooterElement's addChild:(argFooterContents)
518  ocidBodyElement's addChild:(ocidFooterElement)
519  #ボディをROOTエレメントにセット
520  ocidRootElement's addChild:(ocidBodyElement)
521  #ROOTをXMLにセット
522  ocidXMLDoc's setRootElement:(ocidRootElement)
523  #値を戻す
524  return ocidXMLDoc
525end doMakeRootElement
AppleScriptで生成しました

|

AdobeFontsのインストール中のフォント一覧を出力する(TSV形式)


あくまでも参考にしてください

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

サンプルソース(参考)
行番号ソース
001#!/usr/bin/env osascript
002----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
003#
004#
005#com.cocolog-nifty.quicktimer.icefloe
006----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
007use AppleScript version "2.8"
008use framework "Foundation"
009use framework "UniformTypeIdentifiers"
010use framework "AppKit"
011use scripting additions
012
013property refMe : a reference to current application
014#入力ファイル
015set appFileManager to refMe's NSFileManager's defaultManager()
016set ocidURLsArray to (appFileManager's URLsForDirectory:(refMe's NSApplicationSupportDirectory) inDomains:(refMe's NSUserDomainMask))
017set ocidApplicatioocidupportDirPathURL to ocidURLsArray's firstObject()
018set ocidFilePathURL to ocidApplicatioocidupportDirPathURL's URLByAppendingPathComponent:("Adobe/CoreSync/plugins/livetype/.c/entitlements.xml") isDirectory:(false)
019#出力先ディレクトリ HTML
020set ocidHomeDirURL to appFileManager's homeDirectoryForCurrentUser()
021set ocidSaveDirPathURL to ocidHomeDirURL's URLByAppendingPathComponent:("Sites/AdobeFonts") isDirectory:(true)
022set ocidSaveDirPath to ocidSaveDirPathURL's |path|()
023set boolDirExists to appFileManager's fileExistsAtPath:(ocidSaveDirPath) isDirectory:(true)
024if boolDirExists = true then
025  log "保存先フォルダ有り"
026else if boolDirExists = false then
027  log "保存先フォルダを作ります"
028  set ocidAttrDict to refMe's NSMutableDictionary's alloc()'s initWithCapacity:0
029  #留意 アクセス権755です
030  ocidAttrDict's setValue:(493) forKey:(refMe's NSFilePosixPermissions)
031  set listDone to appFileManager's createDirectoryAtURL:(ocidSaveDirPathURL) withIntermediateDirectories:true attributes:(ocidAttrDict) |error| :(reference)
032  if (item 1 of listDone) is true then
033    log "正常処理"
034  else if (item 2 of listDone) ≠ (missing value) then
035    log (item 2 of listDone)'s code() as text
036    log (item 2 of listDone)'s localizedDescription() as text
037    return "エラーしました"
038  end if
039end if
040#出力ファイル HTML
041set strTime to doGetDateNo("yyyyMMdd_HHmmss") as text
042set strHtmlFileName to ("" & strTime & ".html") as text
043set ocidSaveHTMLPathURL to ocidSaveDirPathURL's URLByAppendingPathComponent:(strHtmlFileName) isDirectory:(false)
044
045#出力先ディレクトリ TSV
046set ocidURLsArray to (appFileManager's URLsForDirectory:(refMe's NSDocumentDirectory) inDomains:(refMe's NSUserDomainMask))
047set ocidDocumentDirPathURL to ocidURLsArray's firstObject()
048set ocidSaveTSVDirPathURL to ocidDocumentDirPathURL's URLByAppendingPathComponent:("Adobe/AdobeFonts") isDirectory:(true)
049set ocidSaveTSVDirPath to ocidSaveTSVDirPathURL's |path|()
050set boolDirExists to appFileManager's fileExistsAtPath:(ocidSaveTSVDirPath) isDirectory:(true)
051if boolDirExists = true then
052  log "保存先フォルダ有り"
053else if boolDirExists = false then
054  log "保存先フォルダを作ります"
055  set ocidAttrDict to refMe's NSMutableDictionary's alloc()'s initWithCapacity:0
056  #留意 アクセス権755です
057  ocidAttrDict's setValue:(493) forKey:(refMe's NSFilePosixPermissions)
058  set listDone to appFileManager's createDirectoryAtURL:(ocidSaveTSVDirPathURL) withIntermediateDirectories:true attributes:(ocidAttrDict) |error| :(reference)
059  if (item 1 of listDone) is true then
060    log "正常処理"
061  else if (item 2 of listDone) ≠ (missing value) then
062    log (item 2 of listDone)'s code() as text
063    log (item 2 of listDone)'s localizedDescription() as text
064    return "エラーしました"
065  end if
066end if
067#出力ファイル TSV
068set strTime to doGetDateNo("yyyyMMdd_HHmmss") as text
069set strHtmlFileName to ("" & strTime & ".tsv") as text
070set ocidSaveTSVPathURL to ocidSaveTSVDirPathURL's URLByAppendingPathComponent:(strHtmlFileName) isDirectory:(false)
071
072
073##########################################
074####本処理 データ収集
075##########################################
076##出力用のリスト
077set ocidOutPutArray to refMe's NSMutableArray's alloc()'s initWithCapacity:(0)
078#XML初期化
079set ocidOption to (refMe's NSXMLDocumentTidyXML)
080set listResponse to (refMe's NSXMLDocument's alloc()'s initWithContentsOfURL:(ocidFilePathURL) options:(ocidOption) |error| :(reference))
081#
082if (item 2 of listResponse) = (missing value) then
083  log "正常処理"
084  set ocidReadXML to (item 1 of listResponse)
085else if (item 2 of listResponse) ≠ (missing value) then
086  log (item 2 of listResponse)'s code() as text
087  log (item 2 of listResponse)'s localizedDescription() as text
088  return "エラーしました"
089end if
090#【1】ROOT typekitSyncState
091set ocidRootElement to ocidReadXML's rootElement()
092#【2】Fontsリスト
093set ocidFontsElement to (ocidRootElement's elementsForName:("fonts"))
094set ocidFonts to ocidFontsElement's firstObject()
095set ocidFontsChild to ocidFonts's children()
096set ocidCntInstallFont to ocidFonts's childCount()
097#【3】子要素のFontの数だけ繰り返し
098repeat with itemNo from 0 to (ocidCntInstallFont - 1) by 1
099  ##出力用のレコード
100  set ocidSetDict to (refMe's NSMutableDictionary's alloc()'s initWithCapacity:0)
101  #値の取得
102  set ocidFontChild to (ocidFonts's childAtIndex:(itemNo))
103  set ocidFontID to (ocidFontChild's elementsForName:("id"))'s firstObject()'s stringValue()
104  #レコードに保存
105  (ocidSetDict's setValue:(ocidFontID) forKey:("id"))
106  set ocidProperties to (ocidFontChild's elementsForName:("properties"))'s firstObject()
107  set ocidCntProperties to ocidProperties's childCount()
108  #familyName
109  set ocidValue to (ocidProperties's elementsForName:("familyName"))'s firstObject()
110  set ocidStingValue to ocidValue's stringValue()
111  #レコードに保存
112  (ocidSetDict's setValue:(ocidStingValue) forKey:("familyName"))
113  #
114  set ocidValue to (ocidProperties's elementsForName:("familyURL"))'s firstObject()
115  if ocidValue ≠ (missing value) then
116    set ocidStingValue to ocidValue's stringValue()
117  else
118    set ocidStingValue to ""
119  end if
120  #レコードに保存
121  (ocidSetDict's setValue:(ocidStingValue) forKey:("familyURL"))
122  #sortOrder
123  set ocidValue to (ocidProperties's elementsForName:("sortOrder"))'s firstObject()
124  if ocidValue ≠ (missing value) then
125    set ocidStingValue to ocidValue's stringValue()
126  else
127    set ocidStingValue to ""
128  end if
129  #レコードに保存
130  (ocidSetDict's setValue:(ocidStingValue) forKey:("sortOrder"))
131  #fullName
132  set ocidValue to (ocidProperties's elementsForName:("fullName"))'s firstObject()
133  if ocidValue ≠ (missing value) then
134    set ocidStingValue to ocidValue's stringValue()
135  else
136    set ocidStingValue to ""
137  end if
138  #レコードに保存
139  (ocidSetDict's setValue:(ocidStingValue) forKey:("fullName"))
140  #variationName
141  set ocidValue to (ocidProperties's elementsForName:("variationName"))'s firstObject()
142  if ocidValue ≠ (missing value) then
143    set ocidStingValue to ocidValue's stringValue()
144  else
145    set ocidStingValue to ""
146  end if
147  #レコードに保存
148  (ocidSetDict's setValue:(ocidStingValue) forKey:("variationName"))
149  #variationName
150  set ocidValue to (ocidProperties's elementsForName:("isVariable"))'s firstObject()
151  if ocidValue ≠ (missing value) then
152    set ocidStingValue to ocidValue's stringValue()
153  else
154    set ocidStingValue to ""
155  end if
156  #レコードに保存
157  (ocidSetDict's setValue:(ocidStingValue) forKey:("isVariable"))
158  #i18n 子要素
159  set listResponse to (ocidProperties's objectsForXQuery:("./i18n/locales/locale/fullName") |error| :(reference))
160  set ocidValue to (item 1 of listResponse)'s firstObject()
161  if (ocidValue) ≠ (missing value) then
162    set ocidStingValue to ocidValue's stringValue()
163  else if (ocidValue) = (missing value) then
164    set ocidStingValue to ""
165  end if
166  #レコードに保存
167  (ocidSetDict's setValue:(ocidStingValue) forKey:("localefullName"))
168  #i18n 子要素
169  set listResponse to (ocidProperties's objectsForXQuery:("./i18n/locales/locale/familyName") |error| :(reference))
170  set ocidValue to (item 1 of listResponse)'s firstObject()
171  if (ocidValue) ≠ (missing value) then
172    set ocidStingValue to ocidValue's stringValue()
173  else if (ocidValue) = (missing value) then
174    set ocidStingValue to ""
175  end if
176  #レコードに保存
177  (ocidSetDict's setValue:(ocidStingValue) forKey:("localefamilyName"))
178  (ocidOutPutArray's addObject:(ocidSetDict))
179end repeat
180##########################################
181####本処理 TSV生成 ocidSaveTSVPathURL
182##########################################
183set ocidTSVstring to refMe's NSMutableString's alloc()'s initWithCapacity:(0)
184ocidTSVstring's appendString:("no\tid\tfullName\tfamilyName\tvariationName\tsortOrder\tisVariable\tfullName\tfamilyName\tLINK\n")
185set numCntNO to 1 as integer
186repeat with itemDict in ocidOutPutArray
187  (ocidTSVstring's appendString:(numCntNO as text))
188  (ocidTSVstring's appendString:("\t"))
189  (ocidTSVstring's appendString:(itemDict's valueForKey:("id")))
190  (ocidTSVstring's appendString:("\t"))
191  (ocidTSVstring's appendString:(itemDict's valueForKey:("fullName")))
192  (ocidTSVstring's appendString:("\t"))
193  (ocidTSVstring's appendString:(itemDict's valueForKey:("familyName")))
194  (ocidTSVstring's appendString:("\t"))
195  (ocidTSVstring's appendString:(itemDict's valueForKey:("variationName")))
196  (ocidTSVstring's appendString:("\t"))
197  (ocidTSVstring's appendString:(itemDict's valueForKey:("sortOrder")))
198  (ocidTSVstring's appendString:("\t"))
199  (ocidTSVstring's appendString:(itemDict's valueForKey:("isVariable")))
200  (ocidTSVstring's appendString:("\t"))
201  (ocidTSVstring's appendString:(itemDict's valueForKey:("localefullName")))
202  (ocidTSVstring's appendString:("\t"))
203  (ocidTSVstring's appendString:(itemDict's valueForKey:("localefamilyName")))
204  (ocidTSVstring's appendString:("\t"))
205  (ocidTSVstring's appendString:(itemDict's valueForKey:("familyURL")))
206  
207  (ocidTSVstring's appendString:("\n"))
208  set numCntNO to numCntNO + 1 as integer
209end repeat
210#保存
211set ocidOption to (refMe's NSUTF8StringEncoding)
212set listDone to ocidTSVstring's writeToURL:(ocidSaveTSVPathURL) atomically:(true) encoding:(ocidOption) |error| :(reference)
213#終了
214if (item 1 of listDone) is true then
215  log "正常処理"
216  
217  set appSharedWorkspace to refMe's NSWorkspace's sharedWorkspace()
218  set boolDone to appSharedWorkspace's openURL:(ocidSaveTSVDirPathURL)
219  if (boolDone) is true then
220    log "ディレクトリオープン"
221  else
222    return "ディレクトリオープンに失敗しました"
223  end if
224  return "正常処理"
225else if (item 2 of listDone) ≠ (missing value) then
226  log (item 2 of listDone)'s code() as text
227  log (item 2 of listDone)'s localizedDescription() as text
228  return "エラーしました"
229end if
230return
231
232
233##########################################
234####日付情報の取得
235##########################################
236to doGetDateNo(strDateFormat)
237  ####日付情報の取得
238  set ocidDate to refMe's NSDate's |date|()
239  ###日付のフォーマットを定義
240  set ocidNSDateFormatter to refMe's NSDateFormatter's alloc()'s init()
241  ocidNSDateFormatter's setLocale:(refMe's NSLocale's localeWithLocaleIdentifier:"en_US")
242  ocidNSDateFormatter's setDateFormat:strDateFormat
243  set ocidDateAndTime to ocidNSDateFormatter's stringFromDate:ocidDate
244  set strDateAndTime to ocidDateAndTime as text
245  return strDateAndTime
246end doGetDateNo
247
AppleScriptで生成しました

|

Adobe アンインストール

1:Creative Cloud Uninstaller.appを使う
2:Creative Cloud Cleaner toolを使う
3:HDBoxコマンドを使う
4:AdobeUninstallerを使う(エンタープライズ用)
5:Uninstall packageを使う
6:Installersを使う
7:Adobe Genuine Service (AGS)のみUninstall
8:サードパーティツールを使う
9:キーチェーンのAdobe項目を削除
備考
Adobe チェックポイント(インストールと設定関係のパス一覧)
https://quicktimer.cocolog-nifty.com/icefloe/2023/08/post-d94b66.html



1:Creative Cloud Uninstaller.appを使う
/Applications/Utilities/Adobe Creative Cloud/Utils/Creative Cloud Uninstaller.app

2:Creative Cloud Cleaner toolを使う
Creative Cloud Cleaner tool
直リンクLINK


3:HDBoxコマンドを使う
"/Library/Application Support/Adobe/Adobe Desktop Common/HDBox/Setup"
SAPコードの一覧はこちら[Adobe]アドビSAPコード一覧 (ADOBE SAP CODE LIST)
--uninstall=1
--sapCode=AEFT
--baseVersion=23.0
--platform=osx10-64 又は "macOS (Apple Silicon)"
--deleteUserPreferences=false 又は true
↑trueにするとユーザー設定も削除されます



#!/bin/bash

"/Library/Application Support/Adobe/Adobe Desktop Common/HDBox/Setup" --uninstall=1 --sapCode=AEFT --baseVersion=23.0 --platform="macOS (Apple Silicon)" --deleteUserPreferences=false



4:AdobeUninstallerを使う(エンタープライズ用)
エンタープライズ管理者がAdmin Consoleからダウンロードできます

5:Uninstall packageを使う
https://helpx.adobe.com/enterprise/using/uninstall-creative-cloud-products.html
直リンクLINK

6:Installersを使う
"/Library/Application Support/Adobe/Uninstall"
adbarg拡張子のファイルを参照すれば
インストール済みのパッケージならSAPコードも確認できます


7:Adobe Genuine Service (AGS)のみUninstall
正規品チェッカーを削除できます(これはUS国内での裁判の関係で個別削除できるようになった)
https://helpx.adobe.com/enterprise/using/uninstall-creative-cloud-products.html
直リンクLINK

8:サードパーティツールを使う
最強はこれ
accRemover LINK
ユーザー設定から何から徹底的に削除されます

9:キーチェーンのAdobe項目を削除
[Creative Cloud]ログインに不具合が発生した場合キーチェーンを削除する
https://quicktimer.cocolog-nifty.com/icefloe/2023/12/post-da12f5.html
保存しているパスワード等も全部削除する場合

『ログイン』に不具合がある場合はキーチェーンの削除をする
20240415061912_1754x1066

|

[Adobe]Adobe関連プロセス一斉終了(プロセスが少し増えました)


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

#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
# Adobeの関連アプリの強制終了用
# 先に主要なアプリは終了させてから 例えばAcrobatは終了させてから実行
# com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
use AppleScript version "2.8"
use framework "Foundation"
use framework "AppKIt"
use framework "UniformTypeIdentifiers"
use scripting additions
property refMe : a reference to current application

set listAppBundleID to {"com.adobe.Acrobat.Pro", "com.adobe.distiller", "com.adobe.Reader", "com.adobe.bridge14", "com.adobe.acc.AdobeCreativeCloud"} as list
###まずは通常終了 を試みる
repeat with itemBundleID in listAppBundleID
  set strBundleID to itemBundleID as text
  try
    with timeout of 3 seconds
      tell application id strBundleID to quit
    end timeout
  on error
log "終了出来なかった:" & strBundleID
  end try
end repeat
delay 1
repeat with itemBundleID in listAppBundleID
  set strBundleID to itemBundleID as text
  set ocidRunningApplication to refMe's NSRunningApplication
  set ocidAppArray to (ocidRunningApplication's runningApplicationsWithBundleIdentifier:(strBundleID))
  repeat with itemAppArray in ocidAppArray
itemAppArray's terminate
  end repeat
end repeat
delay 1
###強制終了
repeat with itemBundleID in listAppBundleID
  set strBundleID to itemBundleID as text
  set ocidRunningApplication to refMe's NSRunningApplication
  set ocidAppArray to (ocidRunningApplication's runningApplicationsWithBundleIdentifier:(strBundleID))
  repeat with itemAppArray in ocidAppArray
itemAppArray's forceTerminate
  end repeat
end repeat

set listBundleID to {"com.adobe.ccd.helper", "com.adobe.acc.AdobeCreativeCloud", "com.adobe.Creative-Cloud-Desktop-App", "com.adobe.CCXProcess", "com.adobe.acc.HEXHelper", "com.adobe.acc.HEXHelper.GPU", "com.adobe.acc.HEXHelper.Renderer", "com.adobe.Install", "com.adobe.ACCC.Uninstaller", "com.adobe.accmac", "com.adobe.AdobeCRDaemon", "com.adobe.crashreporter", "com.adobe.LogTransport.LogTransport", "com.Adobe.Installers.AdobeLogCollectorTool", "com.adobe.cc.Adobe-Creative-Cloud-Diagnostics", "com.adobe.ccd.troubleshooter", "com.adobe.acc.CCDContainer", "com.adobe.ARMDCHelper", "com.adobe.AcroLicApp", "com.adobe.HDUninstaller", "com.adobe.ARMDC", "com.adobe.AdobeApplicationUpdater", "com.adobe.acc.AdobeDesktopService", "com.adobe.ngl.p7helper", "com.adobe.adobe_licutil", "com.adobe.AdobeIPCBroker", "com.adobe.CCLibrary", "Adobe.UnifiedPluginInstallerAgent", "com.adobe.Acrobat.NativeMessagingHost", "com.adobe.AdobeRNAWebInstaller", "com.adobe.AdobeAcroCEFHelper", "com.adobe.AdobeAcroCEFHelperRenderer", "com.adobe.AdobeAcroCEFHelperGPU", "com.adobe.AdobeResourceSynchronizer", "com.adobe.AdobeRdrCEF", "com.adobe.AdobeAcroRdrCEFHelperRenderer", "com.adobe.AdobeAcroRdrCEFHelperGPU", "com.adobe.acrobat.assert", "com.adobe.photodownloader", "com.adobe.cep.CEPHtmlEngine Helper (GPU)", "com.adobe.cep.CEPHtmlEngine Helper (Plugin)", "com.adobe.cep.CEPHtmlEngine Helper (Renderer)", "com.adobe.cep.CEPHtmlEngine Helper", "com.adobe.cep.CEPHtmlEngine", "com.adobe.dynamiclinkmanager.application", "com.adobe.dynamiclinkmanager.application", "com.adobe.dynamiclinkmediaserver.application", "com.adobe.ImporterREDServer.application", "com.adobe.headlights.LogTransport2App", "com.adobe.acc.installer.v2", "com.adobe.AdobeRdrCEFHelperGPU", "com.adobe.AdobeRdrCEFHelperRenderer", "com.adobe.AdobeRdrCEFHelper"} as list

set listProcessName to {"AGMService", "AGSService", "AcroCEF", "AcroCEF", "AcroCEF Helper", "AcroCEF Helper (GPU)", "AcroCEF Helper (Renderer)", "Acrobat CEF", "Acrobat CEF Helper", "Acrobat CEF Helper (GPU)", "Acrobat CEF Helper (Renderer)", "Adobe Acrobat Synchronizer", "Adobe CEF", "Adobe CEF Helper", "Adobe CEF Helper", "Adobe CEF Helper (GPU)", "Adobe CEF Helper (Renderer)", "Adobe Content Synchronizer", "Adobe Crash Handler", "Adobe Crash Reporter", "Adobe Desktop Service", "Adobe FormsCentral", "Adobe Installer", "AdobeCEF", "AdobeCEF Helper", "AdobeCEF Helper (GPU)", "AdobeCEF Helper (Renderer)", "AdobeCRDaemon", "AdobeExtensionsService", "AdobeGCClient", "AdobeIPCBroker", "AdobeResourceSynchronizer", "CCLibrary", "CCXProcess", "Core Sync", "Core Sync Helper", "Creative Cloud", "Creative Cloud Content Manager.node", "Creative Cloud Helper", "RdrCEF", "RdrCEF Helper", "RdrCEF Helper (GPU)", "RdrCEF Helper (Renderer)", "Reader CEF", "Reader CEF Helper", "Reader CEF Helper (GPU)", "Reader CEF Helper (Renderer)", "armsvc", "com.adobe.ARMDC.Communicator", "com.adobe.ARMDC.SMJobBlessHelper", "com.adobe.acc.installer.v2", "node"} as list

###まずは通常終了 を試みる
repeat with itemBundleID in listBundleID
  set strBundleID to itemBundleID as text
  try
    with timeout of 3 seconds
      tell application id strBundleID to quit
    end timeout
  on error
log "終了出来なかった:" & strBundleID
  end try
end repeat
delay 1
###通常終了
log "通常終了開始"
repeat with itemBundleID in listBundleID
  set strBundleID to itemBundleID as text
  set ocidRunningApplication to refMe's NSRunningApplication
  set ocidAppArray to (ocidRunningApplication's runningApplicationsWithBundleIdentifier:(strBundleID))
  repeat with itemAppArray in ocidAppArray
itemAppArray's terminate
  end repeat
end repeat
delay 1
log "強制終了開始"
###強制終了
repeat with itemBundleID in listBundleID
  set strBundleID to itemBundleID as text
  set ocidRunningApplication to refMe's NSRunningApplication
  set ocidAppArray to (ocidRunningApplication's runningApplicationsWithBundleIdentifier:(strBundleID))
  repeat with itemAppArray in ocidAppArray
itemAppArray's forceTerminate
  end repeat
end repeat


###残りがちなAdobe Crash HandlerをKILL
set strCommandText to ("/bin/ps -alx | /usr/bin/grep \"Adobe Crash Handler\" | /usr/bin/grep -v grep| /usr/bin/awk -F' ' '{print $2}'") as text
set strResponse to (do shell script strCommandText) as text

set AppleScript's text item delimiters to "\r"
set listPID to every text item of strResponse
set AppleScript's text item delimiters to ""

repeat with itemPID in listPID
  set strPID to itemPID as text
  set strCommandText to ("/bin/kill -9 " & strPID & "") as text
do shell script strCommandText
end repeat

###念入れ

repeat with itemProcessName in listProcessName
  set strProcessName to itemProcessName as text
  set strCommandText to ("/bin/ps -alx | /usr/bin/grep \"" & strProcessName & "\" | /usr/bin/grep -v grep| /usr/bin/awk -F' ' '{print $2}'") as text
  set strResponse to (do shell script strCommandText) as text
  
  set AppleScript's text item delimiters to "\r"
  set listPID to every text item of strResponse
  set AppleScript's text item delimiters to ""
  
  repeat with itemPID in listPID
    set strPID to itemPID as text
    try
      set strCommandText to ("/bin/kill -9 " & strPID & "") as text
do shell script strCommandText
    on error
      set strCommandText to ("/usr/bin/sudo /bin/kill -9 " & strPID & "") as text
do shell script strCommandText with administrator privileges
      
    end try
  end repeat
  
end repeat





|

ADOBE ILLUSTRATOR 2024 SCRIPTING REFERENCE: APPLE SCRIPT

ダウンロード - illustrator20applescript20scripting20reference.pdf

|

Adobe FTPサイトのURLをHTTPダウンロードURLに変換 修正

無駄な改行やスペースを削除するようにした

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

#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#
# Adobe FTPサイトのURLをHTTPダウンロードURLに変換します
#
#
# com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
##自分環境がos12なので2.8にしているだけです
use AppleScript version "2.8"
use framework "Foundation"
use scripting additions


property refMe : a reference to current application
set appFileManager to refMe's NSFileManager's defaultManager()


set appPasteboard to refMe's NSPasteboard's generalPasteboard()
set ocidPasteboardArray to appPasteboard's readObjectsForClasses:({refMe's NSString}) options:(missing value)
set ocidPasteboardStrings to (ocidPasteboardArray's objectAtIndex:0)


##############################
#####ダイアログを前面に
tell current application
  set strName to name as text
end tell
####スクリプトメニューから実行したら
if strName is "osascript" then
  tell application "Finder" to activate
else
  tell current application to activate
end if
set aliasIconPath to POSIX file "/Applications/Utilities/Adobe Creative Cloud/ACC/Creative Cloud.app/Contents/Resources/CreativeCloudApp.icns" as alias
set strURL to ocidPasteboardStrings as text
try
  set recordResponse to (display dialog "Adobe FTP のURL入力" with title "Adobe FTP のURL入力" default answer strURL buttons {"OK", "キャンセル"} default button "OK" cancel button "キャンセル" with icon aliasIconPath giving up after 10 without hidden answer)
  
on error
log "エラーしました"
return "エラーしました"
  error number -128
end try
if true is equal to (gave up of recordResponse) then
return "時間切れですやりなおしてください"
  error number -128
end if
if "OK" is equal to (button returned of recordResponse) then
  set strURL to (text returned of recordResponse) as text
else
log "エラーしました"
return "エラーしました"
  error number -128
end if


set ociddURLstr to refMe's NSString's stringWithString:strURL

###タブと改行を除去しておく
set ocidTextM to refMe's NSMutableString's alloc()'s initWithCapacity:(0)
ocidTextM's appendString:(ociddURLstr)
##改行除去
set ocidTextM to ocidTextM's stringByReplacingOccurrencesOfString:("\n") withString:("")
set ocidTextM to ocidTextM's stringByReplacingOccurrencesOfString:("\r") withString:("")
##タブ除去
set ocidTextM to ocidTextM's stringByReplacingOccurrencesOfString:("\t") withString:("")
####戻り値を半角にする
set ocidNSStringTransform to (refMe's NSStringTransformFullwidthToHalfwidth)
set ocidTextM to (ocidTextM's stringByApplyingTransform:ocidNSStringTransform |reverse|:false)


set ocidURL to refMe's NSURL's alloc()'s initWithString:(ocidTextM)
set ocidPathComponents to ocidURL's pathComponents()
set ocidPath to ocidURL's |path|()

set ocidHTTPComponents to refMe's NSURLComponents's alloc()'s init()
ocidHTTPComponents's setScheme:("http")
ocidHTTPComponents's setHost:("ardownload.adobe.com")
ocidHTTPComponents's setPath:(ocidPath)

set strHTTPURL to (ocidHTTPComponents's |URL|'s absoluteString()) as text



set strMes to ("Adobe ダンロードURLです\r" & strHTTPURL) as text

set recordResult to (display dialog strMes with title "httpURL" default answer strHTTPURL buttons {"クリップボードにコピー", "キャンセル", "ダウンロード"} default button "ダウンロード" cancel button "キャンセル" giving up after 20 with icon aliasIconPath without hidden answer)

if button returned of recordResult is "ダウンロード" then
  tell application "Finder"
open location strHTTPURL
  end tell
end if

if button returned of recordResult is "クリップボードにコピー" then
  try
    set strText to text returned of recordResult as text
    ####ペーストボード宣言
    set appPasteboard to refMe's NSPasteboard's generalPasteboard()
    set ocidText to (refMe's NSString's stringWithString:(strText))
appPasteboard's clearContents()
appPasteboard's setString:(ocidText) forType:(refMe's NSPasteboardTypeString)
  on error
    tell application "Finder"
      set the clipboard to strTitle as text
    end tell
  end try
end if




|

[OPML]Adobe Community Opml 全カテゴリ

ダウンロード - adobe20community20opml.zip


全投稿対象と新規投稿のみの2種類

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

#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#
#
# com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
##自分環境がos12なので2.8にしているだけです
use AppleScript version "2.8"
use framework "Foundation"
use framework "AppKit"
use scripting additions

property refMe : a reference to current application
set appFileManager to refMe's NSFileManager's defaultManager()

###設定項目
##ファイル名デスクトップが保存先
set strSaveFileName to ("Adobe Community ALL Post Opml.opml") as text
##OPMLのタイトル
set strTitle to ("QuickTimerのOPML") as text
##outlineエレメント名=feedlyだとフォルダ名
set strOutlineName to ("Adobe Community JP All Post") as text


set listCategoryIDJp to {"ct-acrobat-reader-and-reader-mobile-jp", "ct-indesign-jp", "ct-illustrator-jp", "ct-after-effects-jp", "ct-acrobat-jp", "ct-photoshop-jp", "ct-premiere-elements-jp", "ct-premiere-pro-jp", "ct-fireworks-jp", "ct-adobe-express-jp", "ct-animate-jp", "ct-xd-jp", "ct-lightroom-classic-jp", "ct-photoshop-express-jp", "ct-lightroom-jp", "ct-video-hardware-jp", "ct-photoshop-elements-jp", "ct-premiere-rush-jp", "ct-media-encoder-jp", "ct-cc-services-jp", "ct-download-and-install-jp", "ct-stock-jp", "ct-fresco-jp", "ct-dreamweaver-jp", "ct-account-payment-and-plan-jp", "ct-perpetual-jp", "ct-bridge-jp", "ct-photoshop-beta-jp", "ct-audition-jp", "ct-community-help-jp", "ct-character-animator-jp", "ct-muse-jp", "ct-teams-jp", "ct-adbe-sign-and-dc-pdf-services-jp", "ct-fonts-jp", "ct-captivate-jp", "ct-adobe-scan-jp", "ct-camera-raw-jp", "ct-framemaker-jp", "ct-enterprise-jp", "ct-color-jp", "ct-robohelp-jp", "ct-dimension-jp", "ct-flash-player-and-shockwave-player-jp", "ct-photoshop-camera-jp", "ct-contribute-jp", "ct-photoshop-mix-jp", "ct-digital-editions-jp", "ct-comp-jp", "ct-spark-jp", "ct-capture-jp", "ct-prelude-jp", "ct-photoshop-sketch-jp", "ct-photoshop-fix-jp", "ct-air-jp", "ct-flex-and-flash-builder-jp", "ct-incopy-jp", "ct-japan-lounge-jp", "ct-illustrator-draw-jp"} as list
set ocidCategoryArray to refMe's NSArray's arrayWithArray:(listCategoryIDJp)
set ocidCategoryM to refMe's NSMutableArray's alloc()'s initWithCapacity:(0)
ocidCategoryM's setArray:(ocidCategoryArray)
set ocidSortedArray to ocidCategoryM's sortedArrayUsingSelector:("localizedCompare:")
set listCategoryIDJp to ocidSortedArray as list


############################################
##保存先
set ocidURLsArray to (appFileManager's URLsForDirectory:(refMe's NSDesktopDirectory) inDomains:(refMe's NSUserDomainMask))
set ocidDesktopDirPathURL to ocidURLsArray's firstObject()
##保存ファイルパス
set ocidNewFilePathURL to ocidDesktopDirPathURL's URLByAppendingPathComponent:(strSaveFileName)

############################################
##XML
###【A】ROOT エレメント
set ocidRootElement to refMe's NSXMLElement's alloc()'s initWithName:"opml"
###【A-1】ROOT エレメントにネームスペース
ocidRootElement's addAttribute:(refMe's NSXMLNode's attributeWithName:("version") stringValue:("1.0"))
###【A-B】子要素
set ocidHeadElement to (refMe's NSXMLElement's alloc()'s initWithName:("head"))
###【A-B-1】子要素
set ocidTitleElement to (refMe's NSXMLElement's elementWithName:("title"))
(ocidTitleElement's setStringValue:(strTitle))
##子要素titleエレメント をheadにセット
(ocidHeadElement's addChild:(ocidTitleElement))
##↑で追加したheadエレメントをROOTにセット
(ocidRootElement's addChild:(ocidHeadElement))

###【A-C-1】子要素
set ocidBodyElement to (refMe's NSXMLElement's alloc()'s initWithName:("body"))
##【A-C-2】bodyエレメントの外側のoutline=フォルダ名になる
set ocidOutLineDivElement to (refMe's NSXMLElement's elementWithName:("outline"))
##外側のoutlineにネームスペース text とtitleを追加
ocidOutLineDivElement's addAttribute:(refMe's NSXMLNode's attributeWithName:("text") stringValue:(strOutlineName))
ocidOutLineDivElement's addAttribute:(refMe's NSXMLNode's attributeWithName:("title") stringValue:(strOutlineName))
##【A-C-D】内側のoutlineエレメントこれが本体

repeat with itemCategoryIDJp in listCategoryIDJp
  
  set ocidOutLineItemElement to (refMe's NSXMLElement's elementWithName:("outline"))
(ocidOutLineItemElement's addAttribute:(refMe's NSXMLNode's attributeWithName:("type") stringValue:("rss")))
(ocidOutLineItemElement's addAttribute:(refMe's NSXMLNode's attributeWithName:("text") stringValue:(itemCategoryIDJp)))
(ocidOutLineItemElement's addAttribute:(refMe's NSXMLNode's attributeWithName:("title") stringValue:(itemCategoryIDJp)))
  set strBaseURL to ("https://community.adobe.com/t5/" & itemCategoryIDJp & "/ct-p/" & itemCategoryIDJp & "") as text
(ocidOutLineItemElement's addAttribute:(refMe's NSXMLNode's attributeWithName:("htmlUrl") stringValue:(strBaseURL)))
  set strNewPostRssURL to ("https://community.adobe.com/havfw69955/rss/Category?category.id=" & itemCategoryIDJp & "&interaction.style=forum&feeds.replies=true") as text
(ocidOutLineItemElement's addAttribute:(refMe's NSXMLNode's attributeWithName:("xmlUrl") stringValue:(strNewPostRssURL)))
  ##内側アイテムoutlineエレメントを 外側のoutlineエレメントにセットしていく
(ocidOutLineDivElement's addChild:(ocidOutLineItemElement))
end repeat

#####外側のoutlineエレメントをbodyエレメントに追加
(ocidBodyElement's addChild:(ocidOutLineDivElement))
###bodyエレメントをROOTにセット
(ocidRootElement's addChild:(ocidBodyElement))
###【XML】↑からのROOTエレメントをセットしてXMLとする 【A】をXMLドキュメントにする
set ocidOutPutXML to refMe's NSXMLDocument's alloc()'s initWithRootElement:(ocidRootElement)
ocidOutPutXML's setVersion:"1.0"
ocidOutPutXML's setCharacterEncoding:"UTF-8"
###XML形式のテキストに出力
set ocidSaveStrings to ocidOutPutXML's XMLString()
###改行コードを指定して
ocidSaveStrings's appendString:"\n"
##保存
set listDone to ocidSaveStrings's writeToURL:(ocidNewFilePathURL) atomically:true encoding:(refMe's NSUTF8StringEncoding) |error|:(reference)



|

[RSS]Adobe Community RSS LIST

Adobe Community RSS LIST
日本語
アイコンフォーラム名新しい記事全ての投稿
ct-account-payment-and-plan-jp新しいトピック記事全てのトピック投稿
ct-acrobat-jp新しいトピック記事全てのトピック投稿
ct-acrobat-reader-and-reader-mobile-jp新しいトピック記事全てのトピック投稿
ct-adbe-sign-and-dc-pdf-services-jp新しいトピック記事全てのトピック投稿
ct-adobe-express-jp新しいトピック記事全てのトピック投稿
ct-adobe-scan-jp新しいトピック記事全てのトピック投稿
ct-after-effects-jp新しいトピック記事全てのトピック投稿
ct-air-jp新しいトピック記事全てのトピック投稿
ct-animate-jp新しいトピック記事全てのトピック投稿
ct-audition-jp新しいトピック記事全てのトピック投稿
ct-bridge-jp新しいトピック記事全てのトピック投稿
ct-camera-raw-jp新しいトピック記事全てのトピック投稿
ct-captivate-jp新しいトピック記事全てのトピック投稿
ct-capture-jp新しいトピック記事全てのトピック投稿
ct-cc-services-jp新しいトピック記事全てのトピック投稿
ct-character-animator-jp新しいトピック記事全てのトピック投稿
ct-color-jp新しいトピック記事全てのトピック投稿
ct-community-help-jp新しいトピック記事全てのトピック投稿
ct-comp-jp新しいトピック記事全てのトピック投稿
ct-contribute-jp新しいトピック記事全てのトピック投稿
ct-digital-editions-jp新しいトピック記事全てのトピック投稿
ct-dimension-jp新しいトピック記事全てのトピック投稿
ct-download-and-install-jp新しいトピック記事全てのトピック投稿
ct-dreamweaver-jp新しいトピック記事全てのトピック投稿
ct-enterprise-jp新しいトピック記事全てのトピック投稿
ct-fireworks-jp新しいトピック記事全てのトピック投稿
ct-flash-player-and-shockwave-player-jp新しいトピック記事全てのトピック投稿
ct-flex-and-flash-builder-jp新しいトピック記事全てのトピック投稿
ct-fonts-jp新しいトピック記事全てのトピック投稿
ct-framemaker-jp新しいトピック記事全てのトピック投稿
ct-fresco-jp新しいトピック記事全てのトピック投稿
ct-illustrator-draw-jp新しいトピック記事全てのトピック投稿
ct-illustrator-jp新しいトピック記事全てのトピック投稿
ct-incopy-jp新しいトピック記事全てのトピック投稿
ct-indesign-jp新しいトピック記事全てのトピック投稿
ct-japan-lounge-jp新しいトピック記事全てのトピック投稿
ct-lightroom-classic-jp新しいトピック記事全てのトピック投稿
ct-lightroom-jp新しいトピック記事全てのトピック投稿
ct-media-encoder-jp新しいトピック記事全てのトピック投稿
ct-muse-jp新しいトピック記事全てのトピック投稿
ct-perpetual-jp新しいトピック記事全てのトピック投稿
ct-photoshop-beta-jp新しいトピック記事全てのトピック投稿
ct-photoshop-camera-jp新しいトピック記事全てのトピック投稿
ct-photoshop-elements-jp新しいトピック記事全てのトピック投稿
ct-photoshop-express-jp新しいトピック記事全てのトピック投稿
ct-photoshop-fix-jp新しいトピック記事全てのトピック投稿
ct-photoshop-jp新しいトピック記事全てのトピック投稿
ct-photoshop-mix-jp新しいトピック記事全てのトピック投稿
ct-photoshop-sketch-jp新しいトピック記事全てのトピック投稿
ct-prelude-jp新しいトピック記事全てのトピック投稿
ct-premiere-elements-jp新しいトピック記事全てのトピック投稿
ct-premiere-pro-jp新しいトピック記事全てのトピック投稿
ct-premiere-rush-jp新しいトピック記事全てのトピック投稿
ct-robohelp-jp新しいトピック記事全てのトピック投稿
ct-spark-jp新しいトピック記事全てのトピック投稿
ct-stock-jp新しいトピック記事全てのトピック投稿
ct-teams-jp新しいトピック記事全てのトピック投稿
ct-video-hardware-jp新しいトピック記事全てのトピック投稿
ct-xd-jp新しいトピック記事全てのトピック投稿
新しい記事全ての投稿
↑ これを作った時のスクリプト

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

#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#
#
#com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
use AppleScript version "2.8"
use framework "Foundation"
use framework "UniformTypeIdentifiers"
use framework "AppKit"
use scripting additions
property refMe : a reference to current application


set strTableTitle to ("Adobe Community RSS LIST") as text


set listCategoryIDJp to {"ct-acrobat-reader-and-reader-mobile-jp", "ct-indesign-jp", "ct-illustrator-jp", "ct-after-effects-jp", "ct-acrobat-jp", "ct-photoshop-jp", "ct-premiere-elements-jp", "ct-premiere-pro-jp", "ct-fireworks-jp", "ct-adobe-express-jp", "ct-animate-jp", "ct-xd-jp", "ct-lightroom-classic-jp", "ct-photoshop-express-jp", "ct-lightroom-jp", "ct-video-hardware-jp", "ct-photoshop-elements-jp", "ct-premiere-rush-jp", "ct-media-encoder-jp", "ct-cc-services-jp", "ct-download-and-install-jp", "ct-stock-jp", "ct-fresco-jp", "ct-dreamweaver-jp", "ct-account-payment-and-plan-jp", "ct-perpetual-jp", "ct-bridge-jp", "ct-photoshop-beta-jp", "ct-audition-jp", "ct-community-help-jp", "ct-character-animator-jp", "ct-muse-jp", "ct-teams-jp", "ct-adbe-sign-and-dc-pdf-services-jp", "ct-fonts-jp", "ct-captivate-jp", "ct-adobe-scan-jp", "ct-camera-raw-jp", "ct-framemaker-jp", "ct-enterprise-jp", "ct-color-jp", "ct-robohelp-jp", "ct-dimension-jp", "ct-flash-player-and-shockwave-player-jp", "ct-photoshop-camera-jp", "ct-contribute-jp", "ct-photoshop-mix-jp", "ct-digital-editions-jp", "ct-comp-jp", "ct-spark-jp", "ct-capture-jp", "ct-prelude-jp", "ct-photoshop-sketch-jp", "ct-photoshop-fix-jp", "ct-air-jp", "ct-flex-and-flash-builder-jp", "ct-incopy-jp", "ct-japan-lounge-jp", "ct-illustrator-draw-jp"} as list

set ocidCategoryArray to refMe's NSArray's arrayWithArray:(listCategoryIDJp)
set ocidCategoryM to refMe's NSMutableArray's alloc()'s initWithCapacity:(0)
ocidCategoryM's setArray:(ocidCategoryArray)
set ocidSortedArray to ocidCategoryM's sortedArrayUsingSelector:("localizedCompare:")
set listCategoryIDJp to ocidSortedArray as list


###出力要のHTML
set strOutPutHTML to ("") as text


repeat with itemCategoryIDJp in listCategoryIDJp
  
  set strBaseURL to ("https://community.adobe.com/t5/" & itemCategoryIDJp & "/ct-p/" & itemCategoryIDJp & "") as text
log strBaseURL
  set strNewPostRssURL to ("https://community.adobe.com/havfw69955/rss/Category?category.id=" & itemCategoryIDJp & "&interaction.style=forum") as text
log strNewPostRssURL
  set strRssURL to (strNewPostRssURL & "&feeds.replies=true") as text
log strRssURL
  set strImageName to doReplace(itemCategoryIDJp, "-", "_")
  set strImageFileName to (strImageName & ".png") as text
  set strImageURL to ("https://quicktimer.cocolog-nifty.com/icefloe/files/" & strImageFileName) as text
log strImageURL
  set strRssImageFileName to ("rss_" & strImageName & ".png") as text
  set strRssImageURL to ("https://quicktimer.cocolog-nifty.com/icefloe/files/" & strRssImageFileName) as text
log strRssImageURL
  
  
  set strTDhtml to ("<tr><th class=\"posticon\" scope=\"row\" title=\"アイコン\"><a href=\"" & strBaseURL & "\" target=\"_blank\"><img src=\"" & strImageURL & "\" width=\"42\" height=\"42\" alt=\"\"></a></th><th class=\"postname\" scope=\"row\" title=\"フォーラム名\">" & itemCategoryIDJp & "</th><td class=\"postnew\" scope=\"col\" title=\"新しいトピック記事\"><a href=\"" & strNewPostRssURL & "\" target=\"_blank\" title=\"新しいトピック記事\"><img src=\"" & strRssImageURL & "\" width=\"42\" height=\"42\" alt=\"新しいトピック記事\"></a></td><td class=\"postall\" scope=\"col\" title=\"全てのトピック投稿\"><a href=\"" & strRssURL & "\" target=\"_blank\" title=\"全てのトピック投稿\"><img src=\"" & strRssImageURL & "\" width=\"42\" height=\"42\" alt=\"全てのトピック投稿\"></a></td></tr>") as text
  
  set strOutPutHTML to (strOutPutHTML & strTDhtml) as text
end repeat

set strStyle to ("<style>table {border-collapse: collapse;table-layout: fixed;}th,td {border: solid 1px;}th {font-weight: bold;background-color: lightblue;}.posticon {background-color: lightblue;}.postlang {background-color: lightblue;}.postname {background-color: lightblue;}.postnew {background-color: rgba(230, 212, 173, 0.225);}.postall {background-color: rgba(173, 230, 183, 0.225);}</style>") as text

set strStartTable to (strStyle & "<div class=\"CSS CLASS\"><table class=\"CSS CLASS\"><caption>" & strTableTitle & "</caption><colgroup><col span=\"1\" class=\"posticon\" title=\"アイコン\" /><col span=\"1\" class=\"postname\" title=\"フォーラム名\" /><col span=\"1\" class=\"postnew\" title=\"新しい投稿\" /><col span=\"1\" class=\"postall\" title=\"全ての投稿\" /></colgroup><thead><tr><th class=\"posticon\" scope=\"col\" title=\"アイコン\"></th><th class=\"postname\" scope=\"col\" title=\"フォーラム名\"></th><th class=\"postlang\" colspan=\"2\" scope=\"col\" title=\"メディア\">日本語</th></tr><tr><th class=\"posticon\" scope=\"col\" title=\"アイコン\">アイコン</th><th class=\"postname\" scope=\"col\" title=\"フォーラム名\">フォーラム名</th><th class=\"postnew\" colspan=\"1\" scope=\"col\" title=\"メディア\">新しい記事</th><th class=\"postall\" colspan=\"1\" scope=\"col\" title=\"メディア\">全ての投稿</th></tr>" & strOutPutHTML & "<tr><th class=\"posticon\" scope=\"col\" title=\"アイコン\"></th><th class=\"postname\" scope=\"col\" title=\"フォーラム名\"></th><th class=\"postnew\" colspan=\"1\" scope=\"col\" title=\"メディア\">新しい記事</th><th class=\"postall\" colspan=\"1\" scope=\"col\" title=\"メディア\">全ての投稿</th></tr></tfoot></table></div>") as text

log strStartTable as text

##
set strSaveFilePath to ("~/Desktop/AdobeRSS.html") as text
set ocidFilePathStr to refMe's NSString's stringWithString:(strSaveFilePath)
set ocidFilePath to ocidFilePathStr's stringByStandardizingPath()
set ocidFilePathURL to (refMe's NSURL's alloc()'s initFileURLWithPath:(ocidFilePath) isDirectory:false)
##
set ocidSaveText to refMe's NSString's stringWithString:(strStartTable)
#
set listDone to ocidSaveText's writeToURL:(ocidFilePathURL) atomically:(true) encoding:(refMe's NSUTF8StringEncoding) |error|:(reference)

##########################
# 置換
##########################
to doReplace(argOrignalText, argSearchText, argReplaceText)
  set strDelim to AppleScript's text item delimiters
  set AppleScript's text item delimiters to argSearchText
  set listDelim to every text item of argOrignalText
  set AppleScript's text item delimiters to argReplaceText
  set strReturn to listDelim as text
  set AppleScript's text item delimiters to strDelim
return strReturn
end doReplace


|

[Creative Cloud]ログインに不具合が発生した場合キーチェーンを削除する

ログイン・サインインに不具合が発生した場合のみ対応
事前準備
1:Adobeのアカウントと現在設定されているパスワードをすべて把握しておく
2:Adobe Creative Cloudを一度起動させてログアウトする

(/Applications/Utilities/Adobe Creative Cloud/ACC/Creative Cloud.app)
3:Acrobatを起動してログアウトさせておく
4:AcrobatReaderを起動させてログアウトさせておく

事前検討
Adobeのログインにブラウザが関係する場合
1:各種ブラウザもAdobeのサイトからログアウトしておく
2:ブラウザに保存したパスワードを削除しておく
3:Adobeのサイト関連のクッキーを削除しておく



1:アドビのアプリケーションをすべて終了させる
2:アドビ関連のバックグラウンドプロセスを終了させる
3:キーチェーンアクセスを起動させる
4:キーチェーンの画面でadobeを検索する
5:証明書『以外』を削除する
6:Macを再起動(電源OFFーON)する(必須)


1:アドビのアプリケーションをすべて終了させる
2:アドビ関連のバックグラウンドプロセスを終了させる
[Adobe]Adobe関連プロセス一斉終了
https://quicktimer.cocolog-nifty.com/icefloe/2024/04/post-0804f7.html
3:キーチェーンを起動させる
アプリケーション>ユーティリティ>キーチェーンアクセス.app
/System/Applications/Utilities/Keychain Access.app
20240502010230520x6242

4:キーチェーンの画面でadobeを検索する
202405020102481742x6322

5:証明書『以外』を削除する
20240415061912_1754x1066

6:Macを再起動(電源OFFーON)する(必須)
必ず電源OFF-ONが必須 再起動でも可

|

より以前の記事一覧

その他のカテゴリー

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