« Office-Reset | トップページ | [python]モジュールアップデート »

[workflow]モバイルコンフィグを開くOpenMobileconfig

OS13版

ダウンロード - openmobileconfig.zip


on run {input}

tell application "System Settings" to launch

--システム環境設定が開くのを待つ
repeat
set doLaunchApp to get running of application "System Settings"
if doLaunchApp is false then
delay 0.5
else
exit repeat
end if
end repeat

set strCommandText to "open -b com.apple.systempreferences \"/System/Library/PreferencePanes/Profiles.prefPane\"" as text
do shell script strCommandText
delay 5

tell application "Finder"
set strFilePath to POSIX path of input

set theCmdCom to ("open \"" & strFilePath & "\" | open \"x-apple.systempreferences:com.apple.preferences.configurationprofiles\"") as text
do shell script theCmdCom
end tell
end run

|

« Office-Reset | トップページ | [python]モジュールアップデート »

Admin Mobileconfig」カテゴリの記事

Admin Device Management」カテゴリの記事

System Settings」カテゴリの記事