Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Script to change Disk Cache values

Script to change Disk Cache values
Thread Tools
Dedicated MacNNer
Join Date: Aug 2000
Location: Salvador, BA - Brazil
Status: Offline
Reply With Quote
Apr 30, 2001, 04:21 AM
 
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
Reply With Quote
Apr 30, 2001, 06:47 AM
 
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
Reply With Quote
Apr 30, 2001, 12:52 PM
 
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
Reply With Quote
May 1, 2001, 03:28 AM
 
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
Reply With Quote
May 1, 2001, 04:42 AM
 
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
Reply With Quote
May 1, 2001, 06:36 AM
 
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
Reply With Quote
May 2, 2001, 03:08 AM
 
Hey Acur128 the script worke perfectly!!!!! Man, thank you so much for the help...

------------------
Think Diferente!
Think Diferente!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:10 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2