デバイスUUIDの取得
サンプルコード
行番号 | ソース |
---|---|
001 | |
002 | |
003 | set strCommandText to ("/usr/sbin/ioreg -c IOPlatformExpertDevice") as text |
004 | log ("実行したコマンド\r" & strCommandText & "\r") as text |
005 | set strExecCommand to ("/bin/zsh -c \"" & strCommandText & "\" | grep IOPlatformUUID | awk -F'\\\"' '{print $4}'") as text |
006 | try |
007 | set strResponse to (do shell script strExecCommand) as text |
008 | on error |
009 | log "zshでエラーになりました\r" & strCommandText & "\r" |
010 | end try |
AppleScriptで生成しました |
| 固定リンク
「Admin Device Management」カテゴリの記事
- デバイスUUIDの取得(2024.11.11)
- モデル名を取得する(2024.05.17)
- TB Default Item Identifiers(com.apple.finder.plist)(2023.12.22)
- [profiles] profiles コマンド書き出したバックアップを各ファイルに書き出す(2023.11.12)
- [profiles]現在のユーザー・プロファイル設定をバックアップ(2023.10.31)