« 2021年10月 | トップページ | 2021年12月 »

[Adobe]ACAI cai-helper.app (Adobe Content Authenticity Initiative)

過去記事フォロー
https://force4u.cocolog-nifty.com/skywalker/2021/11/post-05c538.html

日本語訳のページが出ました
https://blog.adobe.com/jp/publish/2021/10/26/cc-photo-adobe-unleashes-content-attribution-features-photoshop-beyond-max-2021

カメラマンさんとかは読んでおいた方がいいかもね
https://verify.contentauthenticity.org

あとは、メーカー提供の素材について『あやしいな?』と思ったら
verifyするかな?
→クライアント提供のデータは信用するしかないけどね…


|

[zoom]MacRetinaRes.zip

[zoom]MacRetinaRes.zipで以前にも書きましたって…
https://force4u.cocolog-nifty.com/skywalker/2020/04/post-3ccac5.html

$HOME/Library/Application Support/zoom.us/Plugins/zMacResRetina.bundle
が『あれば』何もしない
$HOME/Library/Application Support/zoom.us/Plugins/zMacResRetina.bundle
が『無い』場合に
ユーザーの$HOME/Downloadsに『MacRetinaRes.zip』をダウンロードして
$HOME/Library/Application Support/zoom.us/Plugins/zMacResRetina.bundle

展開します
これは各種『アイコンファイル』が格納されています。
本体の
zoom.us.app/Contents/Frameworks/zMacRes.bundleには
15x15ピクセルサイズの各種UI用のアイコンが格納されていて
$HOME/Library/Application Support/zoom.us/Plugins/zMacResRetina.bundleは
30x30サイズの各種UI用のアイコンが更新されます
ちなみに最新のバージョンは5.8.4 (2421)

|

PowerShell 7.0

x86版のみ
https://github.com/PowerShell/PowerShell/releases/tag/v7.0.0

|

ARM版

Slack
Intel(x64)Slack
https://slack.com/ssb/download-osx
Apple Silicon(arm64)Slack
https://slack.com/ssb/download-osx-silicon
Universal(x64 または arm64)Slack
https://slack.com/ssb/download-osx-universal


zoom
INTEL
https://zoom.us/client/latest/Zoom.pkg
Apple Silicon
https://zoom.us/client/latest/Zoom.pkg?archType=arm64


|

CCXProcess

Screencapture_972x690_202111241126472


詳細はこちら
https://helpx.adobe.com/jp/x-productkb/global/adobe-background-processes.html

プロセス自体は『ユーザー』権限で動作しますので
強制終了等しても大丈夫で、時間経過で自動起動します。
ようは
この画面をダウンロード表示している

Screencapture_1952x1258_20211127123048
(まぁそれだけじゃないけど)
Adobeのデスクトップはnode.js等で動作しているので
ダウンロードして表示した内容はキャッシュされます

Screencapture_1486x472_20211127122347

|

ペットボトルへの直接レーザーマーキング 


今日の10へぇ
ペットボトルへの直接レーザーマーキング技術が、「アサヒ 十六茶」に採用
~完全ラベルレスで文字・デザインを表示し、プラごみ削減や資源リサイクル推進に貢献~
へぇ、まぁ印刷とはちょっと違うのね… なんでこんなん今まで出来んかったんやろか…
https://jp.ricoh.com/release/2021/1119_1/

1119_1b


そのうちカラーでレーザーとかも可能になるんやろか

|

JapanColor2011Coated.icc

Screencapture_1654x1204_202111221419252

Screencapture_1660x1324_202111221419262

入校先と相談してOK出てからじゃ無いと、ややこしい事になるかも?ですよ。

|

SDK 2022

https://www.adobe.io/console/servicesandapis

Screencapture_1728x468_20211121230303

Screencapture_1742x770_20211121230303

|

[Print]キーノートとパワーポイントのデフォルト用紙サイズをカスタム用紙サイズに追加

Screencapture_1310x964_202111211424442


ダウンロード - custompaper.scpt.zip


(************************************************************************

     この上の▶︎をぽっちっとしてください
PPDファイルの用紙サイズを
カスタム用紙サイズに登録します
パワーポイントのデフォルト用紙サイズPowerPoint(960x540)
キーノートのデフォルト用紙サイズKeyNote(1920x1080)

************************************************************************)


set theTop to (0) as real
set theLeft to (0) as real
set theRight to (0) as real
set theBottom to (0) as real
set thePrinter to " " as text
set theCustom to "TRUE" as text


