Solved

Need to block RTF files from opening on OSX

Posted on 2014-03-28
2
233 Views
Last Modified: 2014-04-13
We have a number of macs in our company and need to block the rft files from opening in office 2011. We cannot control the macs centrally.

Is there a script I can run locally on the mac to block this  that I can give out to the users to run?
0
Comment
Question by:rdefino
2 Comments
 
LVL 27

Accepted Solution

by:
serialband earned 300 total points
ID: 39962606
You can change it to something else for now, but I think it's set to Textedit by default.  (At least mine is)

defaults write com.apple.LaunchServices LSHandlers -array '{LSHandlerContentType = "public.rtf";LSHandlerRoleAll = "com.apple.textedit"}'

Open in new window

Here's how to see what you have.
defaults read com.apple.LaunchServices LSHandlers

Open in new window

To change it back to Word
defaults write com.apple.LaunchServices LSHandlers -array '{LSHandlerContentType = "public.rtf";LSHandlerRoleAll = "com.microsoft.Word."}'

Open in new window

0
 
LVL 53

Expert Comment

by:strung
ID: 39962747
Just to clarify, are you trying to block .rtf files from opening in MS Office when you double click on them in Finder, or are you trying to block them from opening at all?

If you just want to change the default app that opens when you double click on .rtf files in finder, just right click on one such file and select Get Info. Then in the Get Info window, change "Open With" to some app other than MS Word and click on "change all".
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now