Solved

Need to block RTF files from opening on OSX

Posted on 2014-03-28
2
236 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 28

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Break numbering between parenthesis into a new line 32 56
can't find the executable in Simulator 1 80
Protection area in Word 2 37
Charging Macbook Pro 8 30
Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…

911 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

22 Experts available now in Live!

Get 1:1 Help Now