Link to home
Start Free TrialLog in
Avatar of ForLoop5
ForLoop5Flag for United States of America

asked on

A script to set all .doc files to open with word on a mac

In a few of my labs I have .doc files opening with a program called Kurzweil.  I would like them to open with ms word.  I can make this change for each individual user by choosing open with and setting that to be the default program.  But There are many users and I cannot do this for every users.    Is there a script I can use in terminal that will set all .doc files to open in ms word for all accounts oh this computer?  I can run it at logon if necessary.    Running mac os 10.5 and up.  

Avatar of arnold
arnold
Flag of United States of America image

When you are changing for one, there is an option to change for all:
http://osxdaily.com/2009/10/25/change-file-associations-in-mac-os-x/

Use the change for all to complete the process.
Avatar of ForLoop5

ASKER

I am looking to do this for many computer labs.  The amount of time it would take to make that setting on hundreds of computers manually would be large.  I would like to accomplish this through a script I can send out over work group manager.  

I think the button says "change all" and not "change for all"   I beleive this will make the setting change for that one individual user. We are on a network with domain accounts.  I am not aware that "change all"  will change the association for all users that will log into the computer.  
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
See if the below helps.
Have not seen a single central mechanism to do this:
http://www.macworld.com/article/142963/2009/09/associateapps.html
The automator script might work in the workgroup manager login items.  Automator on 10.6 is different than 10.5   and 10.4    Do you think the 10.6 created automator script will work properly on the 10.5 and 4 macs?
Have not tried it so can not say for sure, try it on one from each version and see.