Solved

Need to block RTF files from opening on OSX

Posted on 2014-03-28
2
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
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…
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.

624 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