philippe94 Posted March 15, 2008 Share Posted March 15, 2008 Hi everybody, After an succeeded install of Leopard 10.5.2, I had minor problem with USB. But finally resolved here http://forum.insanelymac.com/index.php?showtopic=93480 thanks Vash But, if I reboot, I have to type this command one more time (also, after 5 or 10 minutes Leo is working, I have to retype this command, otherwise, I can't use USB ports). Now, if I want USB at startup, it seems I need a script launching at each startup with this sudo su - type your password rm -rf /System/Library/Extensions/caches exit Something like that If possible, I would like that this script runs silently. With AppleScript, it could be possible? Thanks for help! PS: I have opened the same topic in OSX Intsallation, by error, wrong place, but I can't delete. If a modo can delete, Thanks! Link to comment https://www.insanelymac.com/forum/topic/93701-need-a-script/ Share on other sites More sharing options...
komeet Posted March 15, 2008 Share Posted March 15, 2008 go to System Preferences -> Accounts -> Login Items and use the plus button to add your script. Link to comment https://www.insanelymac.com/forum/topic/93701-need-a-script/#findComment-668484 Share on other sites More sharing options...
philippe94 Posted March 16, 2008 Author Share Posted March 16, 2008 Hi Komeet, thanks for your reply I know that, but what do I type in the script? what do I write in the script? Link to comment https://www.insanelymac.com/forum/topic/93701-need-a-script/#findComment-669071 Share on other sites More sharing options...
komeet Posted March 16, 2008 Share Posted March 16, 2008 try like this: #/bin/sh echo `cat /password.txt` | sudo -S rm -rf /System/Library/Extensions/caches Put your root password into the file /password.txt but please be aware that this is a potential security risk! Link to comment https://www.insanelymac.com/forum/topic/93701-need-a-script/#findComment-669206 Share on other sites More sharing options...
mschilling Posted March 16, 2008 Share Posted March 16, 2008 komeet, that sounds like an awesome laptop you have. How did u get that model with a T9300 processor, when I google the model it is listed with a slower processor. Is that custom ordered? Link to comment https://www.insanelymac.com/forum/topic/93701-need-a-script/#findComment-669232 Share on other sites More sharing options...
komeet Posted March 16, 2008 Share Posted March 16, 2008 No, it's called Samung R700 Dillen. But it looks like this model is sold in Germany only. Link to comment https://www.insanelymac.com/forum/topic/93701-need-a-script/#findComment-669283 Share on other sites More sharing options...
philippe94 Posted March 16, 2008 Author Share Posted March 16, 2008 try like this: #/bin/sh echo `cat /password.txt` | sudo -S rm -rf /System/Library/Extensions/caches Put your root password into the file /password.txt but please be aware that this is a potential security risk! OK, Komeet, but, I'm a noobie: which application I use? TexEdit? TextMate? and what's the extension file? for the security risk, I know Another discover: if I let my printer on, when I (re-)boot Mac OSx, USB keys are mounted and my printer is functional without any manipulation. Additionally, my printer is an All-in-one PSC 1300 series; printer is OK, not my scanner (not detected??). Thanks Link to comment https://www.insanelymac.com/forum/topic/93701-need-a-script/#findComment-669312 Share on other sites More sharing options...
komeet Posted March 16, 2008 Share Posted March 16, 2008 I recommend Automator to build that terminal script. Link to comment https://www.insanelymac.com/forum/topic/93701-need-a-script/#findComment-669601 Share on other sites More sharing options...
philippe94 Posted March 16, 2008 Author Share Posted March 16, 2008 OK thanks for your help komeet I'll try it tomorrow morning, this evening I'm too tired... i'm going to sleep now ... Link to comment https://www.insanelymac.com/forum/topic/93701-need-a-script/#findComment-669817 Share on other sites More sharing options...
philippe94 Posted March 17, 2008 Author Share Posted March 17, 2008 After multi tests with Automator, I realize that I understand nothing at all. I'm totally lost in the dark with this app!! Any help welcome! Link to comment https://www.insanelymac.com/forum/topic/93701-need-a-script/#findComment-670792 Share on other sites More sharing options...
codyman Posted March 20, 2008 Share Posted March 20, 2008 I sucesfully made the script in automator, i too had this same problem. The script helped a lot, thanks guys. Anyone who has this problem, send me a PM and il send you the script. Link to comment https://www.insanelymac.com/forum/topic/93701-need-a-script/#findComment-675316 Share on other sites More sharing options...
Recommended Posts