Questions tagged [file-association]

A file association associates a file with an application capable of opening that file. More commonly, a file association associates a class of files (usually determined by their filename extension, such as .txt) with a corresponding application.

413 questions
13
votes
5 answers

Open specific file type with Python script?

How can I make a Python script to be a specific file type's (e.g., *.foo) default application? As in, when I double click the file in the Finder / Explorer I want the file to open in the Python script. Is this possible to do in Win and/or OS X? The…
c00kiemonster
  • 22,241
  • 34
  • 95
  • 133
13
votes
1 answer

Can you dynamically assign CFBundleDocumentTypes to your Cocoa application?

Can you dynamically assign CFBundleDocumentTypes to your Cocoa application? Meaning during run time can I assign more extensions for my app to handle. Currently I set some extensions for my app to handle using CFBundleDocumentTypes in the…
13
votes
3 answers

File association not found for extension .py

I am having trouble executing my anaconda python It seems python is not associated correctly or not at all I do not have admin rights as this is a work computer and going through IT takes forever My anaconda is located in the…
DeanLE
  • 131
  • 1
  • 1
  • 4
13
votes
1 answer

Android: Associate app with custom file type

I've got a file type, the extension is '.rfts' (really it's just storing a JSON string that represents user configurations for an audio amplifier). I'd like to be able to open this file when it's an attachment from an e-mail (Gmail for example) so I…
Magic Marbles
  • 403
  • 2
  • 5
  • 15
13
votes
2 answers

Double click document file in Mac OS X to open Java application

I have a Java application in an application bundle that I want to associate a file type with. For example, if there's a file foo.example when that file, or any file with the .example extension, is double-clicked, I want my application to start and…
steve
  • 1,545
  • 4
  • 18
  • 28
11
votes
2 answers

How to associate a file extension to an electron app (multiplatform)

I already added the following snippet to my package.json: "build": { "fileAssociations": [ { "ext": "asdf", "name": "ASDF File", "role": "Editor" } ] } But the generated installer does not assign my application to the…
11
votes
1 answer

How do you set up a file association with a click-once application?

I have a click-once application. I have an associated file that I store the application's data in. When a user clicks on one of these files I want it to open the click-once app and load the file. I can set up the file association in the publish, the…
Keith
  • 150,284
  • 78
  • 298
  • 434
11
votes
8 answers

Cross-platform way to open a file using Java 1.5

I'm using Java 1.5 and I'd like to launch the associated application to open the file. I know that Java 1.6 introduced the Desktop API, but I need a solution for Java 1.5. So far I found a way to do it in Windows: Runtime.getRuntime().exec(new…
asalamon74
  • 6,120
  • 9
  • 46
  • 60
11
votes
6 answers

Visual Studio opening .xml files in Notepad

So I'm happily working on a project making heavy use of custom .xml configuration files this morning. All of a sudden, whenever I double-click an .xml file in Solution Explorer, it opens in Notepad instead of within Visual Studio. Thinking that it…
Portman
  • 31,785
  • 25
  • 82
  • 101
11
votes
4 answers

register as music player

I'd like to see my app in the list of player ("continue action using...") that pops up when I try to open an audio file (ie. from file browser or gmail attachment). Here are the intent filters I've tried for my MainActivity:
elgui
  • 3,303
  • 4
  • 28
  • 37
10
votes
3 answers

How do you change file association for .py Python files in XP?

When I type assoc .py I get .py=py_auto_file. When I type ftype py_auto_file I get py_auto_file="C:\Program Files\Adobe\Photoshop 7.0\Photoshop.exe" "%1" How do I make py_auto_file="C:\Python27"?
user883807
10
votes
3 answers

How to get recommended programs associated with file extension in C#

I want to get path to the programs that associated with file extension, preferably through Win32 API. List of programs that appears in "Open With" menu item List of programs that appears as recommended in "Open With..." dialog. UPD: Assume that i…
Alexander
  • 1,287
  • 1
  • 15
  • 34
10
votes
3 answers

How to set file association to custom .env filename in VSCode settings?

I have a .envDEV file name that I use for development environment variables. And VSCode is not recognizing it as a dotenv file. If I change the language mode for the file, it seems to work (the proper styles are applied, 'though the icon won't…
10
votes
1 answer

How to use file associations with jpackage?

I am using jpackage to pack my Java application and want to use it to create file associations. I see that the utility supports this via the --file-associations command. Using this, you can point it to a file that includes file association…
Draque Thompson
  • 908
  • 9
  • 16
10
votes
4 answers

Eclipse File Associations: displaying images

I am developing some help documentation in a Java project in Eclipse. In the resources folder there are my HTML pages and a couple of GIF and PNG images that will be displayed inside the HTML. Now for my convenience I want to preview the images in…
Terry
  • 14,529
  • 13
  • 63
  • 88
1
2
3
27 28