Created
December 13, 2012 08:20
-
-
Save moxuse/4274977 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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