1、在“应用程序/实用工具”里启动“脚本编辑器”(AppleScript)。 2、添加代码 do shell script " if ! test -e /Volumes/\"Ramdisk\" ; then diskutil erasevolume HFS+ \"RamDisk\" `hdiutil attach -nomount ram://2097152` fi " 3、文件格式选择“应用程序”,存储即可。 4、把应用脚本程序添加到启动/登陆时自动运行。打开“系统偏好设置/用户与群组”,选择“登录项”选项卡,…