Hi,
Well, OSX is finally giving me troubles. My cd disk burning doesn’t work and getting all kinds of errors when checking disk. So, I created a new user and transfered all files from my original user to the drop box of the new user. Then, I deleted the original user. Now, the owners of all applications I installed are blank.
I created an AppleScript to change the owner of just a chosen application to the new user.
set f to choose file
tell application “Finder”
set the_owner to owner of f
end tell
SetSubOwners(f, the_owner)
on SetSubOwners(the_folder, the_owner)
tell application “Finder”
set item_list to (every item of the_folder)
repeat with this_item in item_list
try
set owner of this_item to (the_owner as Unicode text)
if kind of this_item is “Folder” then
SetSubOwners(this_item, the_owner)
end if
on error err_mess
exit repeat
end try
end repeat
end tell
return err_mess
end SetSubOwners
before I used the error handler, it errored somewhere and the original script with the error wasn’texactly like this script. It errored somewhere within the repeat loop. I’m thinking that it’s erroring because the owner of the app (and all sub items) is blank. I’m thinking that this is a job for unix. Mainly, all apps that I installed as the other user has an owner that is blank. Also, the permission for group is read only while I think it should be read/write with admin for group.
What’s the best way to change this stuff?
Hoping I’ll get some money to fix my cd read/write and install Tiger if I ever get some extra money.
PS, How do you create a new admin user with all the same permissions as the old user.
Thanks,