AppleScript名:PFSystemKitでMac本体の情報を取得 v1.0 【Comment】 –https://github.com/perfaram/PFSystemKit |
— Created 2016-07-26 by Takaaki Naganoya — 2016 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "PFSystemKit" set systemKit to current application’s PFSystemKit’s investigate() set a1 to systemKit’s platformReport()’s serial() as string –Hardware Serial –> "C0XXXXXXXXX2" set a2 to systemKit’s platformReport()’s model() as string –Hardware Model –> "MacBookPro10,1�" set a3 to systemKit’s platformReport()’s family() as integer –Hardware Family –> 5 set a4 to systemKit’s platformReport()’s uuid() as string –Hardware UUID –> "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" set a5 to systemKit’s platformReport()’s memorySize() as integer –RAM Size –> 8 set a6 to systemKit’s platformReport()’s boardID() as string –> "Mac-XXXXXXXXXXXXXXXX" set a7 to systemKit’s platformReport()’s romVersion() as string –> "MBP101.XXX.XXXX.XXX.XXXXXXXXXX" set a8 to systemKit’s platformReport()’s romReleaseDate() as date –> date 4017年8月8日火曜日 0:00:00 set a9 to systemKit’s platformReport()’s smcVersion() as string –SMC Version –> "2.3f36" set a10 to systemKit’s platformReport()’s sleepCause() as string –> "5" set a11 to systemKit’s platformReport()’s shutdownCause() as string –> "5" set a12 to systemKit’s platformReport()’s platform() as string –> "1" set a13 to systemKit’s platformReport()’s endianness() as string –> "0" |
More from my site
(Visited 30 times, 1 visits today)