Hello David,
Use the "shell" command to get a drive number on Mac Os.
If you want the full information about system and materiel:
Code: Select all
on mouseUp
put "" into resum
set cursor to busy
put "put shell (" & quote & "system_profiler" & quote & ") into resum" into lacomm
do lacomm
put resum into fld "resum"
end mouseUp
If you just want a part of the information :
Code: Select all
on mouseUp
put "" into resum
set cursor to busy
put "put shell (" & quote & "system_profiler SPSerialATADataType" & quote & ") into resum" into lacomm
do lacomm
put resum into fld "resum"
end mouseUp
You will obtain this kind of poem :
Serial-ATA:
NVidia MCP79 AHCI:
Vendor: NVidia
Product: MCP79 AHCI
Link Speed: 3 Gigabit
Negotiated Link Speed: 3 Gigabit
Description: AHCI Version 1.20 Supported
Hitachi HDT721032SLA380:
Capacity: 320,07 GB (320 072 933 376 bytes)
Model: Hitachi HDT721032SLA380
Revision: ST0KA36A
Serial Number: STA123SNUMBERXYZ
Native Command Queuing: Yes
Queue Depth: 32
Removable Media: No
Detachable Drive: No
BSD Name: disk0
Rotational Rate: 7200
Medium Type: Rotational
Partition Map Type: GPT (GUID Partition Table)
S.M.A.R.T. status: Verified
Volumes:
Capacity: 209,7 MB (209 715 200 bytes)
Writable: Yes
BSD Name: disk0s1
Macintosh HD:
Capacity: 319,73 GB (319 728 959 488 bytes)
Available: 230,34 GB (230 343 659 520 bytes)
Writable: Yes
File System: Journaled HFS+
BSD Name: disk0s2
Mount Point: /
Change the "SPSerialATADataType" with "SPIDEDataType" to get informations on IDE disks (for example).
With the hope it will help you
Renaud