Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Need to block RTF files from opening on OSX

Posted on 2014-03-28
2
Medium Priority
?
247 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 31

Accepted Solution

by:
serialband earned 1200 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article outlines the struggles that Macs encounter in Windows-dominated workplace environments – and what Mac users can do to improve their network connectivity and remain productive.
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…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

916 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