Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Applescript to make RamDisk' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Applescript to make RamDisk
Authored by: kmmertes on Nov 18, '06 07:55:28AM

The following applescript will be runable from finder:

set VolumeName to "RAMDisk"
set SizeInMB to 512

display dialog "RAM Disk Size:" default answer SizeInMB buttons {"OK", "Cancel"} default button 1

set NumSectors to ((2 * 1024 * SizeInMB))
set DeviceName to do shell script "hdid -nomount ram://" & NumSectors
do shell script "diskutil eraseVolume HFS+ RAMDisk " & DeviceName



[ # ]