(*###########defaults write com.apple.print.custompapers*)
set theDictName to "PowerPoint(960x540)" as text
set theName to "PowerPoint(960x540)" as text
set theId to "PowerPoint(960x540)" as text
set theWidth to "960" as number
set theHeight to "540" as number

-----theName
set theNameCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add name -string \"" & theName & "\"" as text
do shell script theNameCom
-----theId
set theIdCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add id -string \"" & theId & "\"" as text
do shell script theIdCom
-----height
set theHeightCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add height -float " & theHeight & "" as text
do shell script theHeightCom
-----width
set theWidthCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add width -float " & theWidth & "" as text
do shell script theWidthCom
-----Printer
set thePrinterCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add printer -string \"" & thePrinter & "\"" as text
do shell script thePrinterCom
-----Custom
set theCustomCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add custom -bool " & theCustom & "" as text
do shell script theCustomCom
-----top
set theTopCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add top -float " & theTop & "" as text
do shell script theTopCom
-----bottom
set theBottomCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add bottom -float " & theBottom & "" as text
do shell script theBottomCom
-----left
set theLeftCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add left -float " & theLeft & "" as text
do shell script theLeftCom
-----right
set theRightCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add right -float " & theRight & "" as text
do shell script theRightCom




(*###########defaults write com.apple.print.custompapers*)
set theDictName to "KeyNote(1920x1080)" as text
set theName to "KeyNote(1920x1080)" as text
set theId to "KeyNote(1920x1080)" as text
set theWidth to "1920" as number
set theHeight to "1080" as number

-----theName
set theNameCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add name -string \"" & theName & "\"" as text
do shell script theNameCom
-----theId
set theIdCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add id -string \"" & theId & "\"" as text
do shell script theIdCom
-----height
set theHeightCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add height -float " & theHeight & "" as text
do shell script theHeightCom
-----width
set theWidthCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add width -float " & theWidth & "" as text
do shell script theWidthCom
-----Printer
set thePrinterCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add printer -string \"" & thePrinter & "\"" as text
do shell script thePrinterCom
-----Custom
set theCustomCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add custom -bool " & theCustom & "" as text
do shell script theCustomCom
-----top
set theTopCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add top -float " & theTop & "" as text
do shell script theTopCom
-----bottom
set theBottomCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add bottom -float " & theBottom & "" as text
do shell script theBottomCom
-----left
set theLeftCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add left -float " & theLeft & "" as text
do shell script theLeftCom
-----right
set theRightCom to "defaults write com.apple.print.custompapers \"" & theDictName & "\" -dict-add right -float " & theRight & "" as text
do shell script theRightCom


set theCommandText to ("open \"/System/Library/PreferencePanes/PrintAndScan.prefPane\"") as text
do shell script theCommandText



display notification "処理終了" with title "処理が終了" subtitle "処理が終了しました" sound name "Sonumi"


log "\r\r>>>>>>>>>>>>処理終了<<<<<<<<<<<<<<<\r\r"
"\r\r>>>>>>>>>>>>終了しました<<<<<<<<<<<<<<<\r\r"

|

PDF&出力の手引き2022

PDF&出力の手引き2022
https://blog.adobe.com/jp/publish/2021/11/18/cc-design-printguide-2022

235540


235552


|

PIL.ExifTags.TAGS: dict

1InteropIndex
11ProcessingSoftware
254NewSubfileType
255SubfileType
256ImageWidth
257ImageLength
258BitsPerSample
259Compression
262PhotometricInterpretation
263Thresholding
264CellWidth
265CellLength
266FillOrder
269DocumentName
270ImageDescription
271Make
272Model
273StripOffsets
274Orientation
277SamplesPerPixel
278RowsPerStrip
279StripByteCounts
280MinSampleValue
281MaxSampleValue
282XResolution
283YResolution
284PlanarConfiguration
285PageName
288FreeOffsets
289FreeByteCounts
290GrayResponseUnit
291GrayResponseCurve
292T4Options
293T6Options
296ResolutionUnit
297PageNumber
301TransferFunction
305Software
306DateTime
315Artist
316HostComputer
317Predictor
318WhitePoint
319PrimaryChromaticities
320ColorMap
321HalftoneHints
322TileWidth
323TileLength
324TileOffsets
325TileByteCounts
330SubIFDs
332InkSet
333InkNames
334NumberOfInks
336DotRange
337TargetPrinter
338ExtraSamples
339SampleFormat
340SMinSampleValue
341SMaxSampleValue
342TransferRange
343ClipPath
344XClipPathUnits
345YClipPathUnits
346Indexed
347JPEGTables
351OPIProxy
512JPEGProc
513JpegIFOffset
514JpegIFByteCount
515JpegRestartInterval
517JpegLosslessPredictors
518JpegPointTransforms
519JpegQTables
520JpegDCTables
521JpegACTables
529YCbCrCoefficients
530YCbCrSubSampling
531YCbCrPositioning
532ReferenceBlackWhite
700XMLPacket
4096RelatedImageFileFormat
4097RelatedImageWidth
4098RelatedImageLength
18246Rating
18249RatingPercent
32781ImageID
33421CFARepeatPatternDim
33422CFAPattern
33423BatteryLevel
33432Copyright
33434ExposureTime
33437FNumber
33723IPTCNAA
34377ImageResources
34665ExifOffset
34675InterColorProfile
34850ExposureProgram
34852SpectralSensitivity
34853GPSInfo
34855ISOSpeedRatings
34856OECF
34857Interlace
34858TimeZoneOffset
34859SelfTimerMode
34864SensitivityType
34865StandardOutputSensitivity
34866RecommendedExposureIndex
34867ISOSpeed
34868ISOSpeedLatitudeyyy
34869ISOSpeedLatitudezzz
36864ExifVersion
36867DateTimeOriginal
36868DateTimeDigitized
36880OffsetTime
36881OffsetTimeOriginal
36882OffsetTimeDigitized
37121ComponentsConfiguration
37122CompressedBitsPerPixel
37377ShutterSpeedValue
37378ApertureValue
37379BrightnessValue
37380ExposureBiasValue
37381MaxApertureValue
37382SubjectDistance
37383MeteringMode
37384LightSource
37385Flash
37386FocalLength
37387FlashEnergy
37388SpatialFrequencyResponse
37389Noise
37393ImageNumber
37394SecurityClassification
37395ImageHistory
37396SubjectLocation
37397ExposureIndex
37398TIFF/EPStandardID
37500MakerNote
37510UserComment
37520SubsecTime
37521SubsecTimeOriginal
37522SubsecTimeDigitized
37888AmbientTemperature
37889Humidity
37890Pressure
37891WaterDepth
37892Acceleration
37893CameraElevationAngle
40091XPTitle
40092XPComment
40093XPAuthor
40094XPKeywords
40095XPSubject
40960FlashPixVersion
40961ColorSpace
40962ExifImageWidth
40963ExifImageHeight
40964RelatedSoundFile
40965ExifInteroperabilityOffset
41483FlashEnergy
41484SpatialFrequencyResponse
41486FocalPlaneXResolution
41487FocalPlaneYResolution
41488FocalPlaneResolutionUnit
41492SubjectLocation
41493ExposureIndex
41495SensingMethod
41728FileSource
41729SceneType
41730CFAPattern
41985CustomRendered
41986ExposureMode
41987WhiteBalance
41988DigitalZoomRatio
41989FocalLengthIn35mmFilm
41990SceneCaptureType
41991GainControl
41992Contrast
41993Saturation
41994Sharpness
41995DeviceSettingDescription
41996SubjectDistanceRange
42016ImageUniqueID
42032CameraOwnerName
42033BodySerialNumber
42034LensSpecification
42035LensMake
42036LensModel
42037LensSerialNumber
42080CompositeImage
42081CompositeImageCount
42082CompositeImageExposureTimes
42240Gamma
50341PrintImageMatching
50706DNGVersion
50707DNGBackwardVersion
50708UniqueCameraModel
50709LocalizedCameraModel
50710CFAPlaneColor
50711CFALayout
50712LinearizationTable
50713BlackLevelRepeatDim
50714BlackLevel
50715BlackLevelDeltaH
50716BlackLevelDeltaV
50717WhiteLevel
50718DefaultScale
50719DefaultCropOrigin
50720DefaultCropSize
50721ColorMatrix1
50722ColorMatrix2
50723CameraCalibration1
50724CameraCalibration2
50725ReductionMatrix1
50726ReductionMatrix2
50727AnalogBalance
50728AsShotNeutral
50729AsShotWhiteXY
50730BaselineExposure
50731BaselineNoise
50732BaselineSharpness
50733BayerGreenSplit
50734LinearResponseLimit
50735CameraSerialNumber
50736LensInfo
50737ChromaBlurRadius
50738AntiAliasStrength
50739ShadowScale
50740DNGPrivateData
50741MakerNoteSafety
50778CalibrationIlluminant1
50779CalibrationIlluminant2
50780BestQualityScale
50781RawDataUniqueID
50827OriginalRawFileName
50828OriginalRawFileData
50829ActiveArea
50830MaskedAreas
50831AsShotICCProfile
50832AsShotPreProfileMatrix
50833CurrentICCProfile
50834CurrentPreProfileMatrix
50879ColorimetricReference
50931CameraCalibrationSignature
50932ProfileCalibrationSignature
50934AsShotProfileName
50935NoiseReductionApplied
50936ProfileName
50937ProfileHueSatMapDims
50938ProfileHueSatMapData1
50939ProfileHueSatMapData2
50940ProfileToneCurve
50941ProfileEmbedPolicy
50942ProfileCopyright
50964ForwardMatrix1
50965ForwardMatrix2
50966PreviewApplicationName
50967PreviewApplicationVersion
50968PreviewSettingsName
50969PreviewSettingsDigest
50970PreviewColorSpace
50971PreviewDateTime
50972RawImageDigest
50973OriginalRawFileDigest
50974SubTileBlockSize
50975RowInterleaveFactor
50981ProfileLookTableDims
50982ProfileLookTableData
51008OpcodeList1
51009OpcodeList2
51022OpcodeList3
51041NoiseProfile

|

_CFURLStringTypeと_CFURLString home directory relative

_CFURLStringType 0
/System/Volumes/Data/Applications/

_CFURLStringType 15
file:///System/Volumes/Data/Applications/

_CFURLStringType 0
/Users/XXXXXX/Downloads/

_CFURLStringType 15
file:///Users/XXXXXX/Downloads/

home directory relative 指定する場合は
~/Downloads

チルダを使って相対パス記述できる

以下の方法では指定できない場合もある
$HOME/Downloads/
file:///Users/$USER/Downloads/

具体的には
<key>file-data</key>
<dict>
<key>_CFURLString</key>
<string>file:///Users/XXXXXX/Downloads/</string>
<key>_CFURLStringType</key>
<integer>15</integer>
</dict>

<key>file-data</key>
<dict>
<key>_CFURLString</key>
<string>/Users/XXXXXX/Downloads/</string>
<key>_CFURLStringType</key>
<integer>0</integer>
</dict>

<key>tile-data</key>
<dict>
<key>home directory relative</key>
<string>~/Downloads</string>
</dict>

|

[Adobe]ACAI cai-helper.app (Adobe Content Authenticity Initiative)

CAIはもう良いって…気にしなくても…笑
過去記事
Adobe Content Authenticity Initiative (CAI)
https://force4u.cocolog-nifty.com/skywalker/2021/10/post-aec82c.html
Adobe Content Authenticity Initiative (CAI) 記事修正
https://force4u.cocolog-nifty.com/skywalker/2021/10/post-2e6d50.html

具体的には
com.adobe.cai.helper
/Library/Application Support/Adobe/CAI/cai-helper.app
cai-helper.appの事になります。
本日アップデートで INTEL 0.2.2.3 ARM 0.2.2.2
cai-helper:0.7.1 port: 56433
ログは
~/Library/Logs/Adobe/CAI/cai-helper.log

要求があるとバックグラウンドで起動するんじゃないかな
用がなくなれば一定時間後に勝手に終了する系
20211119-100205

|

Adobe DNG Converter

いつのまにかARM対応済み
https://helpx.adobe.com/camera-raw/using/adobe-dng-converter.html

Screencapture_1180x1324_20211119090115

|

Chromium

Screencapture_1604x974_202111190850152

UnGoogle版はGoogleにサインインや各種データの送信を行わない
Googleの各種サービスを除外したバージョン テスト用に使うと良いですね
https://chromium.woolyss.com/

|

[Shortcuts.app]管理者で実行

まぁ自分で作った物だから、良いんだけど…
ちょっと何も出ないで実行されちゃうの怖いなぁ

Screencapture_1494x596_20211118173916

Screencapture_744x566_20211118174227

|

[otool][Adobe] HUM.dylibのバージョンを取得する

[Adobe] HUM.dylibのバージョンを取得する
https://force4u.cocolog-nifty.com/skywalker/2021/08/post-685e98.html
こちらの記事のARM対応版
RemoteUpdateManager.dmgに同封されているHUM.dylibが5.5.0.619
Creative Cloud Desktop ApplicationのHUM.dylibが5.6.0.788なので
バージョン違いでエラーになっているんじゃん?
HUMのバージョンが…より
Creative Cloud Desktop Applicationをパッケージにするときに
RemoteUpdateManagerを同封させて再度上書きインストールした方が早いと思うよ…

ちなみに
RemoteUpdateManager version is : 2.6.0.9が最新だと思います

ダウンロード - gethum.dylibver.scpt.zip


set theDylibPath to "/Library/Application Support/Adobe/Adobe Desktop Common/HDBox/HUM.dylib"

--要コマンドラインツール
try
set theCommand to ("otool -arch x86_64 -P \"" & theDylibPath & "\"") as text
set theDylibPlist to (do shell script theCommand) as text
---不要なデータを削除して
set theDylibPlist to doReplace(theDylibPlist, "" & theDylibPath & ":", "")
set theDylibPlist to doReplace(theDylibPlist, "(__TEXT,__info_plist) section", "")
set theDylibPlist to doReplace(theDylibPlist, "\r", "")
set theDylibPlist to doReplace(theDylibPlist, "\"", "\\\"")
---テキストデータにする
set theCommand to ("echo \"" & theDylibPlist & "\" > /private/tmp/Dylib.x86_64.plist") as text
do shell script theCommand
---XML形式のplistをバイナリに→この時にXMLが整形されるのでエラー避け
set theCommand to ("plutil -convert binary1 /private/tmp/Dylib.x86_64.plist") as text
on error
try
do shell script "xcode-select --install"
end try
end try
try
set theCommand to ("otool -arch arm64 -P \"" & theDylibPath & "\"") as text
set theDylibArmPlist to (do shell script theCommand) as text
set theDylibArmPlist to doReplace(theDylibArmPlist, "" & theDylibPath & ":", "")
set theDylibArmPlist to doReplace(theDylibArmPlist, "(__TEXT,__info_plist) section", "")
set theDylibArmPlist to doReplace(theDylibArmPlist, "\r", "")
set theDylibArmPlist to doReplace(theDylibArmPlist, "\"", "\\\"")
---テキストデータにする
set theCommand to ("echo \"" & theDylibArmPlist & "\" > /private/tmp/Dylib.arm64.plist") as text
do shell script theCommand

---XML形式のplistをバイナリに→この時にXMLが整形されるのでエラー避け
set theCommand to ("plutil -convert binary1 /private/tmp/Dylib.arm64.plist") as text
do shell script theCommand
on error
try
do shell script "xcode-select --install"
end try
end try

---バージョンを取得する
set theCommand to ("defaults read \"/private/tmp/Dylib.x86_64.plist\" \"CFBundleVersion\"") as text
set theDylibVerIntel to (do shell script theCommand) as text

set theCommand to ("defaults read \"/private/tmp/Dylib.arm64.plist\" \"CFBundleVersion\"") as text
set theDylibVerArm to (do shell script theCommand) as text

---ログ
log theDylibVerIntel
log theDylibVerArm
theDylibVerIntel
theDylibVerArm


return "intel:" & theDylibVerIntel & " ARM:" & theDylibVerArm & ""
#################################
to doReplace(theText, orgStr, newstr)
set oldDelim to AppleScript's text item delimiters
set AppleScript's text item delimiters to orgStr
set tmpList to every text item of theText
set AppleScript's text item delimiters to newstr
set tmpStr to tmpList as text
set AppleScript's text item delimiters to oldDelim
return tmpStr
end doReplace


|

[Amazon]アソシエイトID(最初に生成されたトラッキングID)

アソシエイトIDは、最初の登録時に生成したトラッキングID

Screencapture_1996x1202_20211118103531

|

[awk]行頭のスペースを削除する(subで置き換え)

Screencapture_1114x650_20211116124059

行頭にある複数の空白(半角スペース)を削除する

ダウンロード - 行頭の空白を削除する.scpt.zip


set theText to " 12 12 12 12"

set theCmdCom to ("echo \"" & theText & "\" |awk '{ sub(\"^([ ]*)\", \"\"); print }'") as text
set theReadData to (do shell script theCmdCom) as text


theReadData

|

Microsoft 365 Cloud Fontsの気になった書体

Microsoft 365 Cloud Fonts(修正版)
https://force4u.cocolog-nifty.com/skywalker/2021/11/post-41da66.html

気になった(使ってみようかな)書体をいくつか

クラウドフォントで書体が増えた事は好ましい
なんぜWINDOWSの人に渡しても同じフォントで(まぁ細かい表示やらはナニだけど)表示されますからね
逆にWINDOWSの人にもメリットあるよね

Grotesqueは電話番号とかに良いね

Screencapture_1618x922_20211112112931

Rockwell Nova はRockwellより数字が一回り大きくなって英数混在時に『日本人的に』バランスがいいな

Screencapture_1558x546_20211112112932

Arial Nova 同じBoldでもArialより 気もーち 太め感

Screencapture_1564x548_20211112112931

Screencapture_1574x594_20211112112931

Gill Sans Nova ウェイト感が従来書体とは全く別物

Screencapture_1584x542_20211112112931

|

Microsoft 365 Cloud Fonts(修正版)

こちらの記事の修正
https://force4u.cocolog-nifty.com/skywalker/2021/10/post-d8eca5.html

足りないウェイトを持ったフォントがありました。失礼しました

Abadi Extra Light
Abadi
Agency FB Bold
Agency FB
Aharoni Bold
Aldhabi
Algerian
Amasis MT Pro Black Italic
Amasis MT Pro Black
Amasis MT Pro Bold Italic
Amasis MT Pro Bold
Amasis MT Pro Italic
Amasis MT Pro Light Italic
Amasis MT Pro Light
Amasis MT Pro Medium Italic
Amasis MT Pro Medium
Amasis MT Pro Regular
AngsanaUPC Bold Italic
AngsanaUPC Bold
AngsanaUPC Italic
AngsanaUPC
Aparajita Bold Italic
Aparajita Bold
Aparajita Italic
Aparajita
Arabic Typesetting
Arial Nova Bold Italic
Arial Nova Bold
Arial Nova Cond Bold Italic
Arial Nova Cond Bold
Arial Nova Cond Italic
Arial Nova Cond Light Italic
Arial Nova Cond Light
Arial Nova Cond
Arial Nova Italic
Arial Nova Light Italic
Arial Nova Light
Arial Nova
Avenir Next LT Pro Bold Italic
Avenir Next LT Pro Bold
Avenir Next LT Pro Demi Italic
Avenir Next LT Pro Demi
Avenir Next LT Pro Italic
Avenir Next LT Pro Light Italic
Avenir Next LT Pro Light
Avenir Next LT Pro
Bahnschrift Bold
Bahnschrift Condensed Bold
Bahnschrift Condensed
Bahnschrift Light Condensed
Bahnschrift Light SemiCondensed
Bahnschrift Light
Bahnschrift SemiBold Condensed
Bahnschrift SemiBold
Bahnschrift SemiCondensed Bold
Bahnschrift SemiCondensed
Bahnschrift
Berlin Sans FB Bold
Berlin Sans FB Demi Bold
Berlin Sans FB
Bierstadt Bold Italic
Bierstadt Bold
Bierstadt Display Bold
Bierstadt Display Regular
Bierstadt Italic
Bierstadt Regular
Biome Italic
Biome Light Italic
Biome Light
Biome
Blackadder ITC
Bodoni MT Black Italic
Bodoni MT Black
Bodoni MT Bold Italic
Bodoni MT Bold
Bodoni MT Condensed Bold Italic
Bodoni MT Condensed Bold
Bodoni MT Condensed Italic
Bodoni MT Condensed
Bodoni MT Italic
Bodoni MT Poster Compressed
Bodoni MT
Bradley Hand ITC
Broadway
Browallia New Bold Italic
Browallia New Bold
Browallia New Italic
Browallia New
BrowalliaUPC Bold Italic
BrowalliaUPC Bold
BrowalliaUPC Italic
BrowalliaUPC
Brush Script MT Italic
Californian FB Bold
Californian FB Italic
Californian FB
Castellar
Cavolini Bold Italic
Cavolini Bold
Cavolini Italic
Cavolini
Chiller
DaunPenh
Daytona Bold Italic
Daytona Bold
Daytona Condensed Light
Daytona Condensed
Daytona Italic
Daytona Light Italic
Daytona Light
Daytona
DilleniaUPC Bold Italic
DilleniaUPC Bold
DilleniaUPC Italic
DilleniaUPC
DokChampa
Ebrima Bold
Ebrima
Elephant Pro Italic
Elephant Pro Regular
Eras Bold ITC
Eras Demi ITC
Eras Light ITC
Eras Medium ITC
EucrosiaUPC Bold Italic
EucrosiaUPC Bold
EucrosiaUPC Italic
EucrosiaUPC
Euphemia
Felix Titling
Forte
FrankRuehl
FreesiaUPC Bold Italic
FreesiaUPC Bold
FreesiaUPC Italic
FreesiaUPC
Freestyle Script
Gadugi Bold
Gadugi
Georgia Pro Black Italic
Georgia Pro Black
Georgia Pro Bold Italic
Georgia Pro Bold
Georgia Pro Cond Black Italic
Georgia Pro Cond Black
Georgia Pro Cond Bold Italic
Georgia Pro Cond Bold
Georgia Pro Cond Italic
Georgia Pro Cond Light Italic
Georgia Pro Cond Light
Georgia Pro Cond Semibold Italic
Georgia Pro Cond Semibold
Georgia Pro Cond
Georgia Pro Italic
Georgia Pro Light Italic
Georgia Pro Light
Georgia Pro Semibold Italic
Georgia Pro Semibold
Georgia Pro
Georgia
Gigi
Gill Sans Nova Bold Italic
Gill Sans Nova Bold
Gill Sans Nova Cond Bold Italic
Gill Sans Nova Cond Bold
Gill Sans Nova Cond Italic
Gill Sans Nova Cond Lt Italic
Gill Sans Nova Cond Lt
Gill Sans Nova Cond Ultra Bold
Gill Sans Nova Cond XBd Italic
Gill Sans Nova Cond XBd
Gill Sans Nova Cond
Gill Sans Nova Italic
Gill Sans Nova Light Italic
Gill Sans Nova Light
Gill Sans Nova Ultra Bold
Gill Sans Nova
Gisha Bold
Gisha
Goudy Type Bold Italic
Goudy Type Bold
Goudy Type Italic
Goudy Type
Grandview Bold Italic
Grandview Bold
Grandview Display Italic
Grandview Display
Grandview Italic
Grandview Regular
Grotesque Bold
Grotesque Light
Grotesque
Hadassah Friedlaender Bold
Hadassah Friedlaender
hier_officeFontsPreview_4_17
High Tower Text Italic
High Tower Text
Impact
Ink Free
IrisUPC Bold Italic
IrisUPC Bold
IrisUPC Italic
IrisUPC
Iskoola Pota Bold
Iskoola Pota
JasmineUPC Bold Italic
JasmineUPC Bold
JasmineUPC Italic
JasmineUPC
Javanese Text
Jokerman
Juice ITC
Kalinga Bold
Kalinga
Khmer UI Bold
Khmer UI
Kigelia Arabic Bold
Kigelia Arabic Light
Kigelia Arabic Regular
Kigelia Bold Italic
Kigelia Bold
Kigelia Italic
Kigelia Light Italic
Kigelia Light
Kigelia Regular
KodchiangUPC Bold Italic
KodchiangUPC Bold
KodchiangUPC Italic
KodchiangUPC
Kokila Bold Italic
Kokila Bold
Kokila Italic
Kokila
Kristen ITC
Kunstler Script
Lao UI
Leelawadee Bold
Leelawadee UI Bold
Leelawadee UI Semilight
Leelawadee UI
Leelawadee
Levenim MT Bold
Levenim MT
LilyUPC Bold Italic
LilyUPC Bold
LilyUPC Italic
LilyUPC
Magneto Bold
Maiandra GD
Mangal Pro Bold
Mangal Pro Regular
Microsoft GothicNeo Bold
Microsoft GothicNeo Light
Microsoft GothicNeo
Microsoft JhengHei UI Bold
Microsoft JhengHei UI Light
Microsoft JhengHei UI
Microsoft PhagsPa Bold
Microsoft PhagsPa
Microsoft Sans Serif
Microsoft Uighur Bold
Microsoft Uighur
Microsoft YaHei UI Bold
Microsoft YaHei UI Light
Microsoft YaHei UI
Miriam Fixed
Miriam
Modern Love Caps
Modern Love Grunge
Modern Love
MoolBoran
MV Boli
Narkisim
Neue Haas Grotesk Text Pro Bold Italic
Neue Haas Grotesk Text Pro Bold
Neue Haas Grotesk Text Pro Italic
Neue Haas Grotesk Text Pro
Niagara Engraved
Niagara Solid
Nirmala UI Bold
Nirmala UI Semilight
Nirmala UI
NSimSun
OCRB
Open Sans Regular
Palace Script MT
Papyrus
Plantagenet Cherokee
Playbill
Posterama Bold Italic
Posterama Bold
Posterama Italic
Posterama
Pristina
Quire Sans Bold Italic
Quire Sans Bold
Quire Sans Italic
Quire Sans Light Italic
Quire Sans Light
Quire Sans Pro Light Italic
Quire Sans Pro Light
Quire Sans
Raavi Bold
Raavising value
Raavi
Rage Italic
Ravie
Rockwell Nova Bold Italic
Rockwell Nova Bold
Rockwell Nova Cond Bold Italic
Rockwell Nova Cond Bold
Rockwell Nova Cond Italic
Rockwell Nova Cond Light Italic
Rockwell Nova Cond Light
Rockwell Nova Cond
Rockwell Nova Extra Bold Italic
Rockwell Nova Extra Bold
Rockwell Nova Italic
Rockwell Nova Light Italic
Rockwell Nova Light
Rockwell Nova
Rod
Sabon Next LT Bold Italic
Sabon Next LT Bold
Sabon Next LT Italic
Sabon Next LT
Sagona Book Bold Italic
Sagona Book Bold
Sagona Book Italic
Sagona Book
Sagona ExtraLight Italic
Sagona ExtraLight
Sakkal Majalla Bold
Sakkal Majalla
Sanskrit Text
Script MT Bold
Seaford Bold Italic
Seaford Bold
Seaford Display Italic
Seaford Display Regular
Seaford Italic
Seaford Regular
Segoe UI Emoji
Selawik Bold
Selawik Light
Selawik Semibold
Selawik
Shonar Bangla Bold
Shonar Bangla
Shruti Bold
Shruti
Simplified Arabic Bold
Simplified Arabic Fixed
Simplified Arabic
Sitka Banner Bold Italic
Sitka Banner Bold
Sitka Banner Italic
Sitka Banner Semibold Italic
Sitka Banner Semibold
Sitka Banner
Sitka Display Bold Italic
Sitka Display Bold
Sitka Display Italic
Sitka Display Semibold Italic
Sitka Display Semibold
Sitka Display
Sitka Heading Bold Italic
Sitka Heading Bold
Sitka Heading Italic
Sitka Heading Semibold Italic
Sitka Heading Semibold
Sitka Heading
Sitka Small Bold Italic
Sitka Small Bold
Sitka Small Italic
Sitka Small Semibold Italic
Sitka Small Semibold
Sitka Small
Sitka Subheading Bold Italic
Sitka Subheading Bold
Sitka Subheading Italic
Sitka Subheading Semibold Italic
Sitka Subheading Semibold
Sitka Subheading
Sitka Text Bold Italic
Sitka Text Bold
Sitka Text Italic
Sitka Text Semibold Italic
Sitka Text Semibold
Sitka Text
Skeena Bold Italic
Skeena Bold
Skeena Display Bold Italic
Skeena Display Bold
Skeena Display Italic
Skeena Display Regular
Skeena Italic
Skeena Regular
Snap ITC
Source Sans Pro Black Italic
Source Sans Pro Black
Source Sans Pro Bold Italic
Source Sans Pro Bold
Source Sans Pro ExtraLight Italic
Source Sans Pro ExtraLight
Source Sans Pro Italic
Source Sans Pro Light Italic
Source Sans Pro Light
Source Sans Pro Regular
Source Sans Pro SemiBold Italic
Source Sans Pro SemiBold
Speak Pro Bold Italic
Speak Pro Bold
Speak Pro Italic
Speak Pro Light Italic
Speak Pro Light
Speak Pro
STCaiyun
STFangsong
STKaiti
STXihei
Sylfaen
Tempus Sans ITC
Tenorite Bold Italic
Tenorite Bold
Tenorite Display Bold Italic
Tenorite Display Bold
Tenorite Display Italic
Tenorite Display Regular
Tenorite Italic
Tenorite Regular
The Hand Black
The Hand Bold
The Hand Extrablack
The Hand Light
The Hand
The Serif Hand Black
The Serif Hand Bold
The Serif Hand Extrablack
The Serif Hand Light
The Serif Hand
Tisa Offc Serif Pro Bold Italic
Tisa Offc Serif Pro Bold
Tisa Offc Serif Pro Italic
Tisa Offc Serif Pro Thin Italic
Tisa Offc Serif Pro Thin
Tisa Offc Serif Pro
Trade Gothic Next Bold Italic
Trade Gothic Next Bold
Trade Gothic Next Cond Bold Italic
Trade Gothic Next Cond Bold
Trade Gothic Next Cond Hv Italic
Trade Gothic Next Cond Hv
Trade Gothic Next Cond Italic
Trade Gothic Next Cond
Trade Gothic Next Heavy Italic
Trade Gothic Next Heavy
Trade Gothic Next Italic
Trade Gothic Next Light Italic
Trade Gothic Next Light
Trade Gothic Next
Traditional Arabic Bold
Traditional Arabic
UD Digi Kyokasho N-B
UD Digi Kyokasho N-R
UD Digi Kyokasho NK-B
UD Digi Kyokasho NK-R
UD Digi Kyokasho NP-B
UD Digi Kyokasho NP-R
Univers Bold
Univers Condensed Bold
Univers Condensed Light
Univers Condensed
Univers Light
Univers
Urdu Typesetting Bold
Urdu Typesetting
Utsaah Bold Italic
Utsaah Bold
Utsaah Italic
Utsaah
Vani Bold
Vani
Verdana Pro Black Italic
Verdana Pro Black
Verdana Pro Bold Italic
Verdana Pro Bold
Verdana Pro Cond Black Italic
Verdana Pro Cond Black
Verdana Pro Cond Bold Italic
Verdana Pro Cond Bold
Verdana Pro Cond Italic
Verdana Pro Cond Light Italic
Verdana Pro Cond Light
Verdana Pro Cond SemiBold Italic
Verdana Pro Cond SemiBold
Verdana Pro Cond
Verdana Pro Italic
Verdana Pro Light Italic
Verdana Pro Light
Verdana Pro SemiBold Italic
Verdana Pro SemiBold
Verdana Pro
Vijaya Bold
Vijaya
Viner Hand ITC
Vivaldi Italic
Vladimir Script
Vrinda Bold
Vrinda
Walbaum Display Bold Italic
Walbaum Display Bold
Walbaum Display Heavy Italic
Walbaum Display Heavy
Walbaum Display Italic
Walbaum Display Light Italic
Walbaum Display Light
Walbaum Display SemiBold Italic
Walbaum Display SemiBold
Walbaum Display
Walbaum Heading Bold Italic
Walbaum Heading Bold
Walbaum Heading Italic
Walbaum Heading
Walbaum Text Bold Italic
Walbaum Text Bold
Walbaum Text Italic
Walbaum Text
Yu Gothic UI Bold
Yu Gothic UI Light
Yu Gothic UI Regular
Yu Gothic UI Semibold
Yu Gothic UI Semilight

|

[AppleScript]GoogleChrome再起動(edgeも同じよ)

AppleScriptsでアプリケーションを再起動させるのって
終了させて ディレイさせて 起動させるのがホトンドだけど

GoogleChromeはデバッグ用に終了、KILL、再起動等が用意されているんですね
知りませんでした。
chrome://about/
chrome://quit/
chrome://restart/
chrome://kill/

edgeも同じ
edge://about/
edge://quit/
edge://restart/
edge://kill/


ダウンロード - googlechromee5868de8b5b7e58b95.scpt.zip


(************************************************************************

     この上の▶︎をぽっちっとしてください
Google Chrome を再起動する

************************************************************************)






tell application "Google Chrome"
try
make new window
tell window 1
tell active tab
set URL to "chrome://restart/"
end tell
end tell
end try
end tell

tell application "Microsoft Edge"
try
make new window
tell window 1
tell active tab
set URL to "Edge://restart/"
end tell
end tell
end try
end tell

|

Business Essentials

usiness Essentials
https://www.apple.com/business/essentials/
JAMFを獲って食おうって事じゃぁ無いとは思いますが
デバイス管理とアプリ配布等がセットになっているコンソールでしょう
D-U-N-S番号が必要なので個人事業主レベルでは利用出来ない。(会社にしていれば比較的安価に登録は出来る)
現時点ではJAMFnowの勝ちかなぁ?

|

[Finder]キーボードビューアをランチャーにする

これは、若い子に教えてもらいました。
キーボードビューアをカスタマイズして
キーにAppleScriptを登録したパネルを作成
ランチャーとして画面に置いておくんだとか
Jsファイルは呼び出せないのでAppleScriptからdo javascriptになります。

パネルが最前面に来ますので、良いような…邪魔なような…

20211111-84209

20211111-84238

|

[MacOS]Wingdingsってどうするつもりなんだろ…

/System/Library/Fonts/Supplemental/Wingdings.ttf
/System/Library/Fonts/Supplemental/Wingdings 2.ttf
/System/Library/Fonts/Supplemental/Wingdings 3.ttf
結構前から不具合で
フォントを参照できないままなんだけ
ユニコード領域のアイコンや
カーラーフォントやら、アイコンフォントやら、svgやらで
役目を終えたと言っても良い
Wingdings
通常使用が出来ない状態が
OS12でも治っていない(仕様って事はないよね…)
ブラウザからは参照されている(表示には使える)
パワーポイントやキーノート等からは利用できる

テキストエディットやメモにFontBookでは利用出来ない
見た目と入力値が違うアイコンフォントなので
テキストエディットやメモで利用出来ないは良いか
FontBookで字形を参照出来ないのは、治してほしいなぁ。

Screencapture_1232x798_20211110230445


Screencapture_1644x742_20211110230445



アイコンフォントなので、困っている人はいないと思うけど
/System/Library/Fonts/Supplemental/Wingdings.ttf
/System/Library/Fonts/Supplemental/Wingdings 2.ttf
/System/Library/Fonts/Supplemental/Wingdings 3.ttf

自分ホームの『ライブラリの『Fonts』(ユーザードメイン)にコピーすれば
字形参照出来ますが、文字パネルからは利用出来ないのは変わらない


Wingdings.は表示専用として、今後は『使わない』が正解かな

|

[hdiutil]背景画像付きのDMGを作成する

[hdiutil]互換性を保ってDMGファイルを作る
https://force4u.cocolog-nifty.com/skywalker/2021/01/post-a361a1.html

から放置した…
DMGファイルを作成する時に
バックグラウンドに画像を配置するパターン
background-820x460.pngを自分で好みの画像に置き換えれば
お好きな背景のDMGができます

ダウンロード - makebackgroundimagedmg.zip



property theBkImage : "background-820x460.png"


on run
set theWithPrompt to "フォルダからDMG形式のディスクイメージを作成します"
set aliasDefaultLocation to (path to desktop folder from user domain) as alias
set theFileType to "public.folder,public.directory" as text
set AppleScript's text item delimiters to {","}
set theFileTypeList to every text item of theFileType
set AppleScript's text item delimiters to {""}
set DropObj to (choose folder default location aliasDefaultLocation ¬
with prompt theWithPrompt ¬
invisibles true ¬
with multiple selections allowed and showing package contents)
set DropObj to DropObj as list
open (DropObj)
end run





on open DropObj
set listFormatList to ¬
{"UDRW:read/write", ¬
"UDRO:read-only", ¬
"UDCO:ADC-comp", ¬
"UDZO:zlib-comp", ¬
"ULFO:lzfse-comp", ¬
"ULMO:lzma-comp", ¬
"UDBZ:bzip2-comp", ¬
"UDTO:master", ¬
"UDSP:SPARSE", ¬
"UDSB:SPARSEBUNDLE", ¬
"UFBI:MD5checksum"} as list
set theFormat to (choose from list listFormatList with title "フォーマット選択" with prompt "フォーマット選択" default items "UDRO:read-only" empty selection allowed no with multiple selections allowed) as text
set AppleScript's text item delimiters to ":"
set listFormat to every text item of theFormat
set AppleScript's text item delimiters to ""
set theFormat to (item 1 of listFormat) as text




set listFormatList to ¬
{"HFS+:通常拡張", ¬
"HFS+J:ジャーナリング", ¬
"HFSX:大小文字判別", ¬
"JHFS+X:ジャーナリング大小文字判別", ¬
"APFS:現行macOS10.13以上", ¬
"FAT32:Windows互換汎用", ¬
"ExFAT:Windows互換推奨", ¬
"UDF:ディスクマスター用", ¬
"UFBI:MD5checksum"} as list
set theFileSystem to (choose from list listFormatList with title "ファイルシステム選択" with prompt "ファイルシステム選択" default items "HFS+J:ジャーナリング" empty selection allowed no with multiple selections allowed) as text
set AppleScript's text item delimiters to ":"
set listFileSystem to every text item of theFileSystem
set AppleScript's text item delimiters to ""
set theFileSystem to (item 1 of listFileSystem) as text
repeat with objFiles in DropObj
set theAlias to objFiles as alias
tell application "Finder"
set aliasFolderContainerDir to (container of theAlias) as alias
set theFolderContainerPath to (POSIX path of aliasFolderContainerDir) as text
end tell
set theFileInfo to info for objFiles as alias
set theFolderName to (name of theFileInfo) as text
set theOrgPath to (POSIX path of objFiles) as text
tell application "Finder"
set aliasMyPathDir to (container of (path to me) as alias) as alias
set theMyPathDir to (POSIX path of aliasMyPathDir) as text
end tell
set theBgimagesPath to ("" & theMyPathDir & theBkImage) as text
set theBgimagesDistPath to ("" & theOrgPath & ".background.png") as text
set theCmdCom to ("ditto \"" & theBgimagesPath & "\" \"" & theBgimagesDistPath & "\"") as text
do shell script theCmdCom
log theCmdCom
(*
tell application "Finder"
set objFinder to (make new Finder window)
activate
delay 1
tell objFinder
activate
set theMakeWindowID to id
end tell
delay 1
tell window id theMakeWindowID
activate
set target to objFiles
set toolbar visible to false
set pathbar visible to false
set current view to icon view
set sidebar width to 0
set position to {50, 50}
set bounds to {50, 50, 820, 460}
set statusbar visible to false
set arrangement of its icon view options to arranged by name
try
set background picture of its icon view options to file ".background.png"
on error
delay 2
set background picture of its icon view options to file ".background.png"
end try
end tell
delay 1
close window id theMakeWindowID
end tell
*)
set theCmdCom to ("hdiutil create -volname \"" & theFolderName & "\" -srcfolder \"" & theOrgPath & "\" -ov -fs " & theFileSystem & " -format UDIF \"" & theFolderContainerPath & theFolderName & ".tmp.dmg\"") as text
do shell script theCmdCom
delay 1
set theCmdCom to ("hdiutil attach -noverify -noautofsck -noidme -quiet \"" & theFolderContainerPath & theFolderName & ".tmp.dmg\"") as text
do shell script theCmdCom
set theDiskwindowPath to ("/Volumes/" & theFolderName) as text
tell application "Finder"
set aliasDiskwindowPath to POSIX file theDiskwindowPath as alias
set objFinder to (make new Finder window)
activate
delay 1
tell objFinder
activate
set theMakeWindowID to id
end tell
delay 1
tell window id theMakeWindowID
activate
set target to aliasDiskwindowPath
set toolbar visible to false
set pathbar visible to false
set current view to icon view
set sidebar width to 0
set position to {50, 50}
set bounds to {50, 50, 820, 460}
set statusbar visible to false
set arrangement of its icon view options to arranged by name
try
set background picture of its icon view options to file ".background.png"
on error
delay 2
set background picture of its icon view options to file ".background.png"
end try
end tell
delay 1
close window id theMakeWindowID
end tell
try
tell application "Finder"
activate
delay 1
eject disk theFolderName
end tell
on error
try
set theCmdCom to ("diskutil unmount \"/Volumes/" & theFolderName & "\"") as text
do shell script theCmdCom
end try
try
set theCmdCom to ("umount -f \"/Volumes/" & theFolderName & "\"") as text
do shell script theCmdCom
end try
end try
set theCmdCom to ("hdiutil convert -format UDRO \"" & theFolderContainerPath & theFolderName & ".tmp.dmg\" -o \"" & theFolderContainerPath & theFolderName & ".dmg\"") as text
do shell script theCmdCom
try
set theCmdCom to ("hdiutil detach \"/Volumes/" & theFolderName & "\" -force") as text
do shell script theCmdCom
end try
set thetmpDMGpath to ("" & theFolderContainerPath & theFolderName & ".tmp.dmg") as text
tell application "Finder"
set aliastmpDMGpath to POSIX file thetmpDMGpath as alias
move file aliastmpDMGpath to trash
end tell
set theCmdCom to ("rm -f \"" & theBgimagesDistPath & "\"") as text
do shell script theCmdCom
end repeat
end open

|

[OS12]UniqueID UID を取得する

コマンド
dscl . -list /Users UniqueID

nobody-2
root0
daemon1
_uucp4
_taskgated13
_networkd24
_installassistant25
_lp26
_postfix27
_scsd31
_ces32
_appstore33
_mcxalr54
_appleevents55
_geod56
_devdocs59
_sandbox60
_mdnsresponder65
_ard67
_www70
_eppc71
_cvs72
_svn73
_mysql74
_sshd75
_qtss76
_cyrus77
_mailman78
_appserver79
_clamav82
_amavisd83
_jabber84
_appowner87
_windowserver88
_spotlight89
_tokend91
_securityagent92
_calendar93
_teamsserver94
_update_sharing95
_installer96
_atsserver97
_ftp98
_unknown99
_softwareupdate200
_coreaudiod202
_screensaver203
_locationd205
_trustevaluationagent208
_timezone210
_lda211
_cvmsroot212
_usbmuxd213
_dovecot214
_dpaudio215
_postgres216
_krbtgt217
_kadmin_admin218
_kadmin_changepw219
_devicemgr220
_webauthserver221
_netbios222
_warmd224
_dovenull227
_netstatistics228
_avbdeviced229
_krb_krbtgt230
_krb_kadmin231
_krb_changepw232
_krb_kerberos233
_krb_anonymous234
_assetcache235
_coremediaiod236
_launchservicesd239
_iconservices240
_distnote241
_nsurlsessiond242
_displaypolicyd244
_astris245
_krbfast246
_gamecontrollerd247
_mbsetupuser248
_ondemand249
_xserverdocs251
_wwwproxy252
_mobileasset253
_findmydevice254
_datadetectors257
_captiveagent258
_ctkd259
_applepay260
_hidd261
_cmiodalassistants262
_analyticsd263
_fpsd265
_timed266
_nearbyd268
_reportmemoryexception269
_driverkit270
_diskimagesiod271
_logd272
_appinstalld273
_installcoordinationd274
_demod275
_rmd277
_accessoryupdater278
_knowledgegraphd279
_coreml280
_sntpd281
_trustd282
_darwindaemon284
_notification_proxy285
_oahd441
初期ユーザー501

|

[OS12]文字ビューアを出す(文字パレット)

出しにくいよね…たしかに


1_20211107202801

2_20211107202801


3_20211107202801


4_20211107202901


5_20211107202901

|

[Python]TTC(TrueType フォントコレクション)フォントの収録書体数(INDEX)を取得する(その2)

FontLabでTTCフォント見るとこんな感じ

Screencapture_932x452_20211107111922

これを、取得したいわけです。



まずは準備
【1】エディタはVisual Studio Code https://code.visualstudio.com
【2】Visual Studio Code Python 拡張機能
https://marketplace.visualstudio.com/items?itemName=ms-python.python
【3】pipの package installer for Pythonのアップデート
ターミナルで
/usr/bin/python3 -m pip install --upgrade pip
【4】Pillow Library
https://pillow.readthedocs.io/en/stable/installation.html
インストール ターミナルで
/usr/bin/python3 -m pip install Pillow
【5】Pillow アップデート
/usr/bin/python3 -m pip install --upgrade Pillow
これで準備完了


で 色々やって(Pythonホントビギナー以下だからね…私は)
こんな感じで TTCのINDEX番号と書体名を取得出来るようになりました

ダウンロード - getttcindex.py.zip

Screencapture_1368x1276_202111071151202


  1. #!/usr/bin/env python3
  2. # coding: utf-8
  3. from PIL import Image, ImageDraw, ImageFont
  4. import os
  5. setFontFile = "/System/Library/Fonts/STHeiti Light.ttc"
  6. theFileName = os.path.basename(setFontFile)
  7. numIndex = int(0)
  8. setFontFile = str(setFontFile)
  9. theDelimiters = ','
  10. listJoinName = ''
  11. objFont = ImageFont.truetype(setFontFile, 32)
  12. theName = objFont.font_variant(index=numIndex).getname()
  13. while True:
  14.   try:
  15.    objFont = ImageFont.truetype(setFontFile, 32)
  16.    theName = objFont.font_variant(index=numIndex).getname()
  17.    theName0 = str(theName[0])
  18.    theName1 = str(theName[1])
  19.    theJoinName = ''.join(theName0 + ' ' + theName1)
  20.    listJoinName = listJoinName + theDelimiters + theJoinName
  21.    numIndex = numIndex + 1
  22.   except:
  23.    break
  24. pass
  25. listJoinName = listJoinName[1:]
  26. listJoinName = listJoinName.split(",")
  27. numIndex = str(numIndex)
  28. print ("このフォントに内包されている書体数:" + numIndex)
  29. numIndex = int(numIndex)
  30. for i in range(numIndex):
  31.      theTyepName = listJoinName[i]
  32.      theIndexNo = str(i)
  33.      print ("INDEX番号:" + theIndexNo)
  34.      print ("このフォントに内包されている書体名:" + theTyepName)

|

[Python]TTC(TrueType フォントコレクション)フォントの収録書体数(INDEX)を取得する(その1)

M1+OS12環境になったので
TTCフォントに『何書体』収納されているか?確認する方法が無くなった…
OTMASTERが動作しない https://www.fontmaster.nl
FontLab買おうかな… https://www.fontlab.com/



スポットライトコマンドのmdlsで取得できる『はず』なのだが…
com_apple_ats_name_postscript = (
".HiraginoSansGBInterface-W3",
".HiraginoSansGBInterface-W6",
"HiraginoSansGB-W3",
"HiraginoSansGB-W6"



macOS12のシステムフォントの『クレー』等
/System/Library/AssetsV2/com_apple_MobileAsset_Font7/配下は
スポットライトのインデックスされないので
mdls /System/Library/AssetsV2/com_apple_MobileAsset_Font7/e435ef28885d2cfd68f2a4330023bd89e339c304.asset/AssetData/Klee.ttc
kMDItemFSContentChangeDate = 2021-08-30 18:08:10 +0000
kMDItemFSCreationDate = 2021-08-30 18:08:10 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = 0
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = 0
kMDItemFSLabel = 0
kMDItemFSName = "Klee.ttc"
kMDItemFSNodeCount = 14873176
kMDItemFSOwnerGroupID = 242
kMDItemFSOwnerUserID = 242
kMDItemFSSize = 14873176
kMDItemFSTypeCode = ""

てな、結果になり
環境依存が発生する(まぁ…スポットライトですから)
exif使うのもありますが、それは、それで、作者次第
AppleScript経由だと『黒体(STHeiti)』のようなフォントがどうしてもうまくいかない。
『言語(スクリプト)』が違う2書体が内包されていて
ファミリー名が違う2書体を、取得する方法が思い浮かばない…

Screencapture_1946x644_20211107111922

続く

|

Type&(タイプアンド)2021

名称:「Type&(タイプアンド)2021」
開催期間:2021年11月25日(木)/ 12月9日(木)
詳細・お申込みは こちら。
https://typeand.peatix.com/

|

こうゆうクイズ…嫌いじゃ無いけど

自分で解決しなさいよ!
って
自分も自信ないけど
2階調のGIF貼ってあんじゃ無いの? しらんけど…笑
2階長のTIFFに色付けたとか?→ならちゃんと出るわな…(あぁでも作成アプリの仕様によるか…)
2022からWEBPも貼れるようになったからWEBPかもね…しらんけど…笑

Screencapture_720x399_20211104235702

|

プリンターCUPSのリセット

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Versions/A/printtool --reset -f

この1文でリセットされますが
そこは、ホラねぇ それじゃあツマらんって事で

ジョブの削除
キューの削除してからの
リセットにしました

ダウンロード - printerreset.zip

(************************************************************************

     この上の▶︎をぽっちっとしてください

プリンターをリセットしいます
(全てのプリンタのジョブを削除してからプリンタを削除後にリセットの念の入れよう
************************************************************************)


set theComandText to ("lpstat -a | awk '{print $1}'") as text
set thePrinterList to (do shell script theComandText) as text
set AppleScript's text item delimiters to "\r"
set listPrinterList to (every text item of thePrinterList) as list
set AppleScript's text item delimiters to ""
set numPrinterNo to (count of listPrinterList) as integer
set numChkPrinter to 1 as integer

repeat numPrinterNo times

set thePrinter to (item numChkPrinter of listPrinterList) as text

try
set theComandText to ("lprm -P \"" & thePrinter & "\"") as text
do shell script theComandText
end try
try
set theComandText to ("lpadmin -x \"" & thePrinter & "\"") as text
do shell script theComandText
end try
set numChkPrinter to numChkPrinter + 1 as integer
end repeat


set theComandText to ("/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Versions/A/printtool --reset -f") as text
do shell script theComandText

display notification "処理終了" with title "処理が終了" subtitle "処理が終了しました" sound name "Sonumi"


log "\r\r>>>>>>>>>>>>処理終了<<<<<<<<<<<<<<<\r\r"
"\r\r>>>>>>>>>>>>終了しました<<<<<<<<<<<<<<<\r\r"



log "\r\r>>>>>>>>>>>>処理終了<<<<<<<<<<<<<<<\r\r"
"\r\r>>>>>>>>>>>>処理終了<<<<<<<<<<<<<<<\r\r"


同じ事を
BASH
#!/bin/bash


ORG_IFS=$IFS
theQueList=`lpstat -a | awk '{print $1}'`


IFS=$'\n'

for theQueName in $theQueList;do
echo $theQueName
lprm -P $theQueName
done

for theQueName in $theQueList;do
lpadmin -x $theQueName
done
IFS=$ORG_IFS

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Versions/A/printtool --reset -f

exit

同じ事を
zsh

#!/bin/zsh
#


local ORG_IFS=$IFS
theQueList=`lpstat -a | awk '{print $1}'`


local IFS=$'\n'
setopt sh_word_split

for theQueName in $theQueList;do
echo $theQueName
lprm -P $theQueName
done

for theQueName in $theQueList;do
lpadmin -x $theQueName
done
local IFS=$ORG_IFS

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Versions/A/printtool --reset -f

exit




余談
たのむから『見た通り』の『表示』にしてくれんかな…
Screencapture_1804x826_20211104105342

|

【Acrobat】Acrobatフォームでデータ印字(はがき宛名)(ちょっとだけ修正)

【Acrobat】Acrobatフォームでデータ印字(はがき宛名)
https://force4u.cocolog-nifty.com/skywalker/cat75941294/index.html
こらちらの記事の
一部修正

ダウンロード - テキストデータからはがきPDF.zip

|

Google Fonts のFont-Kai

Kai Font
https://www.font-kai.jp/

GoogleFonts Font-Kai
https://fonts.google.com/?query=Font-Kai
Screencapture_1916x1162_20211103191520



|

GoogleFontsのZEN

AdobeFontsにZen追加されました
https://app.f.cocolog-nifty.com/cms/blogs/531828/entries/129675677
AdobeFontsのZen
https://app.f.cocolog-nifty.com/cms/blogs/531828/entries/129675798
AdobeFontsのZEN
https://force4u.cocolog-nifty.com/skywalker/2021/10/post-e6f41c.html

続き
GoogleFonts(ライセンスSIL)のZEN
https://fonts.google.com/?query=Yoshimichi+Ohira

Zenフォント: 新しい日本語フォントコレクションの登場 - 日本語フォントの複雑な美しさについて -
https://fonts.googleblog.com/2021/10/zen_0361327225.html
Zenフォントのおはなし:大平善道さんとのインタビュー
https://fonts.googleblog.com/2021/10/Japaneseinterview.html

Screencapture_1902x1188_20211103191521

|

[SpotLight]選択範囲でSpotLight検索

macOS10.9ぐらいだっけ?無くなったの…?
ファイル名とか、ブラウザの文字列とか『選択』した状態から右クリックで
『SpotLight検索』って結構使うのにねぇ

訂正
ありました…笑…作っちゃったよ…とほほ
Screencapture_1266x606_20211103164056

Screencapture_1292x716_20211103164340


ダウンロード -選択範囲でSpotLight検索.zip

中身は
20211102-181354

右クリックで
選択範囲でSpotLight検索が出ますので
Screencapture_1558x868_20211102180308


実行すると
検索結果のFinderWindowが開きます
Screencapture_1092x386_20211102180307


設定は
ショートカット使うなら
Screencapture_1308x1152_202111021803082

オートメーター使うなら
Screencapture_1292x1148_202111021803082

ショートカット使うなら
20211102-180419

スクリプトメニューのApplicatonのひとつ上の階層に保存すればこんな風にも使えます
20211102-181910

|

[Wifi]Wifiアクセスポイント用のmobileconfigを作成する

出先用
SSIDとパスワードからそのアクセスポイント用のmobileconfigを作成します。
→Apple Configurator で作ってもいいんだけどね…笑
Wifiバーコードも同時生成して、書類フォルダにWifiフォルダを作ってそこに保存します。

ダウンロード - makewifiprofile.applescript.zip

QRコードの読み取り結果を貼り付けてもOK
Screencapture_816x322_20211102094030


(************************************************************************

     この上の▶︎をぽっちっとしてください
WIFI接続用のモバイルコンフィグファイルとQRコードを作成します。
作成した『mobileconfig』と『png』ファイルは『書類フォルダ』にWifiフォルダを作って
その中に保存します

************************************************************************)


---------setteing
property theAutoJoin : "true" as text
property theCaptiveBypass : "false" as text
property theDisableAssociationMACRandomization : "true" as text
property theEncryptionType : "WPA3" as text
property theHIDDEN_NETWORK : "false" as text
property theIsHotspot : "false" as text
property theProxyType : "None" as text
---------QR
property theApiUrl : "https://chart.googleapis.com/chart?" as text
property theCht : "qr" as text
property theChs : "540x540" as text
property theChoe : "UTF-8" as text
property theChld : "Q" as text


on run
try
tell application "Finder"
activate
set objDialog to (display dialog "SSID(WIFIアクセスポイント):WifiQRコードの読み取り結果でも可" default answer "" with title "WIFIアクセスポイント")
end tell
set theSSID to (text returned of objDialog) as text
on error
"パスワードを取得できませんでした"
return
error number -128
end try

set theBoolText to (characters 1 thru 5 of theSSID) as text

if theBoolText is "WIFI:" then
set AppleScript's text item delimiters to ";"
set listSSIDData to (every text item of theSSID) as list
set AppleScript's text item delimiters to ""
set theLineDateSSID to (item 1 of listSSIDData) as text
set theLineDateSec to (item 2 of listSSIDData) as text
set theLineDatePW to (item 3 of listSSIDData) as text


set theSSID to doReplace(theLineDateSSID, "WIFI:S:", "") as text
set theEncryptionType to doReplace(theLineDateSec, "T:", "") as text
set thePW to doReplace(theLineDatePW, "P:", "") as text

set theSSID to doReplace(theSSID, ";", "") as text
set theEncryptionType to doReplace(theEncryptionType, ";", "") as text
set thePW to doReplace(thePW, ";", "") as text

set theSSID to doReplace(theSSID, ":", "") as text
set theEncryptionType to doReplace(theEncryptionType, ":", "") as text
set thePW to doReplace(thePW, ":", "") as text

set theSSID to doReplace(theSSID, " ", "") as text
set theEncryptionType to doReplace(theEncryptionType, " ", "") as text
set thePW to doReplace(thePW, " ", "") as text
else
try
tell application "Finder"
activate
set objDialog to (display dialog "WIFIパスワード" default answer "" with title "WIFIアクセスポイント・パスワード")
end tell
set thePW to (text returned of objDialog) as text
on error
"パスワードを取得できませんでした"
return
error number -128
end try
end if
set listReturned to {theSSID, thePW} as list
open (listReturned)
end run



on open listReturned
set theCommandText to ("uuidgen") as text
set theUUIDPayloadA to (do shell script theCommandText)
set theCommandText to ("uuidgen") as text
set theUUIDPayloadB to (do shell script theCommandText)
set theSSID to (item 1 of listReturned) as text
set thePW to (item 2 of listReturned) as text

set theCommandText to ("curl http://smile.s12.xrea.com/getip/hostname.php") as text
set theHOSTname to (do shell script theCommandText)


set theMobileconfig to ("<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"><plist version=\"1.0\"><dict><key>HasRemovalPasscode</key><false/><key>PayloadContent</key><array><dict><key>AutoJoin</key><" & theAutoJoin & "/><key>CaptiveBypass</key><" & theCaptiveBypass & "/><key>DisableAssociationMACRandomization</key><" & theDisableAssociationMACRandomization & "/><key>EncryptionType</key><string>" & theEncryptionType & "</string><key>HIDDEN_NETWORK</key><" & theHIDDEN_NETWORK & "/><key>IsHotspot</key><" & theIsHotspot & "/><key>Password</key><string>" & thePW & "</string><key>PayloadDescription</key><string>Wi-Fi設定を構成します</string><key>PayloadDisplayName</key><string>Wi-Fi</string><key>PayloadIdentifier</key><string>com.apple.wifi.managed." & theUUIDPayloadA & "</string><key>PayloadType</key><string>com.apple.wifi.managed</string><key>PayloadUUID</key><string>" & theUUIDPayloadA & "</string><key>PayloadVersion</key><integer>1</integer><key>ProxyType</key><string>" & theProxyType & "</string><key>SSID_STR</key><string>" & theSSID & "</string></dict></array><key>PayloadDisplayName</key><string>" & theSSID & "</string><key>PayloadIdentifier</key><string>" & theHOSTname & "." & theUUIDPayloadB & "</string><key>PayloadOrganization</key><string>" & theHOSTname & "</string><key>PayloadRemovalDisallowed</key><true/><key>PayloadType</key><string>Configuration</string><key>PayloadUUID</key><string>" & theUUIDPayloadB & "</string><key>PayloadVersion</key><integer>1</integer></dict></plist>") as text

tell application "Finder"
try
make new folder at (path to documents folder from user domain) with properties {name:"Wifi", displayed name:"Wifi"}
end try
end tell
tell application "Finder"
set theWifiFolder to (folder "Wifi" of (path to documents folder from user domain)) as alias
try
make new file at theWifiFolder with properties {name:("" & theSSID & ".mobileconfig")}
end try
set theFile to (((theWifiFolder) as text) & (("" & theSSID & ".mobileconfig") as text)) as alias
end tell
tell application "TextEdit"
open theFile
tell document 1
set its text to theMobileconfig
end tell
save document 1
close document 1
end tell
set theFilePath to (POSIX path of theFile) as text
set theCommandText to ("open \"" & theFilePath & "\" | open \"x-apple.systempreferences:com.apple.preferences.configurationprofiles\"") as text
do shell script theCommandText
---------
set theQRcode to ("WIFI:S:" & theSSID & ";T:" & theEncryptionType & ";P:" & thePW & ";;") as text
set theOpenUrl to ("" & theApiUrl & "&cht=" & theCht & "&chs=" & theChs & "&choe=" & theChoe & "&chld=" & theChld & "&chl=" & theQRcode & "") as text
-----
set theCommandText to ("curl -L -o \"$HOME/Documents/Wifi/" & theSSID & ".png\" '" & theOpenUrl & "' --connect-timeout 20") as text
do shell script theCommandText


tell application "Finder"
set theWifiFolder to (folder "Wifi" of (path to documents folder from user domain)) as alias
open theWifiFolder
end tell
---------
end open




to doReplace(theText, orgStr, newStr)
set oldDelim to AppleScript's text item delimiters
set AppleScript's text item delimiters to orgStr
set tmpList to every text item of theText
set AppleScript's text item delimiters to newStr
set tmpStr to tmpList as text
set AppleScript's text item delimiters to oldDelim
return tmpStr
end doReplace

|

[TCC.db] ローカルドメインのtcc.dbを操作する

/Library/Application Support/com.apple.TCC/TCC.db を操作します
要管理者権限になります。

ダウンロード - tcc.db.local.scpt.zip




ユーザードメインのカメラ マイク 音声 をONにして
ローカルドメインのフルディスクアクセス 画面収録 アクセシビリティをONにします。

Screencapture_1316x1154_202111012148482



(************************************************************************
この上の▶︎をぽっちっとしてください

TCC.dbに選択したアプリを登録します
登録するのは
ユーザードメイン
カメラ マイク 音声認識です。
ローカルドメイン
フルディスクアクセス スクリーンキャプチャ アクセシビリティ をONにします
20211101 初回作成

************************************************************************)
set theCommandText to ("id -un") as text
set theUserName to (do shell script theCommandText) as text
try
tell application "Finder"
activate
set objDialog to (display dialog "要管理者権限パスワード" default answer "" with title "このMacのログインパスワード" with hidden answer)
end tell
set theAdminPassWord to (text returned of objDialog) as text
on error
"パスワードを取得できませんでした"
return
end try
########################################################


set theCommandText to ("id -un") as text
set theUserName to (do shell script theCommandText) as text


tell application "Finder"
set aliasChooseApp to (choose file "test" with prompt "" of type {"APPL"} default location "/Applications" with multiple selections allowed without showing package contents) as list
end tell

set numCntAppList to (count of aliasChooseApp) as number
set numCntApp to 1 as number

repeat numCntAppList times
set theLineAPP to (item numCntApp of aliasChooseApp) as alias
set theFileInfo to info for theLineAPP as list

tell theFileInfo
set theBundleIdentifier to (bundle identifier as list) as text
end tell
########################################################
try
set theCommandText to ("/usr/bin/tccutil reset Camera " & theBundleIdentifier & "") as text
do shell script theCommandText
delay 0.5
end try
try
set theCommandText to ("/usr/bin/tccutil reset Microphone " & theBundleIdentifier & "") as text
do shell script theCommandText
delay 0.5
end try
try
set theCommandText to ("/usr/bin/tccutil reset SpeechRecognition " & theBundleIdentifier & "") as text
do shell script theCommandText
delay 0.5
end try
########################################################
try
set theCommandText to ("/usr/bin/sudo /usr/bin/tccutil reset SystemPolicyAllFiles " & theBundleIdentifier & "") as text
do shell script theCommandText user name theUserName password theAdminPassWord with administrator privileges
delay 0.5
end try
try
set theCommandText to ("/usr/bin/sudo /usr/bin/tccutil reset ScreenCapture " & theBundleIdentifier & "") as text
do shell script theCommandText user name theUserName password theAdminPassWord with administrator privileges
delay 0.5
end try
try
set theCommandText to ("/usr/bin/sudo /usr/bin/tccutil reset Accessibility " & theBundleIdentifier & "") as text
do shell script theCommandText user name theUserName password theAdminPassWord with administrator privileges
delay 0.5
end try
########################################################
try
set theCommandText to ("/usr/bin/sudo /usr/bin/sqlite3 /Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceSystemPolicyAllFiles','" & theBundleIdentifier & "',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCommandText user name theUserName password theAdminPassWord with administrator privileges
delay 0.5
end try
try
set theCommandText to ("/usr/bin/sudo /usr/bin/sqlite3 /Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceScreenCapture','" & theBundleIdentifier & "',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCommandText user name theUserName password theAdminPassWord with administrator privileges
delay 0.5
end try
try
set theCommandText to ("/usr/bin/sudo /usr/bin/sqlite3 /Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceAccessibility','" & theBundleIdentifier & "',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCommandText user name theUserName password theAdminPassWord with administrator privileges
delay 0.5
end try
########################################################
try
set theCommandText to ("/usr/bin/sqlite3 /Users/" & theUserName & "/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceCamera','" & theBundleIdentifier & "',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCommandText
delay 0.5
end try
try
set theCommandText to ("/usr/bin/sqlite3 /Users/" & theUserName & "/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceMicrophone','" & theBundleIdentifier & "',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCommandText
delay 0.5
end try
try
set theCommandText to ("/usr/bin/sqlite3 /Users/" & theUserName & "/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceSpeechRecognition','" & theBundleIdentifier & "',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCommandText
delay 0.5
end try

set numCntApp to numCntApp + 1 as number
end repeat

set theCommandText to ("open \"x-apple.systempreferences:com.apple.preference.security?Privacy_SpeechRecognition\"") as text
do shell script theCommandText

|

[TCC.db]zoomインストールとTCC.db操作のサンプル

zoom.us.appはローカルインストールとユーザーインストールが選べます。
zoomをユーザードメインにインストールして
TCC.dbを操作して
カメラ マイク 音声認識 をONにするサンプル
(画面共有→画面収録、ファイル・画面共有→アクセシビリティ+旧ディスクアクセスはローカルTCC.dbなので今回は設定しない)


ダウンロード - zoominstall.zip



zoom.us.commandの拡張子をshに変更すればサイレントインストールとしても利用可能

注意
OS11以上専用





tell current application
activate
end tell

try
set theCommandText to ("id -un") as text
set theUserName to (do shell script theCommandText) as text
end try


try
set theCommandText to ("date '+%Y%m%d_%H%M%S'") as text
set theDate to (do shell script theCommandText) as text
end try

try
set theCommandText to ("echo $HOME") as text
set theHomeDir to (do shell script theCommandText) as text
end try

try
set theCommandText to ("mkdir -p '/tmp/" & theDate & "'") as text
do shell script theCommandText
end try


set theCpuType to (CPU type of (system info)) as text


if theCpuType contains "ARM" then

try
set theCommandText to ("curl -L -o '/tmp/" & theDate & "/Zoom.pkg' 'https://zoom.us/client/latest/Zoom.pkg?archType=arm64' --connect-timeout 20") as text
do shell script theCommandText
end try
else


try
set theCommandText to ("curl -L -o '/tmp/" & theDate & "/Zoom.pkg' 'https://zoom.us/client/latest/Zoom.pkg' --connect-timeout 20") as text
do shell script theCommandText
end try
end if


try
set theCommandText to ("mkdir -p ~/Applications") as text
do shell script theCommandText
end try
try
set theCommandText to ("touch ~/Applications/.localized") as text
do shell script theCommandText
end try
try
set theCommandText to ("chmod 700 ~/Applications") as text
do shell script theCommandText
end try
try
set theCommandText to ("chmod 700 ~/Applications/.localized") as text
do shell script theCommandText
end try



try
set theCommandText to ("killall \"zoom.us\"") as text
do shell script theCommandText
end try

try
set theCommandText to ("killall \"zoom.us Graphics and Media\"") as text
do shell script theCommandText
end try
try
set theCommandText to ("killall \"zoom.us Networking\"") as text
do shell script theCommandText
end try
try
set theCommandText to ("killall \"https://us05web.zoom.us\"") as text
do shell script theCommandText
end try



try
tell application "Finder"
set aliasZoomApp to POSIX file "/Applications/zoom.us.app"
move file aliasZoomApp to trash
end tell
end try


try
set theCommandText to ("installer -verboseR -pkg '/tmp/" & theDate & "/Zoom.pkg' -target CurrentUserHomeDirectory -dumplog -allowUntrusted -lang ja") as text
do shell script theCommandText
end try


try
set theCommandText to ("defaults write com.apple.dock persistent-apps -array-add \"<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>$HOME/Applications/zoom.us.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>\"") as text
do shell script theCommandText
end try

try
set theCommandText to ("defaults write com.apple.dock persistent-others -array-add \"<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>file://$HOME/Applications/</string><key>_CFURLStringType</key><integer>15</integer></dict><key>file-label</key><string>Applications</string><key>file-type</key><integer>2</integer></dict><key>tile-type</key><string>directory-tile</string></dict>\"") as text
do shell script theCommandText
end try

try
set theCommandText to ("/usr/bin/tccutil reset Microphone us.zoom.xos") as text
do shell script theCommandText
end try
try
set theCommandText to ("/usr/bin/tccutil reset Camera us.zoom.xos") as text
do shell script theCommandText
end try
try
set theCommandText to ("/usr/bin/tccutil reset SpeechRecognition us.zoom.xos") as text
do shell script theCommandText
end try

try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceCamera','us.zoom.xos',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCommandText
end try

try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceMicrophone','us.zoom.xos',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCommandText
end try
try
set theCommandText to ("/usr/bin/sqlite3 $HOME/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceSpeechRecognition','us.zoom.xos',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCommandText
end try





try
set theCommandText to ("killall Dock") as text
do shell script theCommandText
end try



tell application "Finder"
open the (path to applications folder from user domain) as alias
end tell

|

[TCC.db]TCC.dbを操作してプライバシー設定を変更する(カメラ・マイク・音声認識)

一部修正
SPEECH_RECOGNITION→SpeechRecognition
OS11 OS12専用 OS10.15以下とTTC.DBは互換がありません

選択したアプリケーションを
システム環境設定>>セキュリティとプライバシー>>プライバシー

カメラ・マイク・音声認識を有効にする

ダウンロード - tcc.db.user.scpt.zip


Screencapture_1302x1158_202111010057322

(************************************************************************
この上の▶︎をぽっちっとしてください

TCC.dbに選択したアプリを登録します
登録するのは
カメラ マイク 音声認識です。
20211101 初回作成

************************************************************************)






set theComandText to ("id -un") as text
set theUserName to (do shell script theComandText) as text


tell application "Finder"
set aliasChooseApp to (choose file "test" with prompt "" of type {"APPL"} default location "/Applications" with multiple selections allowed without showing package contents) as list
end tell

set numCntAppList to (count of aliasChooseApp) as number
set numCntApp to 1 as number

repeat numCntAppList times
set theLineAPP to (item numCntApp of aliasChooseApp) as alias
set theFileInfo to info for theLineAPP as list

tell theFileInfo
set theBundleIdentifier to (bundle identifier as list) as text
end tell
try
set theCmdText to ("/usr/bin/tccutil reset Camera " & theBundleIdentifier & "") as text
do shell script theCmdText
delay 0.5
end try
try
set theCmdText to ("/usr/bin/tccutil reset Microphone " & theBundleIdentifier & "") as text
do shell script theCmdText
delay 0.5
end try
try
set theCmdText to ("/usr/bin/tccutil reset SpeechRecognition " & theBundleIdentifier & "") as text
do shell script theCmdText
delay 0.5
end try


try
set theCmdText to ("/usr/bin/sqlite3 /Users/" & theUserName & "/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceCamera','" & theBundleIdentifier & "',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCmdText
delay 0.5
end try
try
set theCmdText to ("/usr/bin/sqlite3 /Users/" & theUserName & "/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceMicrophone','" & theBundleIdentifier & "',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCmdText
delay 0.5
end try
try
set theCmdText to ("/usr/bin/sqlite3 /Users/" & theUserName & "/Library/Application\\ Support/com.apple.TCC/TCC.db \"INSERT INTO access VALUES('kTCCServiceSpeechRecognition','" & theBundleIdentifier & "',0,2,2,1, NULL,NULL,NULL,'UNUSED',NULL,0,1606059851);\"") as text
do shell script theCmdText
delay 0.5
end try

set numCntApp to numCntApp + 1 as number
end repeat

set theCmdText to ("open \"x-apple.systempreferences:com.apple.preference.security?Privacy_SpeechRecognition\"") as text
do shell script theCmdText

|

« 2021年10月 | トップページ | 2021年12月 »