Atalantia
Aktives Mitglied
Thread Starter
- Dabei seit
- 26.11.2009
- Beiträge
- 1.894
- Reaktionspunkte
- 432
Hallo Leute,
is schon wieder Weihnachten? Ne, doch nicht. Trotzdem, ich habe wiedermal einen Überfluss an Scripts.
Cheers
is schon wieder Weihnachten? Ne, doch nicht. Trotzdem, ich habe wiedermal einen Überfluss an Scripts.
Code:
set val to choose from list {10, 50, 100, 200, 500, 1000} with prompt "Size of Ram-Disk in MB:" with title "Ram-Disk"
if val = false then return
do shell script "diskutil erasevolume HFS+ '" & val & "MB RAM-Disk' $(hdiutil attach -nomount ram://" & val * 2048 & ")"
Cheers