起動しているアプリのメモリ変更をしたい時に使ってるものです。
参考「アップルスクリプトでゼンマイびゅんびゅん」
まだまだ初心者レベルなんで、突っ込み所があったら
指摘して下さい。
tell application "Finder"
set theApp to every application process
choose from list theApp with prompt "どのアプリのメモリを変更する?"
set res to result
set memApp to (file of item 1 of res)
set memNum to total partition size of memApp
set memNum to (memNum div 1024)
display dialog name of memApp & "のメモリ割当て量は?" default answer memNum
set memNum to text returned of result
end tell
set memApptem to name of memApp
try
tell application memApptem
activate
quit
end tell
quit
end try
delay 3
tell application "Finder"
activate
set total partition size of memApp to (memNum as number)
display dialog "メモリ変更したよん"
open memApp
end tell