I am trying to set up so that when students log in to our system their IE preferences are already set. I have not found any other way than to write a script to run at login that replaces the file. The problem is that I cannot figure out why the script will not run. Here is what I have.
tell application “Finder”
move file “/Volumes/MACVOL1/com.apple.internetconfig.plist” to folder “/Users/home/Library/Preferences/com.apple.internetconfig.plist” with replacing
end tell
I get this error
Finder got an error: Can’t get file “/Volumes/MACVOL1/com.apple.internetconfig.plist”.
I tried to copy file and get this error
A replacing:true can’t go after this folder /Users/home/Library/Preferences/com.apple.internetconfig.plist.
I tried the shell script but it does not understand the path to the file because it is in the home folder. How do I tell it to select the file in this folder without having to specify the specific user who is logged in?
this last shell script works however if the file already exists, it is not replacing it. is there a way to make sure it replaces it if it is there already?
do shell script “cp -f /Volumes/MACVOL1/com.apple.internetconfig.plist ~/Library/Preferences/com.apple.internetconfig.plist”
If the file is not already there, the script does not work. What I need is for the file to be placed at the time of first login. For some reason it will not create the file if it is not there already.