icq00000 Posted January 16, 2007 Share Posted January 16, 2007 due to driver's problem, I want to switch between enabled/disabled QE/CI gfx driver. I'm newbie to AppleScript and encounter some problems. for enable QE/CI, I write a AppleScript like this: copy files in folder "mac:Users:tiger:switchQC:Radeon" to folder "mac:System:Library:Extensions" Q1: this code will result with an error that I've no privillege. so how to do this as root in AppleScript? Q2: I prefer to relative folder, not absolute file path, but when I put the script in folder switchQC, I found that current directory is not folder switchQC, it can not open the folder Radeon which is just under folder switchQC, why? what else could be the current directory? for disable QE/CI, it's like this: delete files in folder "mac:System:Library:Extensions" Q3: how to specify the files that likes ATIRadeon*? I don't wanna delete all the files in that folder? Thanks! Link to comment https://www.insanelymac.com/forum/topic/38869-how-to-copy-files-to-system-folder-in-applescript/ Share on other sites More sharing options...
Recommended Posts