Default Program Mac For File Type
Using this method tells your mac which program to automatically use to open that file type (.wav, and.mp4 file types were used as examples in this video). How to Set the Default Program for a. Any time a user installs a new application on a Mac, it becomes the default Mac app for that file type. For example, PDF files open by default in the Mac Preview app. However, if a user downloads and installs Adobe’s Acrobat Reader or Adobe Acrobat DC, the default file type will change so that all PDF files will open with Adobe Acrobat. You can make Mac OS X open every file of a certain format type with a certain application by changing the file association from the Finder. We’ll show you how to change the file type association in Mac OS X so that you can set file kinds to open all in one application.
If you purchase a new Mac products. It comes with the latest version of iWork (Pages (Word processing),Numbers (Spreadsheet), and Keynote(Powerpoint) for free. Also, iWork supports Microsoft Office Formats and able to save your documents with microsoft formats. How can the answer be improved? What kind of email program does mac use for word processing and internet. Byword is the app that I use to write almost all of my articles at TNW. I wanted a word processor for Mac that was fast, lightweight and beautiful to look at. Before running out to buy Microsoft Word (or another industrial-strength and expensive) word processing program for your Mac, remember that Apple includes a respectable word processor with OS X. The program is TextEdit, and it call s the Applications folder home. You can use a command line, the menu, a mouse, and even the Help files to do virtually anything, so the more you are familiar with the program the easier it becomes to work. The files are all ASCII files, so you can actually edit the formatting codes directly as well.
Search Mac For File
Is there a way to set a .jar application as the default program to open .blah files on Mac OSX? I know how to set a .app as a default application, but the .app is the only file type not grayed out when you go to choose an application as a default.
Mac Change Default Application
What should I do about it?
TgwizmanTgwizman2 Answers
As discussed in Java Deployment Options for Mac OS X, you can create a Mac OS X Application Bundle that 'can associate specific document types with your application. This lets users launch your application by double-clicking a document created by your application.' See also more About Info.plist Keys.
trashgodtrashgodLaunch the Jar using Java Web Start. The launch file provides the ability to set-up a file/content-type association. Here is a demo. of the file services that.
.prompts the user to associate file extension .zzz
(simply a file type unlikely to clash with existing file associations) of content type text/sleepytime
. .
To do that at run-time in a JWS app., look to the IntegrationService
introduced in 1.6.0_18+.
JWS is designed to work on OS X (and Windows & *nix).
Not the answer you're looking for? Browse other questions tagged javamacosjardefault or ask your own question.
How to set an icon for some file types thought the whole system?
For example, I have text files that ends with .scala extension and I want to associate an icon for that files through the whole system and for any newly created file of this extension.
Thanks.
3 Answers
Icons for file types are handled by Launch Services (the service determining, among other things, which application handles a file type). The file icon is always provided by the application handling opening a file by default. This way, e.g. Preview provides PDF icons by default, and PNG icons, but if you change all PNG files to open using Pixelmator instead, these files get a Pixelmator-style icon afterwards.
What you need to do is add your file type definition to the application that opens it by default, or create your own 'dummy' application for the file type.
As an example, my system does not yet know about .scala
, and I want TextMate
to handle it.
First, I Show Package Contents of TextMate.app
, navigate to Contents/
and open Info.plist
, either with a text editor, or Property List Editor
, part of Apple's developer tools.
TextMate uses an unusual format for Info.plist
(it's usually binary or XML), an excerpt of which looks like this:
The parent key CFBundleDocumentTypes
is what we want. The first child element of it, enclosed in curly braces, contains a file type definition, complete with name (for file type column in Finder), file extensions, and the name of the icon file (ADA
for TextMate.app/Contents/Resources/ADA.icns
).
To support .scala
, we need to add a sibling element similar to the one above, under the same parent element CFBundleDocumentTypes
:
For simplicity's sake, I'm using the same icon file, but we can create one ourselves, copy it to TextMate.app/Contents/Resources/SCALA.icns
and refer to it as SCALA
in Info.plist
.
Now, close TextMate if it's running, move the application TextMate.app
to a different folder, and open it again. Close it, and move it back, then open it yet again. This is done so Launch Services picks up the changes to Info.plist
we just performed.
The result looks like this (remember, we reused the TextMate Ada icon for .scala
):
If you don't want to associate an application to open .scala
files (can't imagine why, but there's a way to do this): Change the additions to the file to the following:
Now, the application declares the file type, but tells the system that it does not know how to handle it (Apple gives the example of Finder declaring font types, although it cannot open them itself).
*Note that any permanent application assignment to the file type overrides the icon, probably to the 'unknown document' kind.
If you already have an application associated with .scala
, and just want to change the file icon without changing the associated application:
Open of the application's Info.plist
, look for the file type entry in CFBundleDocumentTypes
, and get the CFBundleTypeIconFile
. Modify this file in ../Contents/Resources/
and it should be reflected in Finder shortly afterwards.
Bonus information:
How to change a single document's or folder's icon to an image file
Suppose you have an image ~/Desktop/test.png
which you want to use an an icon (it's the screenshot used above to illustrate the .scala
/TextMate/Ada icon change.
Open /Applications/Utilities/Terminal.app
and enter:
This will change the test.png
file icon to its image. Since I enjoy recursion, lets try this:
Before, the plain Preview png
icon (image preview is deactivated):
After, the image file itself is its preview:
Now we can open the file's Get Info dialog, click the desired, future document icon on the top left, Cmd-C
to copy it, open the document file's Get Info dialog, click the undesired, current document icon on the top left, and Cmd-V
to paste the icon we want.
Alternatively, you can open the image file you want to use as icon in Preview, Cmd-A
to select all, Cmd-C
to copy the image to clipboard. Then open the target document's Get Info dialog, select the icon to change in the top left, and Cmd-V
to paste the image over it.
You need to replace the ICNS file inside the program that is assigned as the default program for the specific file type.
1 - Create an image for the desired icon, then save as a png filetype (png supports transparency).
2 - Convert the png file to an icns filetype (FastIcns is pretty great and it's free).
3 - CMD click or right click the application that is set as the default app for the specific filetype, then select show package contents.
4 - Look for the icns file that the application is designating as the icon for the specific file type, it will probably be in a folder called Resources.
5 - Name the icns file you created, the exact same file name as the one you want to replace.
6 - Copy and paste, or drag and drop the new icns file you created into the folder where the one you want to replace is located, and choose replace when given the option.
7 - You're done! All of the icons for that file type have been replaced with the new desired icon.
The way I always go about this is to find a file with that extension, right click » Get Info, or Command-i, and that will pull up the Info Panel. At the top your see the icon that is currently used for the image. You can drag an image file onto that one to change it, or if you copied the image, you can click on the image you want to change and do a paste to change it.
Arjan