Skip to content

Instantly share code, notes, and snippets.

@moxuse
Created December 13, 2012 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moxuse/4274977 to your computer and use it in GitHub Desktop.
Save moxuse/4274977 to your computer and use it in GitHub Desktop.
on idle theObject
set x to (do shell script "diskutil list")
if "ramdisk" is not in x then
try
do shell script "diskutil erasevolume HFS+ 'ramdisk' `hdiutil attach -nomount ram://8388608`"
end try
end if
return 60
end idle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment