 |
 |
Script to change Disk Cache values
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2000
Location: Salvador, BA - Brazil
Status:
Offline
|
|
Does someone tried this before?! I have no idea on how to make Apple Script, but someone told me I could automate changing my Disk Cache values with AS. Is that possible? Can someone tell me how!?
------------------
Think Diferente!
|
|
Think Diferente!
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Apr 2000
Status:
Offline
|
|
Why would you want to?
Oh well.
I can't "record" a script, so the Memory control panel is not scriptable, but that doesn't mean it can't be done - I just don't know how, and it may be hard to find out.
I suggest you ask this "someone" how.
Cipher13
------------------
AIM: Cipher1387
ICQ: 48111606
mail: cipher13@mac.com
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2000
Location: Salvador, BA - Brazil
Status:
Offline
|
|
Hello Cipher13, let me tell you why. I just installed my Pro-Tools LE System (001), and the manual tells to setup the Disk Cache @ 512Kb. But this value slows the machine tremendously, so, everytime I want to run PT I need to go scrolling down from 8Mb to 512Kb what is.. let's say... boring (avoiding worst words).
I wish it could be done, but if you don't know how to... I can tell I'm not gonna be able to do so 
Well, thanx for the reply!
------------------
Think Diferente!
|
|
Think Diferente!
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Apr 2001
Status:
Offline
|
|
i think this should work:
tell application "Memory"
set size of disk cache to 540000
close
end tell
note: the size is in bytes (roughly 512K, but should hit it ok)
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2000
Location: Salvador, BA - Brazil
Status:
Offline
|
|
Ok, now I need to know where to create this file... I'm sorry...
SimpleText? What kind of file!?
Thank you so much for your help...
------------------
Think Diferente!
|
|
Think Diferente!
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Apr 2001
Status:
Offline
|
|
oops, sorry... you need to save the script as a "Classic Applet" in the application "Script Editor" - (choosing Save or Save As... from the File menu will give you a drop-down menu to choose the format). The "Script Editor" app should be in the AppleScript folder in the Apple Extras folder which should either be at the root level of your hard drive or in the Applications (Mac OS 9) folder. After saving the script somewhere, locate it & run (open) it to change the disk cache setting (the Memory control panel will open, change the setting, and close)... changes take effect after a restart (which you could incorporate into the script with the following line at the end of the script)
tell application "Finder" to restart
[This message has been edited by acur128 (edited 05-01-2001).]
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2000
Location: Salvador, BA - Brazil
Status:
Offline
|
|
Hey Acur128 the script worke perfectly!!!!! Man, thank you so much for the help...
------------------
Think Diferente!
|
|
Think Diferente!
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|