« スクリーンレーコーディング(画面収録)のテンポラリーフォルダの中に残ったファイルをゴミ箱に移動します | トップページ | [PlistBuddy]設定変更の流れ(ユーザー選択) »

デバイスUUIDの取得


サンプルコード

サンプルソース(参考)
行番号ソース
001
002
003set strCommandText to ("/usr/sbin/ioreg -c IOPlatformExpertDevice") as text
004log ("実行したコマンド\r" & strCommandText & "\r") as text
005set strExecCommand to ("/bin/zsh -c \"" & strCommandText & "\"  | grep IOPlatformUUID | awk -F'\\\"' '{print $4}'") as text
006try
007  set strResponse to (do shell script strExecCommand) as text
008on error
009  log "zshでエラーになりました\r" & strCommandText & "\r"
010end try
AppleScriptで生成しました

|

« スクリーンレーコーディング(画面収録)のテンポラリーフォルダの中に残ったファイルをゴミ箱に移動します | トップページ | [PlistBuddy]設定変更の流れ(ユーザー選択) »

Admin Device Management」カテゴリの記事