File associations: filename not passed in args with JWS on OS X?

Hi -- I have a working JWS-deployed app, which sets up a file association for a specific MIME type. Double-clicking a file with the specified extension works fine on win32, with args[0] being set to -open, and args[1] to the file path to open.
But on OS X, J2SE 5.0, although the JWS app starts, the args[] array is empty (and hence I have no way to know what datafile was double-clicked to start the app, and hence to open it!). Is this a known problem on OS X? I can't find any reference to this issue anywhere. This is on a MacPro Intel box, haven't tried on another Mac yet, but I assume this is a general issue? JWS is version 11.4.2.
Thanks for any tips... D

...on OS X, J2SE 5.0, although the JWS app
starts, the args[] array is empty I cannot immediately answer your question, I have my
own thread going, asking questions about JWS handling
of file associations for a sandboxed application.
http://forum.java.sun.com/thread.jspa?forumID=38&threadID=785224
As it is, I would appreciate a test result for OS X.
Does my app. also break on OS X under 1.5?
(you might need to see it 'work' under win to
answer that - it is quite quirky).
OTOH, the strategy I take with the sandboxed application,
might be the one to follow for OS X if you cannot get the
second argument.
Open a file chooser, pointing at "user.dir" (in the vague
hope that points in the right direction) and explain to
the user that between them double clicking the file,
and 'now' (about 20 ms. later, on most systems) the
information was 'lost'.

