Opening a custom file type

Hi
I have a swing application which while configuring creates a custom file type say .foo . I want my application to be launched taking me.foo as command line argument when i double click me.foo. Can anyone tell me how this can be achieved?
Thanks in advance. Any code snippet explaining this will be very helpful

I want my application to be launched taking me.foo as command line argument
when i double click me.foo. Can anyone tell me how this can be achieved?
Thanks in advance. Any code snippet explaining this will be very helpfulThis is not really a Java question - what happens when you double click an icon is really up to your operating system/ desktop manager etc.
On Windows you can set this behaviour by running WindowsExplorer and from the "Tools" menu select "Folder Options...", then look at the "File Types" tab.
You will see lots of file types sorted by extension. Have a look at how a file type with which you are familiar is set up, and then have a go using the "New" button to create your own type. Once it's created you can associate commands with actions that appear on the menus of WindowsExplorer for that type including a default action that will be carried out when the icon is double clicked.

Similar Messages

  • Changing default open with for file type for all users

    hello
    can I change the default app to open a specific file type for all users and not juist for my user?
    i am admin for my mac mini.
    tnx
    gil

    What applications are offered for open with depends on the application itself informing the system it can open certain files, plus your own custom selections for opening files. Evidently the alternate app you want to use does not claim to be able to open the files you are assigning it. If you have a plist editor and know how to use it you could edit the info.plist file inside the application itself to add the file type you want to the application's declaration of file types it will open. Then restart so the system will read that declaration. I think it would be far easier to simply launch the application and then drop a file you want it to open onto its icon in the Dock.
    Francine
    Francine
    Schwieder

  • Opening a custom file "Open With..."

    Hi, I have created a program which uses file types, and have my own file type. I know how to make the application open when you double click those items, or if I use "Open With...", but the program does not open the contents of the file. How
    can I make it open the file, for example if you were to open a Word Document, it would open in MS Word and it would actually load the text in the file. Thanks.

    Hi,
    Sorry for misunderstanding you.
    If you want to know how you can make your program to open the custom file content when you open the program, it is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    I suggest consulting on some development forums for better response.
    Visual Studio Language Forums: http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=vslanguages
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is there a 2GB file size limit on saving a custom format plugin for a custom file type?

    I have resolved issues on reading files > 2GB. Now when I save files >2GB, I get a popup that states there is a 2GB limit for plugins.
    I an using photoshop CS6 on a MAC OSX 10.9 with 16 GB RAM.
    The custom file type is what should be selected when the Save As Dialogue is visible. 
    I looked for a setting in the Photoshop preferences for Files & setting to PSB, but did not see one.
    I tried modifying values in the PiPL for formatmaxSize and PluginMaxSize, but the only values that the code will compile in with:
    32767 & 2147483647.
    I saw a posting in previous years that custom plugins were limited to 2 GB. 

    I would like to rephrase my question, now that I have worked a little more with my code.
    Is there a 2GB limit per channel and 4GB limit for total file size for a custom photoshop format plugin?

  • How do I open a PSA file type in Photoshop Elements 12

    How do I open a PSA file type in Photoshop Elements 12

    A file with a .PSA extension is most probably a catalog file from an older version of Elements (up to PSE5). To be able to use it with a newer version (including PSE12), you'll have to convert the catalog to the new format. In the organizer, open the 'File' menu, select the catalog manager (shift Ctrl C) and click the convert button, browse to the .psa file. Your catalog will be converted to the new format.

  • DVD-MOV mpegstream clip error: "File open error: unsupported file type"

    I do it all the time this is the only time i've gotten this error, i use mpeg stream clip. I have a dvd I got from a DVR recorder, I open the dvd which shows 2 VOB files in the TS folder. the MENU gives "Warning: the stream may have timecode breaks." I "Fix Now" and it works fine. But i dont want the menu. the other VOB file in the TS folder, which should be the "movie I want" gives this error when opened,
    "File open error: unsupported file type"
    when I open anyway, I get an audio bar which has no sound, and no video.
    ANY IDEAS? I've been on this for hours PLEASE

    Hi,
    Do you have the [MPEG-2 component|http://www.apple.com/quicktime/mpeg2> installed on your computer? If not, you will need it to be able to convert VOB files.

  • Webstart - Registering a custom file type

    I'm trying to use a jnlp file to register a custom file type (*.flf) with Windows XP / Vista. I have added the following line to the jnlp file near the bottom (right by the main class tag):
    <association extensions="flf" mime-type="application-x/flf" />On some sites I have found this listed as mime type first and extensions second and also with just a > no the end without a />. Neither seems to be working. I also found it listed inside the information section but this didn't work either.
    Am I missing something blindingly obvious? For reference heres the entire jnlp file
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for SimpleExample Application -->
      <jnlp codebase="http://ukpcw032:8080/jclock" href="jFreelancer.jnlp">
        <information>
           <title>CVC Freelancer Time Sheets</title>
           <vendor>CVC</vendor>
           <description>CVC Freelancer Time Sheets - Program to allow freelancers to generate their time sheets for submission.</description>
           <description kind="short">Fee</description>
           <offline-allowed/>
           <icon href="images/overview.png" />
           <icon kind="splash" href="images/splash.jpg" with="365" height="260"/>
           <shortcut>
           <desktop/>
           <menu submenu="CVC"/>
           </shortcut>
         </information>
         <resources>
           <j2se version="1.6"/>
           <jar href="jFreelancer.jar"/>
           <jar href="libs/mysql-connector-java-5.1.6-bin.jar"/>
           <jar href="libs/iText-2.1.3.jar"/>
           <jar href="libs/DateChooser.jar"/>
           <jar href="libs/dsn.jar" />
           <jar href="libs/imap.jar" />
           <jar href="libs/pop3.jar" />
           <jar href="libs/smtp.jar" />
           <jar href="libs/mailapi.jar" />
         </resources>
         <security>
           <all-permissions/>
         </security>
         <association extensions="flf" mime-type="application-x/flf" />
         <application-desc main-class="freelancer.UserLogin"/>
    </jnlp>

    That JNLP file is invalid. Try this variant..
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for SimpleExample Application -->
      <jnlp codebase="http://ukpcw032:8080/jclock" href="jFreelancer.jnlp">
        <information>
           <title>CVC Freelancer Time Sheets</title>
           <vendor>CVC</vendor>
           <description>CVC Freelancer Time Sheets - Program to allow freelancers to generate their time sheets for submission.</description>
           <description kind="short">Fee</description>
           <icon href="images/overview.png" />
           <icon kind="splash" href="images/splash.jpg" width="365" height="260"/>
           <offline-allowed/>
           <shortcut>
           <desktop/>
           <menu submenu="CVC"/>
           </shortcut>
         <association extensions="flf" mime-type="application-x/flf" />
         </information>
         <security>
           <all-permissions/>
         </security>
         <resources>
           <j2se version="1.6"/>
           <jar href="jFreelancer.jar"/>
           <jar href="libs/mysql-connector-java-5.1.6-bin.jar"/>
           <jar href="libs/iText-2.1.3.jar"/>
           <jar href="libs/DateChooser.jar"/>
           <jar href="libs/dsn.jar" />
           <jar href="libs/imap.jar" />
           <jar href="libs/pop3.jar" />
           <jar href="libs/smtp.jar" />
           <jar href="libs/mailapi.jar" />
         </resources>
         <application-desc main-class="freelancer.UserLogin"/>
    </jnlp>I also have a demo of the [FileOpen/SaveService|http://pscode.org/jws/api.html#fs] that you might also test, but I just noticed that launch file is also slightly invalid. I have seen it work on Win XP using Java 1.6 though.
    Edit 1:
    I used YAXV to validate the launch file against an XSD that is based on the DTD distributed by Sun. YAXV is freeware, and I highly recommend* using it to check the JNLP file(s) for any JWS launch that does not work as expected.
    * OK - I wrote it, so I might be biased. ;-)
    Edited by: AndrewThompson64 on Aug 12, 2008 11:05 PM

  • Quicktime crashes when opening any video file type.

    Hi, I've been having this problem for quite a long time now. When attempting to open a quicktime file or any other type of video file, the program crashes. It does not report any sort of error message. I've updated both quicktime and windows. I've tried everything that has been suggested in prior posts and have yield no results. This is really irrating me. I don't want to have wasted money on this program and I need this for class. Any advice is appreciated, thank you.

    The files I'm most concerned with playing are my animations exported from Final Cut and from another system's quicktime. These usually are quicktimes or .wma's that are either uncompressed or with a variety of compression, usually DV-NTSC, H.264, HDV 1080 60i, or mpeg4 for the web. But as I've professed before, it seem that the file type isn't necessarily factor. Any video file that should play in Quicktime does not and the program crashes. Upon this I get a very vague error message which reads "Quicktime Player has encountered a problem and needs to close. We are sorry for the inconvenience." That unfortunately is as much detail as I can give at the moment. I know this is a vague problem and that my information is just as vague, but that is all I have gathered. Anything is appreciated.

  • File open error: unsupported file type Mpeg Streamclip

    having a problem... I am using mpeg streamclip to convert vob files from a dvd. the problem is that the program says that the first vob file is an unsupported file type. I know that this is not true. The DVD plays, and the remaining vob files are opened and processed by the program correctly. Any advice or suggestions?

    I am having the same problem. The first VOB file in the sequence will not open in either Streamclip or Quicktime. This is not the menu display image, but the first chunk of the video (the menu image actually will open). All the ones after it can be opened either individually or joined as a group.
    The DVD plays fine on the mac and also in the regular DVD player. Any idea if this is perhaps some equipment fault when the DVD burner "finalizes" the disk? Am using a combo VHS/DVD-R unit. It is not super high-end, but then neither are these old home videos I'm converting.

  • How do I open an unknown file type on ios

    I have a specific file type that is nothing more than a text file.  But when I receive emails with this file type, I can't do anything with it.  It is a situation that happens all the time because it is a standard type of file that my company uses, so renaming of the file is not possible before sending. 
    How can I force the mail app or another app to recognize that it is just a text file and open it?

    *.lic. It is a text file.   Like I mentioned before it is just a simple text format for a license file that controls access to software licenses.  All I need is a way to tell the iPhone to open it with anything that reads text.  If I change the file extension to *.txt on a PC or Mac, the phone opens it fine.  The problem is that when I want to view it and I am not in the office, I can't do anything with it.

  • How can I get the open counts on file type items?

    One of the managers' point of interesting on Portal usage is to know how frequently items are opened to view.
    I need to preapre a report to show managers which items (file type) are opened most frequently? and who opened the item most?
    How can I do it?
    Thanks,

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Are you saying that you bought a used or second hand Mac? In North America an open box Mac usually refers to a display model used in a store.
    There is mixed info on this issue. Some folks in the US have called Apple Care and requested that the iLife apps prebundled with this specific Mac be released from original owner's Apple ID so the new owner can Accept the apps into their Apple ID, with success. Folks in Europe report that when making the same request of Apple Care they are met with resistance and are unsuccessful.
    YMMV
    The sad thing is that if Apple Care will not release the apps, then the owner of a second hand Mac cannot even purchaase the apps on their Mac! To buy the apps with their own account, they would need to find an older Mac running at least OS X Snow Leopard 10.6.8 with a Mac App Store (MAS), that also has never had the MAS versions of the iLife apps installed on it.

  • Numbers error msg: "Unable to open ' .' Unknown file type."

    I last updated this doc 4 days ago, saving it every time I update it. I use it to track my children's school hours throughout the year. I have since restarted my Mac. I went to open this file today, and am getting the error message, "Unable to open ' (name of file)' Unknown file type.
    When I search for the doc under the spotlight, the name of it appears & it is listed as a Numbers doc, but I can't open it.
    Any ideas for a work around? I haven't backed it up in several weeks, so I'll be very sad if I can't retrieve it at all!
    Thanks for your help.

    Have a look here http://www.dmxzone.com/go/16740/clearing-dreamweaver-s-cache
    PS: Error 2 u 2

  • Opening a .h264 file type

    Hi total newbie here but a freind has given me a couple of files from a video surveillance camera.
    He needs it cleaning up and a still grabbing from it.
    But how do I open these .h264 files that are coming up as unix exec's?
    I've tried FCP X and QuickTime- nothing seems to understand them.
    Also is there anything more suited to this job than FCP?
    Thanks.

    I want my application to be launched taking me.foo as command line argument
    when i double click me.foo. Can anyone tell me how this can be achieved?
    Thanks in advance. Any code snippet explaining this will be very helpfulThis is not really a Java question - what happens when you double click an icon is really up to your operating system/ desktop manager etc.
    On Windows you can set this behaviour by running WindowsExplorer and from the "Tools" menu select "Folder Options...", then look at the "File Types" tab.
    You will see lots of file types sorted by extension. Have a look at how a file type with which you are familiar is set up, and then have a go using the "New" button to create your own type. Once it's created you can associate commands with actions that appear on the menus of WindowsExplorer for that type including a default action that will be carried out when the icon is double clicked.

  • Trouble Opening PNGs - Unknown file type

    I found this topic already on this board (a post from 2002)
    but there was no usable answer.
    I am using Fireworks 8 (8.0.0.777) on Windows. I have
    troubles opening old pngs I created. When opening some files I get
    the error message "unknown file type".
    The file can be opened via photoshop or irfanview, but all
    data is flat on only one layer - so this is not a solution.
    It seems that the file is damaged - rebuilding the whole file
    would be a lot of work. This problems occurs from time to time with
    different pngs.
    All files are saved on a server via our network. But this
    problem occurs only with pngs and no other file-types, so I don't
    think that this is a network problem.
    Thanks in advance, Malte

    The AD wrote:
    > I'm having the same issue, saving to a network drive.
    File I open, save, close
    > and try to re open some times (seems random) I get the
    "unknown file type. I'm
    > on a mac running 10.5.2 other in my office can't opent
    he files either, they
    > are running vista.
    >
    > No other ops can open the PNGs either.
    Have the files been moved?
    Linda Rathgeber [PVII] *Adobe Community Expert-Fireworks*
    http://www.projectseven.com
    Fireworks Newsgroup:
    news://forums.projectseven.com/fireworks/
    CSS Newsgroup: news://forums.projectseven.com/css/
    http://www.adobe.com/communities/experts/

  • FIREFOX 4 CRASHES WHEN I USE THE "BROUSE" MODE TO SELECT A PROGRAM TO OPEN A PARTICULAR FILE TYPE

    USING TOOLS-OPTIONS- APPLICATION BRINGS UP THE PANEL TO SELECT PROGRAMS FOR EACH FILE TYPE. SELECTING "USE OTHER" BRINGS ANOTHER PANEL WITH VARIOUS OPTIONS. NONE OF THESE ARE APPROPRIATE FOR MY SITUATION. AS SOON AS I CLICK "BROWSE" FIREFOX CRASHES. THE SAME THING HAPPENS IF I SELECT AN ATTACHMENT FROM AN EMAIL AND TRY TO CHANGE THE ASSOCIATED PROGRAM BY USING "BROWSE" TO FIND AN APPROPRIATE PROGRAM.

    You can uninstall (remove) the Java Console extensions and disable the Java Quick Starter extension, you do not need them to run Java applets.
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    See also http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0
    Disable the Java Quick Starter extension: Tools -> Addons -> Extensions<br />
    Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)
    See:
    * http://kb.mozillazine.org/Firefox_crashes
    * [[Firefox crashes]]
    Create a new profile as a test to check if your current profile is causing the problems.
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

Maybe you are looking for

  • Error while Processing ERS

    Hello gurus, While I am processing ERS, I am getting the following error for a particular PO and Vendor. " Baseline date for Payment Does not Exist ". Please help me out. Reward Points assured. Regards, Hari Prasath.S

  • LAP local - frequently disassociated WLC

    Hi, I have a WLC 4402-40 with code 5.0.148.0 with 27 APs. Two APs are often disassociated from the WLC. Two APs are the same model of others and all APs are in local LAN. This is the Time Statistics: Time Statistics UP Time Controller Associated Time

  • Downloading  the master data from database

    Is there any standard report or function module or bapi's for downloading the following master data from the database. 1. Masterial master 2. Vendor master 3. Customer master 4. For J1ID regds prabhu

  • When I try to open iPhoto it quits unexpectedly.

    Is there a way that I can get it to work again without losing all my photos.  If not, how doe I retrieve all my photos, ie where are they saved outside of iPhoto, are they in a hidden folder somewhere?  Time Machine backs up for me all the time so I

  • Solution Manager ChaRM

    Hi, Can we use ChaRM for performing regular transports in the landscape. If so, what should be the project type? Regards KVR