« FileZillaの過去バージョン | トップページ | [AppleScript]Dict Arrayの入れ子(ネスト) »

open com.apple.preferences.configurationprofiles

profiles tool no longer supports installs. Use System Preferences Profiles to add configuration profiles.



ダウンロード - openmobileconfig4os11.zip

---■■■■ ダブルクリックの始まり
on run
set theWithPrompt to "mobileconfigをドロップしてください"
set theDefLoc to the path to downloads folder from user domain as alias
---Uniform Type Identifier指定
---詳しくは http://goo.gl/6jAQa Uniform Type Identifier
set theFileType to "com.apple.mobileconfig" as text
set AppleScript's text item delimiters to {","}
set theFileTypeList to every text item of theFileType
open (choose file default location theDefLoc ¬
with prompt theWithPrompt ¬
of type theFileTypeList ¬
invisibles true ¬
with multiple selections allowed without showing package contents)
end run

---■■■■ openドロップの始まり
on open DropObj

set theMyPath to path to current application as string

tell application "Finder"
---■■■■ 繰り返しの始まり
repeat with ObjFiles in DropObj
set theAlias to ObjFiles as alias
set numChkDim to 0
set theFilePath to POSIX path of ObjFiles as text

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

end repeat

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


« FileZillaの過去バージョン | トップページ | [AppleScript]Dict Arrayの入れ子(ネスト) »

Mac Admin」カテゴリの記事