FANDOM


I use this script to create a 8GB Ram Disk every time my computer boots (user login).

(Start Scripteditor and save it as a Program, Go to user Startup Items add the Program. Although it takes up to 2 Seconds until the RAID is created).

Enjoy

Here is the script ❤

-------------------------------------------------------------------------------------------------------- 

repeat 0 times --<-- 1開-0關 -- 💘鱫鰰提䱈開關💘 

display alert "嚫鱫的鰛鰇鱮美鱺沝療癒鯀女鰰鯽鱂䲀行鱫鰰程序了唷💋 鰰鱫世魜唷💋 "

end repeat

repeat 1 times --<-1開-0關-- 首次䲀行一次後鱞請沝女鰰鱂鮆道程序值鯁𩻟 0 關閉 --

display alert " 鱫鰰提醒嚫鱫的沝女鰰第一道程序僅需䲀行一次鯽魺唷💋"

(do shell script " sudo rm -rf ~/Library/Caches " with administrator privileges)

end repeat

(do shell script

if ! test -e /Volumes/'Eros SpeedDisk' ; then 

diskutil erasevolume HFS+J 'Eros SpeedDisk' ` 

hdiutil attach -nomount ram://$((4*1024*2048))` -- 鯲前數字4 鯷鮘䱪4G 沝女鰰妳魺自行鰎魞鯁之唷💋 --

fi 

rm -rf ~/Library/Caches  

cd /Volumes/'Eros SpeedDisk'  

mkdir -p 'Real-Time Applications Caches' Downloads Documents Movies Videos Music Pictures  

cd ~ 

ln -s /Volumes/'Eros SpeedDisk'/'Real-Time Applications Caches' ~/Library/Caches ")

-------------------------------------------------------------------------------------------------------- 

repeat 0 times --< rsync-2.6.9 版本-- 1開-0關 💋

display alert

🎼鱂沝女鰰所選擇的🎼

💫A:來源資料夾💫

<<<鮦步至>>> 

💫B:目標資料夾💫" --跟蹤刪除 --排除={鯀統隱藏檔,應用程式,緩存,公用,桌面,下載} 💋 

set ErosSource to (choose folder with prompt " 

🎼請沝療癒鯀女鰰選擇🎼

💫A:來源資料夾💫

唷💋")

set ErosDest to (choose folder with prompt " 

🎼請沝療癒鯀女鰰選擇🎼

💫B:目標資料夾💫

唷💋")

tell application "Terminal"

activate

(do script " /usr/bin/rsync -ESWPaudvx --delete --exclude={.*,Applications,Library,Public,Desktop,Downloads} " & quoted form of POSIX path of ErosSource & " " & quoted form of POSIX path of ErosDest)

end tell

end repeat

--------------------------------------------------------------------------------------------------------

螢幕快照 2016-05-22 03.10.47
螢幕快照 2016-05-22 03.11.32