Ok, so I am making a small script to delete a certain file that causes an application of mine to crash:
Anyway, I need to put this on about 70 different computers with different home names. Right now it only works when the user is named Tyler.
I am very bad at Applescript, so I was hoping someone else could tell me how to do this.
Code:
tell application "Finder"
set the fileToDelete to alias "Mac HD:Users:Tyler:Library:Preferences:HEAVY Preferences:dyndata.reg"
delete the fileToDelete
end tell
Anyway, I need to put this on about 70 different computers with different home names. Right now it only works when the user is named Tyler.
I am very bad at Applescript, so I was hoping someone else could tell me how to do this.