file-association

File association in Mac

人盡茶涼 提交于 2019-12-02 11:52:01
问题 Finding help from here we are now able create a Mac application from a jar file and associate the application with certain file extension . When double click a file with that extension it is opening in that application and ultimately in the embedded java application. However our need is to get the selected file path as an argument to the main method of the java application. How can we achieve this. for file type association we have used defaults write com.apple.LaunchServices LSHandlers

Windows file associations done properly?

假装没事ソ 提交于 2019-12-02 10:55:43
I want to set up my application to have a file association in Windows (additional complication: the file extension could conflict with some other unrelated application). What is the best way to handle a situation like that? Most likely, a user wouldn't have both, but in the event that they do, what is the best way to proceed? I've been searching stackoverflow and various other sites online, and have a basic idea of how to do this (I've tried it, and it works), but can not find a definitive reference on how this is best done. Some references say put entries into the registry in HKEY_CLASSES

File associations in Java using jnlp.jar, without full JWS?

我的梦境 提交于 2019-12-02 09:54:39
The Java Web Start technology has an IntegrationService API for creating file associations. My question is whether it is possible to somehow use this API (possibly by including jnlp.jar in my app) to create file associations, but without the full Java Web Start technology (no website for the initial installation, the program is distributed with a traditional installer or as a simple executable jar file). The app in question is a desktop/swing app. (This question arose in the comments of the question How to associate a file with a program in java ) trashgod No web site is required to use a jnlp

File association in Mac

╄→尐↘猪︶ㄣ 提交于 2019-12-02 05:19:44
Finding help from here we are now able create a Mac application from a jar file and associate the application with certain file extension . When double click a file with that extension it is opening in that application and ultimately in the embedded java application. However our need is to get the selected file path as an argument to the main method of the java application. How can we achieve this. for file type association we have used defaults write com.apple.LaunchServices LSHandlers -array-add <dict> <key>LSHandlerContentTag</key> <string>PUT_FILE_EXTENSION_HERE_WITHOUT_PERIOD</string>

Perl Scripts on Windows 10 run from Explorer but not Command Prompt

元气小坏坏 提交于 2019-12-01 17:08:43
I've installed ActiveState Perl on my new Windows 10 PC. I've installed the same exact version of Perl on several of my own PC's, and it's installed on 100's of other users' PC's in my company. Same exact install, created by me. This is the first time trying this on Windows 10. The basic actions of double-clicking a Perl script (*.pl) in Explorer cause a console window to open and Perl to run the script. Also, in Windows Command Prompt, I can type perl.exe script.pl , and the script runs fine. But, when I just type script.pl , nothing happens. No output, no errors, no perl.exe processes

How do I add my application in the Default Programs list

拟墨画扇 提交于 2019-12-01 11:54:49
I want to add my application in the Default Programs list and read articles and questions like these: How do I add my application in the Default Programs list of Windows Vista/7? http://msdn.microsoft.com/en-us/library/cc144154%28v=vs.85%29.aspx and do all of theme but no chance. I make registry keys like these: HKEY_LOCAL_MACHINE SOFTWARE Classes TestApp.AssocFile.TA4 (Default) = TA4 Format DefaultIcon (Default) = %ProgramFiles%\TestApp\TA4.ico shell open command (Default) = %ProgramFiles%\TestApp\TA4Opener.exe HKEY_LOCAL_MACHINE SOFTWARE Test TestApp Capabilities ApplicationDescription = App

How do I add my application in the Default Programs list

余生颓废 提交于 2019-12-01 11:54:07
问题 I want to add my application in the Default Programs list and read articles and questions like these: How do I add my application in the Default Programs list of Windows Vista/7? http://msdn.microsoft.com/en-us/library/cc144154%28v=vs.85%29.aspx and do all of theme but no chance. I make registry keys like these: HKEY_LOCAL_MACHINE SOFTWARE Classes TestApp.AssocFile.TA4 (Default) = TA4 Format DefaultIcon (Default) = %ProgramFiles%\TestApp\TA4.ico shell open command (Default) = %ProgramFiles%

C++: How do I correctly register and unregister file type associations for our application (programatically)

浪尽此生 提交于 2019-12-01 08:35:20
Time was when you set file associations in: HEY_CLASSES_ROOT\<.ext> However, that seems to be possible, but an incomplete solution anymore. There are additional associations throughout the registry. For example: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\KindMap HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Extensions And all of the above, but by HKEY_USERS\ And Microsoft added their Set Default Associations control panel applet, which controls... what? I'm looking for a white paper, or discussions on: "How is a modern, Windows XP-Windows 7

Detect Chrome as browser associated with html files in Windows

∥☆過路亽.° 提交于 2019-12-01 05:39:25
We provide Flash tutorial videos that install on the local (Windows) hard disk with our application. Our app uses ShellExecute to open the html file (in whatever browser is associated with html files) in which they are embedded. Apparently there's a bug in Chrome's more recent Flash players that fails to play local files (but files over the web are fine.) (Frankly, I'm astonished that this bug hasn't been fixed by Google. Seems like a big one to me... but maybe not many people play Flash from locations other than the web?) There's a work-around on the about:plugins screen in Chrome, but we can

How to handle File Associations from Application?

拥有回忆 提交于 2019-12-01 00:07:47
I know Installers can setup File Associations for your Application during the installation process, so if you have your own File types that open with your Application, it will be setup to do that, and also the associated File will have its own icon in Windows what you define. Anyway, I would like to be able to Set/Remove the File types my Application will use, directly from the preferences form in my Application. What methods are needed to do this, I am thinking along the lines of the Registry, but then what Keys/Values etc are we to work with, if Registry is the way to go? Appreciate some