Opening associated files...

I'm trying to associate files in windows with my application, so that a
user can double click the file and have it open in my app.
Currently Im doing this manually as a test. So basically I right click the file and select "Open With" and select my application.
But when I double click the files that are associated with the
application, how can I get the path to the .jar file that is actually
running? So far if I use new File(".") - it gives me the directory of
the file that I am opening... which causes problems for my app...

It does, but that's definitely strange.  Try showing all hidden files and folders on your Mac to see if that helps.
To do this, head to Applications -> Utilties -> Terminal and type:
defaults write com.apple.finder AppleShowAllFiles TRUE -> Press Enter
killall Finder -> Press Enter
Then navigate out to your iPod again via the Finder. Any luck now?
B-rock

Similar Messages

  • I cannot open a pdf file with aole-mail. I can open pdf files from windows explorer. I have associated pdf with adobe reader. My operating system is window

    I cannot open a pdf file with aol e-mail. I went to preferences in Adobe Reader but did not know what to enter for Incoming IMAP and outgoing SMTP. I can open pdf files from windows explorer as  I have associated .pdf files with adobe reader. My operating system is windows 7.
    When I try to open the pdf file within aol e-mail I get a message: 'Your security settings do not allow this file to be downloaded'.  I have not changed my security settings (Tools, Internet Options, security).

    Or http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • File Type Association fails when opening multiple files from Bridge to Premiere

    I'm running Vista 32 bit CS3 Bridge and Premiere.
    According to the Video workshop
    http://www.adobe.com/designcenter-archive/video_workshop/
    under Premiere > all 19 topics > Managing Media in Adobe Premiere Pro > at 02:46 it shows group selecting a bunch of quicktime files using Edit > Select all, then File > Open With ...the drop down shows Premiere.
    Mine only show Premiere if a single file is selected. If I multiple select, it only shows Quicktime Player 7.6.
    I've checked the file type association in preferences of Bridge to open these files in Premiere but it still only sees Premiere if a single file is selected.
    I've upgraded Bridge to 2.1.1.9 and set to run as Administrator but to no avail.
    Any ideas?

    Import has always worked fine. this is not the issue.
    I have now changed the file association in Vista, re-started Premiere and Bridge and then after having started just Premiere chose File > Browse and the selected all the .mov files and selected Open With. Hurrah! Premiere is now listed!
    However, If I continue the focus changes to Premiere but a warning appears "This file path does not exist on disk at this location".
    Nothing is imported. Unlike the video workshop mentioned above.
    If however, I chose Open and not Open with then the files are imported.
    Seems to be a bug with Open with with more than one file chosen. If a single file is chosen and Open With is applied then the focus changes to Premiere but no file is imported.
    I have seen the exact same problem in another discusion "Re: Bridge CS3: Not importing clips into Premiere CS3" (see the More Like This panel on the rightside of this window)

  • I need to open a file with an associated programm.

    I need to open a file with an associated programm.
    I'm looking for two solutions:
    1. for Linux/Solaris/Unix/...
    2. for Windows 95/98/Nt/2000
    For Windows I have done this with command line
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + uSavePath);
    but it doesn't work on windows2000. We need an universal solution.
    For linux
    Process p = Runtime.getRuntime().exec("netscape openURL " + uSavePath);
    But may be anybody know better solution?

    You are right. For unix better solution is that my program to care about all association itself. As I undestend now it's a common solution for unix applications.
    But for windows it will be ugly enough. I've found another way for windows
    Win2000/NT: "cmd /C start filename /B"
    other Wins: start filename
    for linux I've stopped at doing this via Netscape.
    May be in future I'll make my property file.
    start filename - on Win95(may be 98/ME) returns -1 if file not assotiated with a programm, and doesn't shows openWith dialog. It solved using something like "rundll32 shell32, OpenWith filename"
    It's all for those how will solve this problem in future.

  • TS2776 Outlook cannot open the file because it is not associated with the default identity.

    Outlook cannot open the file because it is not associated with the default identity.

    I've had the same problem. Even though you check the box to save it as Keynote '08, it does not open in ')8 (I get the same message)...you need to reopen it in '09.
    I have even changed the name of the file in '08 and eventually get the same message.
    I believe that once you open it in '09, you're committed to that.
    Let me know if you have better luck.

  • Double clicking file (.pdf) will not open associated App (Acrobat)

    Hi All,
    I am having a problem with opening .pdf files in that double clicking does not open the Acrobat Application.
    • This just started happening about a month ago.
    • Once I open the app manually, double clicking the file works fine
    • I have associated .pdf files with 'Adobe Acrobat Pro.app' both through the Get Info 'Change All' button as well as trying the Open With 'Always Open With' method.
    • I have associated .pdf files with 'Preview' and this works fine in that double clicking a .pdf file open within Preview at any time including when the app is not initially running.
    • I have repaired Disk Permissions several times
    • I have upgraded to CS4 including a new version of Acrobat during the period that I have been having this problem, and the same issue has remained (ie so happens with Acrobat 8 & Acrobat 9)
    Does anyone have any suggestions? I can get by with leaving Acrobat open all the time, but would prefer to keep apps closed as much as possible.
    Regards,
    Ross

    For some reason those associations are corrupted. Try clearing out the Launch Services caches, then reassign it to the correct app and let us know. Launch /Utilities/Terminal and copy & paste this at the command line to rebuild LaunchServices:
    Code:
    <pre class="alt2" style="margin:0px; padding:3px; border:1px inset; width:640px; height:34px; overflow:auto">/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user</pre>
    Then press return. Wait until terminal returns to the command line. Quit Terminal. After that, log out and back in or restart. Let us know
    -mj

  • Open a file with its defualt associated application

    is there any way to open any file with its defualt associated application from a java program ?
    Example:
    In Windows I have a file example.txt and, from a java program, I would like opening it by the defualt associated application Notepad.
    Thx

    Take a look at this thread:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=161228

  • Externally opening a file with the program its associated with

    Basically I'm looking to simulate what would happen if you double clicked on something in a windows explorer window. I want to have the operating system open a file with the application that as associated with it.
    how do I do it?

    Have you considered the portability issue?
    Win - Associate by editable user preferences
    Mac - Associate to creation program
    Unix/Dos - Explicitly associate program at command
    Rather than just using exec, you could look into something encapsulated to set which program to use so you could use on other system.

  • Opening a file with an associated application

    Ok, I have a project where I have to open a file or files
    with the associated application on a local system. I have tried the
    "open" command in lingo, the "ApplicationXtra.x32" xtra, "BuddyAPI"
    xtra and the "FileXtra4" xtra. Each will open the application but
    none will open the file path and name sent in the argument;
    assuming any of the folders in the path or the filename itself has
    spaces in it.
    Here is an example of the code used for the lingo "open"
    command:
    open "E:\Working\PlotViews for Cleveland.dwg" with
    "E:\Program Files\ACAD2000\acad.exe"
    Here is an example of the code used for the
    "ApplicationXtra.x32":
    RunApp = new(xtra "ApplicationXtra")
    RunApp.RunApp("E:\Program
    Files\ACAD2000\acad.exe","E:\Working\PlotViewsforCleveland.dwg")
    Here is an example of the code used for the "BuddyAPI":
    ok = baShell( "open", "E:\Program Files\ACAD2000\acad.exe",
    "E:\Working\PlotViews for Cleveland.dwg" , "E:\Working\", "normal"
    And here is an example of the code used for the "FileXtra4":
    FX = new xtra("FileXtra4")
    FX.fx_FileRunApp("E:\Program Files\ACAD2000\acad.exe
    E:\Working\PlotViews for Cleveland.dwg")
    All of these crap out when there is a space anywhere in the
    path or filename. Can anyone point me in the right direction?
    Thanks for the help.

    Well, to anyone who cares....I used the ShortFileName
    function from BuddyAPI and BAM it works!

  • FMv7, Open With/File Association

    Installed FMv9 after installing FMv7.
    On file server, v7 files now show v9 Icon.
    When doubleclicking v7 files, they open in v9.
    When right clicking v7 file, to Open With, v7 is not listed as an option. If I Browse to v7.exe and select it, the Open With dialog still does not show v7.
    We have to abort Open With, start FMv7, and then drag v7 file onto FM program window. Or, in FMv7 program, do File Menu > Open and navigate to v7 file.
    What happened to the File Association to FM v7? And why can we not open v7 files via Open With?
    Thanks,
    Dave

    Sounds like standard Windows file associations. You can only have one file type ".fm" associated with an EXE. You could re-associate ".fm" with the FM7 EXE, but then you'd have the same problem but the other way around. There's no easy way for the OS to know if a file is an FM7 or FM9 file (unless you gave them special file extensions (".fm7" and ".fm9") and tweaked the registry a bit. I assume that the OpenWith settings got overwritten by the FM9 installer. In theory, you could probably mess with things to get FM7 added back in. Might be easier to add FM7 to the "SendTo" context menu.
    I have many versions of FM installed on the same OS. I deal with this by running the FM version first, then drag and drop the file from Windows Explorer onto the FM application window (the title bar if a document is already open). Perhaps not as convenient, but the options are not ideal.
    …scott

  • How to open sharepoint files in edit mode using associated link?

    Hi All,
    We are trying to use the URL links available through SSM to open documents we hold on SharePoint. These will be the action plans for the risks we are entering as KPIs. The aim is to established a one-to-one link between the risk KPI and the risk action plan as this is a fundamental reason behind using SSM for Risk.
    However, when we enter the SharePoint URL into the SSM admin screen, clicking the link from SSM UI opens up the file as an internet explorer page which can not be edited and saved back to SharePoint. We did find a way to get through My Network Places to over write the file, but this only works if you have previously opened and edited and saved the file from SharePoint and requires lots of navigation by the user and is therefore not an appropriate solution.
    Is there any way we this can be achieve? Appreciate your replies. Thanks in advance.
    Regards,
    David

    Hi Bob,
    Thanks for your reply. What I meant was when we put the UNC into SSM as a link in the URL box, SSM does not use the address it is given, instead it adds a http:// back in front and once again fails when opening the file in sharepoint.
    For example:
    SharePoint folder view used in test:
    http://wccportal/resources/performance/risk/Risk%20Action%20Plans/Forms/AllItems.aspx?RootFolder=%2fresources%2fperformance%2frisk%2fRisk%20Action%20Plans%2fDOR&FolderCTID=&View=%7b84123F22%2d74F2%2d41B9%2d918C%2dFF23DAE35EB3%7d
    Excel UNC link to folder
    wccportal\resources\performance\risk\riskactionplans\DOR
    SSM UNC Link - SSM changes the address to include http:// and also removes other \ breaks and adds in numbers and symbols.
    Is there a way to stop SSM converting the local address back into a web address?
    Thanks,
    David

  • Want to always open torrent files with my torrent client but I do not see .torrent as a file association in Firefox

    using Tixati as my default torrent client and when I open a torrent file it automatically says save and I select open and the box where it says always open this type of file is greyed out. I looked in the extensions on Firefox but .torrent is not an extension. How do I make Firefox always open torrent files? Any help would be appreciated. Thanks in advance

    Type '''about:preferences#applications'''<enter> in the address bar.
    Now follow the picture.

  • "Open With" File Association

    How do I associate specific file types with a specifc application (i.e. all .mp3 files to "open with" Quicktime)? I tried opening a file and selecting the "Always Open With" box, but this only affects that one file, not every file of it's type.
    Thanks,
    -Adam

    Under the option to change the application in Get Info there is the option to "change all" to open all documents like this one..
    S.

  • Can Not Open ASPX Files In Dreamweaver CC ?

    I just upgraded from Dreamweaver CS6 to Dreamweaver CC and now can no longer double click to open ASPX files.
    Is this something that was removed from Dreamweaver CC?
    Or, is there something I need to install or edit in order for it to work again?
    I tried adding it to the Extensions.txt file, but doesn't seem to be working unless I entered it into incorrectly.
    My Extensions.txt File...
    <<
    ASP,ASPX,HTM,HTML,SHTM,SHTML,XHTML,STM,SSI,JS,JSON,APPCACHE,XML,XSL,XSD,DTD,RSS,RDF,LBI,DW T,CONFIG,CSS,SCSS,LESS,SASS,TLD,TXT,PHP,PHP3,PHP4,PHP5,PHP-DIST,PHTML,TPL,INC,SQL,SVG,PRO: All Documents
    ASP,ASPX
    HTM,HTML,HTA,HTC,XHTML:HTML Documents
    SHTM,SHTML,STM,SSI,INC:Server-Side Includes
    JS,JSON:JavaScript Documents
    XML,DTD,XSD,XSL,XSLT,RSS,RDF:XML Files
    LBI:Library Files
    DWT:Template Files
    CSS,SCSS,LESS,SASS:Style Sheets
    APPCACHE:Manifest
    HTACCESS:Directory Configuration File
    TXT:Text Files
    PHP,PHP3,PHP4,PHP5,TPL,PHP-DIST,PHTML:PHP Files
    TLD:Tag Library Descriptor Files
    SQL:SQL Files
    VTM,VTML:VTML Files
    SVG:Scalable Vector Graphics Files
    PRO:Adobe Proto Files
    >>
    Any help or direction would be greatly appreciated.

    You can apply the default file association in windows. Follow http://windows.microsoft.com/en-in/windows-vista/change-which-programs-windows-uses-by-def ault
    Also, you can try adding it in DW preferences.
    1) Go to Preferences < File Types/Editors.
    2) Click on the "+" icon on left Column and add the extension you need.
    3)  Click on the "+" icon on right column and add the Editor as Dreamweaver. Locate the Dreamweaver.exe file installed at "C:\Program Files (x86)\Adobe\Adobe Dreamweaver CC".
    4) Click on Make Primary Button and Click OK.
    5) Close DW and re-launch.
    I hope this helps
    Thanks
    Bhawna Gupta

  • Bridge will not Open a File in Photoshop

    Yesterday my Bridge stopped opening files. I have to go to the file folder once I know the file name and open it the old fashioned way. Anyone know if there is a secret code to get it to open files again?
    This morning I went to the downloads and downloaded the latest Bridge update, but it did not debug it.
    Even when you go to Bridge> File> Open, nothing happens.
    Any help would be appreciated.
    Jackie Olson
    [email protected]
    www.kenolsonphoto.com

    I have the same problem. I had been using a trial version of Photoshop CS2 and Bridge worked fine when double clicking it opened files. I then upgraded to PS2 from Ver 3.0 I am a switcher. I installed my new Photoshop CS2 with phone support from Adobe. They had me delete ps2 trial version. I have also running a copy of Adobe Creative Suite CS student version. It still works when double clicking browser. I have not changed any Mac settings. I am using a G5 with 1 gigabytes RAM.
    After using I noted immediately , that Bridge didn't resemble what I had seen in the trial version. It also did not open my files from Bridge to Photoshop when double clicking.
    I called Adobe today. He had me delete all my settings for PS2 and shift command opt right after double clicking Bridge to reset something or other. He would not wait to see if it worked. he told me my problem had to do with file associations and it was beyond free tech suport. get off phone or give him a credit card. well. it still preforms as before. I cannot open a file from Bridge unless i use the finder and open with...and this only works for the one individual file. I can see no preference setting in finder nor in Bridge relating to assigning Bridge to open to ps2 upon double clicking. He told me...when i double click my Mac doesn't know if I am trying to view or edit. So it doesn't go to PS2. For god sake, I bought PS2 to edit of course if I am in it and click the Bridge icon or go to Bridge from the Dock I am intending to go to PS2. I have no other app to go to in the CS2 arena.
    aside; how can i get from ps2 to any of my Creative Suite apps, say InDesign???

Maybe you are looking for

  • My iPhone 3GS & iPad 4 wont connect to my Macbook

    Hello, my name is Dave. I have two problems with Apple products. I've been trying to upload music to my iPhone 3GS and iPad from my Macbook.      - iPhone 3GS problem           I have a 32GB iPhone 3GS with 6.1.6. I want to upload music to my phone,

  • Nokia N70 does not synchronize my outlook once off...

    My Nokia N70 does not synchronize my outlook once off appointments but only reoccurring ones with Windows 7 as operating system & MS Office 2007 using PC Suite version 7.1.40.1 Why it was working before with older PC Suites?

  • IWeb SEO Tool after iDisk is Gone

    Hello, I used iWeb SEO Tool to add metadata to my site for better search engine identification with Google Analytics using Text Wrangler also.  The iWeb SEO Tool uses idisk to find the website and add the code.  I recently got hosting from HostExcell

  • Vendor Debit Memo

    Hi Guys I have a scenario - where after MIRO and invoicing has happened, we do a return delivery to the vendor through MIGO {A02 return delivery, R02 material document}.... My question is, this does not impact the open AP postings right? and to make

  • Re: HELP!! JTextField.getText() is not working

    I have the same problem for JDK 1.3. Did you finally figure out the problem?