Similar Messages

  • File Associations Did Not Update and Cannot Be Changed To Photoshop CS6

    Changing a file association is a simple matter you either do it in Windows Explorer in the properties or just use the edit in command in bridge.
    Except that neither is working.
    Photoshop CS6 is not even showing up as an option in either Explorer or in Bridge but it is ironically working in Lightroom.
    So again before someone doesn't bother to read this: I know how to change file associations.  I know the normal steps and it should be easy.
    It is not working and it is a pain in the you know what.

    Yes I've been through it pretty thoroughly.
    It seems Photoshop failed to register itself when installed so now "maybe" if I redo all of the installations including Alien Skin, OnOne, DxO, etc it might work?
    This is really irritatingly buggy.
    It does not even show up as an option anywhere in Bridge presently that i can see.

  • Bridge CC file association default not working

    Greetings.
    I've recently upgraded to CC from CS6. Uninstalled and removed CS6 files properly (why have them on C:/ taking up space?).
    Ps, Ai, Id, all working properly (thank my lucky stars...), which are the three apps I use daily,... and Br, however, Bridge CC is acting up it seems. Screenshots for your pictorial review.
    Double-clicking on a JPG, PNG, TIFF, GIF image file within Bridge CC will result in,
    Right-clicking, selecting to "Open With", and selecting "Window Photo Viewer 6.1 (default)" will produce the same result.
    With Ps, Ai, and Id, double-clicking a '.psd', '.ai', and '.indd' will open in their respective app. However, when selecting to "Open With", and selecting either 'Photoshop' or 'Illustrator' will result in an errors (even tho' each app shows as default):
    I've checked the default settings for the respective file types involved, in Bridge CC preferences,
    —PNG, GIF, and TIF files are also associated to 'Windows Photo Viewer 6.1' as show below for JPG—.
    and Windows 7,
    It would appear that the file types are properly associated yet Bridge CC does not read/apply these settings.
    It proved useless to uninstalled/re-installed Bridge CC. Windows Photo Viewer works perfectly fine as default in Windows 7 browser.
    I've read that a solution could be to uninstall all CC apps, run some kind of cleaning process and re-install apps. I find solutions rather odd;  plus, it takes h-o-u-r-s to download/install each app.
    I'm stumped, not to mention quite annoyed. Any thoughts?
    Thank you!

    Thank you for your reply Curt Y, but I didn't foul anything; I followed standard procedures which I have umpteen times—prompts from the install/uninstall app which usually take place all on their own.
    I read post 20, to which you referred me, however, after reading it, it appears that you may have misunderstood my situation; I'll try again, for everyone's benefit as well.
    In Bridge CC:
    Ps files (.psd) defaults to Ps CC when double-clicked and open in the app—no problem.
    Id and Ai files also open to their respective default app—no problem either.
    HOWEVER, and most interestingly, if I should "Open With" and select either 'Photoshop' or 'Illustrator", to open a '.psd' or'.ai' file respectively, I would get the errors,
    While this is an issue I can work around it is not my main concern. My MAIN problem is opening JPG, PNG, GIF, BMP, and TIF files (thus far) in the Windows Photo Viewer (WPV), whose operation apparently is associated to the 'PhotoViewer.dll' file inside the Windows Photo Viewer folder.
    Outside of Bridge CC the WPV works perfectly.
    It is entirely absurd that one should have to launch an app (Ps, for example) every time one wants to simply view an image in a larger scale/window, such as in WPV.
    It is also possible that one would want to open any of the file types listed above in Ps, for example, but as of now the "Open With" as I've described is not working properly—this I could live with.
    In the end, having made the changes to the Ps string as described in "post 20", nothing has changed from my initial post.
    And where would one make the appropriate string corrections for Ai?
    I STILL cannot open JPG,PNG,TIF, GIF, and BMP files in Windows Photo Viewer from Bridge CC.
    Thanks again.

  • After removing adobe 7 .pdf file association is not pointing to 8 reader

    I have about 300 pc's with adobe 7 standard installed. we are removing it and moving everyone to reader 8 due to the recent virus problems. When i run a scripted uninstall "msiexec /x {AC76BA86-1033-0000-BA7E-100000000002} /qn" it removes the standard edition but the .pdf files are not redirected to adobe reader 8 which was already installed. i have found that the easy fix is to just open the 8 reader once and the association is created however with so many machines (all xp) i want to be able to just push a .reg to fix them all in one sweep. any one know what key i need to change?

    1. I assume you have some PDF documents you have been keeping a long time. Look at their modification date. Is it what you'd expect (years ago) or is it all the same, recent?
    2. Has a TXT file appeared in the same folder as the PDFs?

  • File Adapter Issue: Not functioning when used with BIC user modules

    Hi! ALL
    We have been experiencing issue with file adapter, when we SeeBurger BIC user modules in sender file - FTP communication channel.
    The regular FTP functionality is working fine if do not have BIC user modules defined under the module tab.However, when put in BIC user module parameters it is not picking up the file.
    Also, we do not see any error logs; even the communication channel monitoring does not show any error log....only show the polling interval success, without the file being picked up.
    This issue started appearing once we deployed our new sda file....as we changed our BIC mapping.
    We can try doing back to our previous sda file....to see it fixes the problem.
    But, before doing that ....we would like to know where the cause of this issue....Can you point us to any error logs we can find on the PI server.
    Your help is greatly appreciated!!
    Thank you,
    Patrick.

    If you configured your logging correctly you should find in the log folders
    ./applications/com.seeburger.jucon/
    ./applications/com.seeburger.bicxiadapter/
    Try to scan those for recent errors - if the no log files can be found you should check the defaultTrace.

  • Windows program file association settings not working correctly

    I recently found many application would not save to correct type. Some software icons would come out to a blank or white block, but those software actually there. For example, realrecorder is running, it would come out a white block on taskbar on bottom. 
    I tried use 'access and program default' in control panel, still not fix the issue. Ms word, and word pad also come out white blank icon.
    Any suggestions ?
     

    Hi,
    This issue can occur by corrupted icon cache. To fix the issue, please rebuild icon cache.
    1. Click the
    Start button, and click Computer .
    2. On the
    Tool bar, click Organize and choose Folder and Search Options .
    3. Click the
    View tab, and check to select the Show hidden files and folders option , and click
    OK .
    4. Then, enter the following directory:
    %USERPROFILE%\AppData\Local
    5. Find the
    IconCache.db file, and rename it as IconCache.db.old.
    6. Close the window, and restart the computer.
    Roger Lu
    TechNet Community Support

  • VLANs not passing thru trunk with 4404WLC

    APs get IP addresses, but VLANs do not work. Switches look ok with trunking, etc. The SSID works, I get good signal, but no IP, via DHCP or hard-coded. It did work at 1 time, but no longer.

    Just to get some stuff clear for LWAPP L3;
    As fas as i know the AP's do not need a trunk port in pricipal. The are connected to a switch port in access mode. The vlan assigned to this port should be the VLAN/subnet from which the AP's get their IP address.
    The WLC however must have trunked data ports. These data ports carry all the vlan's to the WLC.
    Right?

  • Lost file associations (Not the old version issue) Win 7 & CS5

    Something corrupted my installation of CS5 a month or so ago after it had been working correctly and I lost all the image file associations. Photoshop worked fine but only if I directly opened files from within.  Also all the other image packages were missing from the file association list in the Windows 7 file associations tool, not just Photoshop.   Using the Windows tool to find the programmes dot exe file and create an association also locked up at the select the right package phase.
    I have fixed this now and my reason for posting is that several previously suggested fixes in both the MS Windows fora and elsewhere on these Adobe forums were either very complicated requiring direct registry editing or didn't work.  It has taken me a while to find a work-around that worked, hence this post.
    1) Firstly - as is stated elesewhere the obvious answer of simply reinstalling Photoshop over the existing copy doesn't work!  Unfortunately it was a while before I found this out, with several time wasting retries of this as a fix attempt.
    2) Not saying this is guaranteed to work in every case but I ran a 3rd party free Registry Cleaner tool, this appears to have fixed the bug in the registry allowing the Windows 7 File Associations tool to work properly again.  Once that was fixed linking up each graphic type was simple.
    Reason for posting is I wasted lots of time thinking the issue must have been a legacy from my earlier instal of a trial version of Master Suite or the older Photoshop 7 being replaced even though my CS5 edition had been working Ok for some time. because this is what is given as the usual cause.  However I think in my case it was after loading and then deleting other graphics software, possibly Real Player, which had grabbed the associations and corruped registry settings somehow at uninstall.  It appears registry cleaner restored the corruption and allowed the standard Win 7 tool to work again.
    Hope this can help someone else.

    First, let me say thanks to John for posting his experience here.  I think that Adobe does a poor job of managing file associations, given that we do hear of a lot of folks who see them get fouled up due to doing normal things like uninstalling earlier versions.
    I'd like to ask, though:  Did you try using the Preferences - File Type Associations dialog in Bridge?
    Curt Y wrote:
    Not being a computer "geek" myself I personally can not say it is a bad thing to try
    A comment on "registry cleaners" in general:
    I am a career computer "geek", and yes, Curt's right:  Registry cleaners in general are a terrible idea.  There are a few that encompass some valuable functionality such as deletion of old files from TEMP folders, but that's something one can do on one's own as well.
    It's simply impossible for the programmer of a piece of software to know what information can be safely deleted from YOUR file system or YOUR Windows registry, which is a database. 
    Nor is it necessary to "clean" a registry regularly, as some say, to keep a system working well.  That's hype, propagated by the registry cleaner makers.  I use a system every day that's on the same installation of Windows 7 that first went in at the end of 2009.  It's stable and fast as ever.  I've even done several hardware upgrades and restored the same OS setup using system image backups just to keep the same fully configured, perfectly working system.
    Ever hear people claim they have to reinstall Windows every so often?  One of the reasons could well be that they've used a registry cleaner.
    -Noel

  • File associations not roamed using Remote Desktop Server 2012 R2 Standard

    Hello everyone,
    As the title mentions, some File Associations does not seems to roam on a RDS 2012 R2 server. We use the following configuration:
    Windows Server 2012 R2 Remote Desktop Server(s)
    Roaming Profiles to a user based network share
    Delete cached copies of Roaming profiles [Computer GPO]
    So there is no local stored profile after logoff. 
    Exclude directories in roaming profile [User GPO]
    We only exclude "$Recycle.Bin" for testing. So all other profile settings (Local, LocalLow, Roaming) should be roamed.
    With the above settings, some associations are, after logoff and logon not remembered. For example .pdf is always restored to MS Word even if Acrobat Reader is chosen as default program. 
    When we do not delete the cached copy of the Roaming profile [Computer GPO], the file associations are remembered after logoff and logon.
    We did a little of research:
    When changing the default application for PDF files to Acrorobat Reader, the setting for this user in the registry is:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\UserChoice
    Hash: BTWAFQFaLiw=
    ProgId: AcroExch.Document.11
    After logging off, the NTUSER.DAT for this users does contains the same settings. I guess the settings are successfully roamed to the shared roaming folder.
    But after login, the settings are set back to:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\UserChoice
    Hash: mj3iGjB82bU=
    ProgId: AppX86746z2101ayy2ygv3g96e4eqdf8r99j
    My suggestion is these settings are not restored in the cached roaming profile.
    Someone who recon this and knows if there is a solution for this issue?
    Using a Association Configuration File (DISM) with the Computer GPO Setting "Set a default association configuration file", we can set the default program for the users. But this is a global Computer GPO setting and not all users must have the same
    default programs. 
    Using this setting is no option for our environment.
    Hope Someone can help us.

    Hi,
    For this you can make one separate group for all that users and applied the policy setting which you want to setup. But as per me, windows uses the Local and LocalLow folders for application data that does not roam with the user. Usually this data is either
    machine specific or too large to roam.  Maybe your thought would be a workaround.
    More information.
    Deploy Roaming User Profiles
    https://technet.microsoft.com/en-us/library/jj649079.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • File association in Firefox ESR

    I'm using Ubuntu 12.04 and Firefox ESR 10.0.9 installed but the file association is not working. For example, the history window when the download request to open the folder nautilus does not start. Pdf files, jpg and others are not open with their applications.
    The 16.0.1 version of Firefox installed by default works perfectly.

    Try to delete the mimeTypes.rdf file in the Firefox Profile Folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    You can also try to reset Firefox:
    *https://support.mozilla.org/kb/Basic+Troubleshooting

  • Resetting file associations - won't take effect

    Just got a new MacBook for the wife - all of her previous work is saved in MS Office formats, and that is what she's used to working with, so I installed the Mac OS version of Office after uninstalling the demo MS Office that came on the MacBook. I've tried resetting the file associations using the "get info, open with, change all" sequence - I get a dialog box telling me that all files of this type will be opened with the specified application, I hit "continue," and it doesn't set any, not even the one that I had highlighted. If I don't select the "change all" option, the highlighted file opens with the selected application just fine, but if I select "change all," nothing gets changed.
    Any idea what's blocking this setting?
    Thanks!
    Scott

    Never mind - my first search of the archives didn't reveal the answer, but I refined the keywords and found it.

  • .sesx file association lost?

    This is a pesky one.  I recently upgraded from Audition CS5.5 to Audition 6 and uninstalled CS5.5.  Since I did that, however, the .sesx file association in my computer has been lost.  When I try to reassign .sesx to Audition, the computer defaults to Adobe Acrobat to attempt to open an .sesx file, even when I specifically navigate to the Audition folder and indicate Audition as the default program to open .sesx.
    I realize the first and most obvious step is to simply reinstall Audition CS6, but there were difficulties activating the software.  I was upgrading just Audition out of the entire Creative Suite CS5.5 package, as it was the only software I NEEDED to upgrade (for some reason Audition CS5.5 caused me nothing but problems, but CS6 is infinitely more stable on my system, and none of the other CS6 software had features that justified a $500 upgrade).  So I had to contact support and they had to give me a support code and all of these hoops had to be jumped through to install the new software.  I'd much rather avoid having to do all of that again.
    Is there a way to reassign the file association other than reinstalling?  And while I'm at it, if I DO reinstall, will THAT even solve the problem?

    Hey,
    it appears the application registration within the windows registry was corrupted, probably due to uninstalling a previous version of Audition.
    Fixing this should be easy:
    In Windows Registry (win key, type 'regedit', hit enter) navigate (left side of the window) to
    Computer\HKEY_CLASSES_ROOT\Applications and find your
    Adobe Audition CS6.exe named folder.
    Navigate under its name to the subfolder shell>open>command.
    Within command double click the default key (right side of the window) and check if the path to the audition executable is correct, fix it here if needed.
    Having installed into default location, the path should be "C:\Program Files (x86)\Adobe\Adobe Audition CS6\Adobe Audition CS6.exe" "%1"
    Hit okay (you're fine closing regedit now)
    Finally try and reassociate the file type as you normally would.
    Now, as the path to the exe is actually correct, it should show up in the list of programs (after having browsed for it) and everything should work fine, including icons etc.
    Make sure Audition is selected within the list (after browsing) before finally hitting okay.
    That btw, is how Acrobat or any other program got into play here, Acrobat simply happened to be at the top of that list (from associations before) and got selected because Audition wasn't actually added to the list (because of the broken path).
    If this does not work for you, maybe using a third party tool to have access to 'basic' windows functions like editing file associations, like really editing them, like.. you were able to back in XP.. unlike vista or 7.. oh well. err, you might want to try e.g. this one: http://defaultprogramseditor.com/
    Note to the Adobe devs:
    For me, the path should have been "C:\Program Files (x86)\Adobe\Adobe Audition CS6\Adobe Audition CS6.exe" but was "C:\Program Files (x86)\AdobeAdobe Audition CS6\Adobe Audition CS6.exe".
    Note the missing backslash ("\") after the Adobe folder within the 32bit programs folder. Smells like you're typical minor issue with the install/un-install business
    On the bigger picture, uninstalling older versions, should not cause file associations to get broken to begin with. I had this with all the CS apps, but in a different way, for apps other than Audition, like photoshop, premiere, etc.. it just deregistered the file extension but didn't break the exe path for them, so reassociating was easy, still.. a bug
    Note to Microsoft:
    If your OS can't find a registered executable, why not prompt the user for the path or at least let them know?! ^^
    Hope this helps,
    Cheers

  • No file association for PDF files

    I have installed Adobe Reader on my Nokia E70 (Series 60 3rd edition). I am able to open PDF files, provided they are very small ;-) directly from within Adobe Reader, but not via File Manager. Does anyone know how to set the file association of .PDF extension to open with Adobe Reader?
    Cheers
    -- Mike --

    >It worked for me but the solution was not an intuitive one. Seems like Adobe should work out this kink for future customers.
    The fact that you had a problem suggests that it's your system, not Adobe that is the root cause. A successful and undamaged installation WILL create the proper file associations, and will even use the correct version icon for older files (in Windows, though, only one version of the application -- the last one installed -- will be associated with the open command from Explorer or Bridge).
    Peter

  • Multiple LabView versions and file associations

    I know this is a Windows problem more than a LabView problem but...
    I have LV 8.21, 8.6, and 2009 installed and seemingly Lv 8.6 is the only version that is associated with .vi .lvprog, and the other LV files.
    Really makes it a P.I.A. when doubble clicking on a LV 2009 project file and LV 8.6 starts.
    I have tried changing the associations to the labview.exe in the Lv 2009 directory but it does not change the Windows file associations.
    Has anyone else delt with this and come up with a soultion?

    Here is my solution. (And, incidentally, the one point I DRIVE home to my co-wirers at work!)
    Never ever ever open a LabVIEW object from Windows explorer!  Always open them from the IDE. 
    Sea-Story time
    Once upon a time I migrated from LabVIEW 5.1 to 6.i followed almost immidiatly by 7.0 (finally a stable VISA API) and in 3 months we jumped to 7.1.  4 versions in 6-9 months with projects in each.  With 8 developers and 15 test stations all "synchronized" to a single SCC database.  We learned some painful lessons about version control.  After a few weeks of Windows choosing randomly what version of LabVIEW to launch each vi in we had pretty thoroughly corrupted the libraries on every machine.  Reuse Vic's from 5.1 recompiled to 7.0, vi's in 7.1 cross linked to sub vi's in the 6.i area etc.... NIGHTMARE!  We actually SHUT DOWN the lab for about 10 days while we reconstructed ALL of our code and re-assembled the SCC database from the ground up.
    At the risk of repeating myself- in a multiple version environment Never ever ever open a LabVIEW object from Windows explorer!  Always open them from the IDE. 
    In a single version environment - Never ever ever open a LabVIEW object from Windows explorer!  Always open them from the IDE. it will teach you bad habits the will hurt later.
    Jeff

  • LR 2.5 and file association

    Hi,
    wondering what type of file associations is changed during LR 2.5 installation if any.
    I know Adobe products takes it w/o having an option to change it later.
    sorry if my qus. is too stupid, just using XNVIEW and im not sure about migrating to LR yet and i dont like to hack my registry
    each time.
    thnx in advance

    As you mention registry I assume you are using Windows (not being a Mac user), if so, file associations do not need any reference to the registry.  Simple open a Windows Explorer window and select Tools| Folder Options| File Types and adjust anything you want to from there.
    In answer to your main point I have installed Lightroom about 8 times and it has never changed any associations as far as I can tell.

Maybe you are looking for

  • Spotlight index lost after each login

    Hello people, I've got a very confusing thing going on with Spotlight on my mac. After each login, Spotlight looses its index and I can't my files. I have tried solving this problem with the app IceClean, using "sudo mdutil -i on /", dragging and rem

  • Photoshop Elements 11 Download Question

    If I buy the Photoshop ELements 11 Download, meaning no hard copy is being sent to me in the mail, can I download it on my two computers? I own both a desktop and a laptop.

  • Standard SWCV not in SPROXY

    Hi Gurus, i am trying to get the SWCV ESA-ECC SE 604 into my ECC System. I already see a lot of other SWCV, Namespaces, Services, etc. in Sproxy e.g. IS-UT 604 with sap.com namespace and also other customer SWCV . I added SWCV ESA-ECC to Technical an

  • Am I able to transfer files from DropBox?

    I'm new to Adobe and I can't figure out how to transfer my files from DropBox.

  • Problems with WD software under Mountain Lion?

    HI I come from the Mavericks discussion, where someone wrote that WD software (for Western Digital hard drives) made not only problems under OS X 10.9 Mavericks (data loss!) but also under Mountain Lion. I'm using a WD My Book Studio II (2 x 1 TB as