Mac - navigateToURL opens default application for .html files instead of browser

On Mac I have Adobe AIR version <string>3.1.0.4880</string> and I have selected TextMate for .html file as default application. With this configuration when I call navigateToURL in my app to open browser, it opens TextMate instead of default browser.
Following is the simple code to open URL:
var urlRequest:URLRequest = new URLRequest(url);
navigateToURL(urlRequest, "_blank");
Is this known issue? Any workaround for this?
Thanks,

Since you've remapped what your default response to .html files are, you can't use navigateToURL() or openWithDefaultApplication().
So it looks like you'll need to use the NativeProcess class:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativePro cess.html

Similar Messages

  • Can you set a second "Open with:" application for a file?

    Hi all,
    I was wondering if something like this exists for OS X Lion or greater: you can set a default application to open a type of file, say Safari for all .html files, but can you set a second default application for a file?
    I usually open files using command + o or command + down arrow from the Finder and I've often thought how good it would be to hit an alternate keyboard shortcut to open the selected file in a secondary default application.
    For example, if I'm making a web page and have the .html selected in the finder I can hit command + o (or command + down arrow) to open it in Safari and if the file isn't open in my editor and is selected in the Finder I can hit, say command + option + o (or command + option + down arrow) to open the .html file in my editor.
    Does anyone know if this can be achieved in OS X Lion or greater?
    Any advice is greatly appreciated.
    Thanks.

    Hi all,
    If anyone's interested in a partial solution, I've rigged up the following.
    I ended up using an Automator action coupled with Spark to capture a keyboard key combination. Spark: http://www.shadowlab.org/Software/spark
    I've used Spark before with good results, and although it's from 2008 it still works on Lion.
    I created an Automator action that does two things:
    gets the selected Finder items
    opens finder items in the text editor I'm using.
    I then saved the workflow as an application so that Spark could run it.
    I've set up a keyboard shortcut that Spark picks up and calls my Automator workflow. It all seems to work nicely.
    So, I've created a specific "open selected file with <text editor>" keyboard shortcut that should do for the time being.

  • How to set default value for html:file in struts

    hi
                   i am working on an application using struts situation is i am using the
    <html:file property="" /> to allow the user to upload file. but i need that a default file should be set so that even if the user donot click browse ie                the user wish to upload that default file the default file get uploaded on page submition.     Is it possible to set any default value for html:file ...if yes plz provide any suggestion or links how to achieve this.     thanks in advance

    www.google.com?q=STRUTS+DOCUMENTATION

  • How do you make console apps the default application for a file type?

    I have a console movie player, mplayer, that I like a lot. I've compiled it from source on my intel core2 macbook pro and it works fine. There is no gui, but to play movie files you open up a terminal and type the command mplayer /path/to/file. I would like mplayer to play a movie file automatically when I double click on the file, but I can't seem to figure out how to do it. I tried setting it in the file info dialogue, but when I go to the path of the binary I want, it is not selected. How can I set a console app as my default application for my file type?

    there is a GUI mplayer for OS X. why don't you use it instead of the command line one?
    if you insist on using the command line mplayer then the only way to do this is to put a GUI wrapper on it. this can be done with automator or apple script for example. but really, why don't you just use the GUI mplayer?

  • Open default application based on file extension

    I'm developing a small AppleScript that opens URLs of format "myapp:http://domain.com/data/filename.ext"
    where 'myapp' is actually the applescript registered to be launched using "CFBundleURLName"
    I wonder how to launch/open the default application registered for ".ext" file extension.
    I found how to determine the default application based on a Real file:
    default application of (info for POSIX file "/path/filename.ext")
    Is it possible to determine the app based only on extension (i.e. the file itself doesn't exists yet).
    I found that there is a function "LSGetApplicationForInfo" (https://developer.apple.com/library/mac/documentation/Carbon/reference/LaunchSer vicesReference/Reference/reference.html)
    but have no idea how it can be used in applescript.
    Thanks

    set f to choose file
    tell application "System Events" to set finfo to the properties of (f as alias)
    set fileID to type identifier of finfo
    if fileID is "com.apple.iwork.pages.pages" then
              set ftype to "Pages"
    else if fileID is "com.microsoft.word.doc" then
              set ftype to "MS Word"
    else if fileID is "com.adobe.pdf" then
              set ftype to "Preview"
    else
              set ftype to "Unknown"
    end if
    display dialog "App is " & ftype
    To determine the file type, use:
    set f to choose file
    tell application "System Events" to set finfo to the properties of (f as alias)
    set fileID to type identifier of finfo
    display dialog fileID

  • How to set my default application for illustrator files (windows)

    I have both illustrator CS3 and CS5 on my windows 7 machine. I want to keep both versions as CS3 is better for converting SVG files.
    Windows has CS3 as the default application when opeing .svg files. but I want to change this to CS5. I have tried changing the default program in the normal way,
         right click - open with  - choose default program...
    only CS3 is listed in the programs, so I navigate to CS5
         C:\Program Files (x86)\Adobe\Adobe Illustrator CS5.1\Support Files\Contents\Windows\illustrator.exe
    but when I click ok, CS5 isn't added to the program list.
    I have managed to change the default program for .ai and .eps files in this way and its workeds, but not with.svg files.
    Any ideas?

    This method still doen't work, it has the same problem as my original post.Bbut I did find a utiliy that works, here is the link in case anyone has the same problem.
    http://defaultprogramseditor.com/

  • Program not showing in open with context for HTML files

    I have a windows 8.1 64 Pro PC with a program called 1stPage.exe installed.
    When I right click a .txt file I get 'Edit with 1st Page' in the context menu and it also shows in the open
    with menu.
    However HTML files do not show these options. I have checked the registry and it would appear that the program
    is set up on the open with menu exactly the same for both file types.
    So it would appear that something is blocking 1stPage from showing against HTML files but I can't figure out
    what I need to change.
    Cheers
    Baz

    OK we have further developments
    I tried installing this program on a Windows 7 32bit machine and I get exactly the same issue.
    I tried it with both IE and chrome as default browsers and I tried changing default html editor.
    I therefore suspect this when this program installs it is not setting all the registry entries windows 7/8
    require.
    I know it's an old program but I have been using it for years and see no reason to change.
    So I need help in understanding what I need to do to get windows 7/8 to display the context menu entry correctly

  • Default application for media files reverts with a fresh boot

    I want my media files to open with VLC as the default application. I do the whole work-around: I select the file, I go to "Get Info," I choose "Open with: VLC" and I select "Change All" to use the application to open all files of the same type. That all works. And it works with other files of the same type.
    If I restart my computer, or if I shut it down and start it up again, Quicktime is the default again. I have been able to permanently set VLC by using "Open with"- "Other" - and then selecting "Always Open With." But I don't think this is a great solution.
    Is there any way to make "Change All" stick, even after a fresh boot?

    Rebuild the LaunchServices database by running this one-line command in the Terminal (/Applications/Utilities/)—copy & paste:
    */System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user*
    Then, try the Get Info->select Open with VLC, click the Change all button, and restart.

  • How do I change the default "open with" application for certain files??  I've tried EVERYTHING!!

    Hi guys!
    PLEASE PLEASE PLEASE someone help me!!!  I have been trying for ages to change this!!  It is SO frustrating!!  I recently bought a new MacBook Pro 13" after my old one (2009) got stolen.  Went from Snow Leopard to 10.8.2, restored all my apps and files etc (thanks goodness I backed up).
    NOW I have a problem!  All my .xls and .doc files open up with Pages and Numbers, and not OpenOffice.  NO MATTER WHAT I DO!!!
    The basic "change open with" "always use this application" story doesn't work.  It always reverts back to Pages or Numbers.  I also tried a Terminal Command I found on this forum from way back in 2010.  But that doesn't work either.  I also tried a .pst deletion but I don't have a .com.apple.launches.pst file!
    PLEASE GUYS.  PLEASE!  SOMEONE HELP ME HERE!!!!!!!!!!  It's driving me nuts!!!!!  LIKE NUTS!!!!!!!

    Here is what I would do:
    Update OpenOffice to the latest Mac OS X version for improved compatibiity with Mountain Lion.
    Boot into Safe Mode to clear caches, verify/repair permissions, and rebuild font database, etc.
    Reboot, holding down the shift key until you see a progress bar on the grey boot screen.
    At the login prompt, and before you click the right arrow button to login, press and hold shift again.
    Reboot normally.
    Now follow sig's advice, and specify OpenOffice as the can opener for Word and Excel files.
    If OpenOffice installs into a /Applications folder as individual writer, and sheet applications, then use these names respectively for Word and Excel files.
    LibreOffice (what I use) only offers the LibreOffice application choice.

  • Default application for .exe file

    Can someone please tell me what the default (parent) application is to open .exe files? I changed all in "get info" to migration asst. and now I'm lost.
    Thanks in advance for any assisstance.

    An .exe file is a Windows program. It will not run directly on a Mac. Depending on if your iMac is an Intel based model or not, you would either need to install Windows via a Boot Camp partition (which would require Leopard and an Intel Mac), or for a PowerPC Mac, your only choice is the very slow Virtual PC, which Microsoft stopped development on basically as soon as Intel based Macs were introduced by Apple.
    The only exception is if the .exe file is a self extracting .zip archive. In which case Stuffit Expander can open the contents.

  • How do I set a unix executable file as a default application for a file type?

    I have a bunch of files all with the same extension, abc. I compiled a program, xyz, from source (using MacPorts) to run through these files. Everything works great. The program is in /usr/local/bin/
    From a terminal window:
    /usr/local/bin/xyz ./somefile.abc
    How do I get xyz to launch .abc files from Finder by double clicking on them? If I "Get Info" for any .abc file, and go to the "Open with:" section, my program xyz is not there. If I click on "Other...", xyz is nowhere to be found and /usr/local/bin is not navigable.
    How do I get xyz in the Applications list?

    Platypus was exactly what I was looking for. To those who are interested:
    The script type I used was Perl.
    Create a new script:
    #!/usr/bin/perl
    system("/usr/local/bin/xyz '@ARGV[0]'");
    Make sure to Accept dropped items.
    I also changed the Output to "None", unchecked "Remain running after initial execution", and checked "Run in background".
    Thanks so much!

  • Using Pages as default application for .doc files

    When I double-click .doc files, finder insists on using the MS Word for opening the files.
    The only trouble is that I dont have Office anymore. The trial expired (good), and I have assosiated the file in finder to "always open with pages"
    Still.. after a little while.. the old bugger is back... cant open error 10066 (or something similar).. and the assosiation to Pages is forgotten...
    This is definitivly feeding my paranoia...
    I hope I am doing something wrong...

    You should also consider uninstalling the Office trial. There should be an Office test run folder in HD > Applications. In there is an uninstaller. It may give an error message that there is nothing to uninstall if you have never run one of the Office applications. You should be able to just drag the Office folder to the Trash if this is the case.
    Peggy

  • Default application for opening a docx attachment

    Help! I'm unable to open a received attachment. it is a docx file. My computer tells me that there isn't a default application to open this file. Can anyone give me a step by step to set up a default???

    Welcome to the forums!
    The default application for that file is Microsoft Word 2008.
    Mac users using Word 2004 who receive a Word 2008 for Mac, (or Word 2007 for Windows) document, will not be albe to read this without having the Open XML Converter installed, which can be downloaded from Microsoft.
    Go to this page:
    http://www.microsoft.com/mac/downloads.mspx
    and click on the right under Most Popular, 'Open XML File Format Converter for Mac 1.0'
    This opens a window at the bottom of the page. Scroll that to the bottom and click on English.dmg, and it will download for you as a disk image, which can be installed in the usual way.
    After installation you can open and read .xml formatted Word 2008 documents in Word 2004.

  • How can I change the default application for a content type?

    Running a version of Linux, the default application for PDF files is "Use Document Viewer (default)", which appears to be /usr/bin/evince. I'd much prefer to use /usr/bin/okular; how can I change the default. This question is NOT about how to change the function that is automatically applied when I access a link, in this case "Preview in Firefox", but rather to the default application that I can select when I download a file being viewed in Firefox's previewer.

    This is real progress, a solution to the problem as posted. The command:
    xdg-mime default okularApplication_pdf.desktop application/pdf
    makes okular the default.
    However when I added okular to the choices for applications in:
    * Edit>Preferences>Applications>PDF
    the popup box that appears when I click Download on the preview page changed. The pulldown menu that appears next to "Open with" used to have 3 entries:
    # Document Viewer (default)
    # Acroread
    # Other
    Now it has only 2:
    # Okular (Default)
    # Other
    I'd like it to read
    # Okular (Default)
    # Acroread
    # Other
    How can I control the entries in this pulldown list?
    Also, how can I make the default choice in the popup box be
    * Open With <whatever> , rather than
    * Save File ?

  • ITunes doesn't recognise iPod as the default player for audio files.

    A few weeks ago my husband completely re-installed our laptop, without properly looking at how to backup my iPod touch. Everything was lost and I have had to start again, however the system still comes up with this message each time I plug the iPod in:
    iTunes has detected this is not the default player for audio files. Would you like to go to the Default Program Control Panel to fix this.
    I go to the Control Panel, but have no idea what to do.
    Can anyone please help me?
    I have not upgraded to version (4.0)
    Thanks in advance.

    Hello Geordie81,
    And welcome to Apple Discussions!
    Are you sure it wasn't referring to making iTunes the default application for audio files as described in this Apple support document? Worth a shot anyways.
    [iTunes for Windows: How to make iTunes the default application for music and audio files in Windows Vista and Windows 7|http://support.apple.com/kb/HT3202]
    B-rock

Maybe you are looking for

  • Need Svet's Help! MSI GT70 492-US

    I recently sent my laptop into a repair center (Non msi to my mistake) where the person replaced the motherboard with a new one. Upon replacing the motherboard the repairman also wanted me to pay for a new keyboard, stating that the keyboard was acti

  • Unable to renew the SAP NetWeaver ABAP 7.02 Trial Version license

    Greetings, My license for SAP NetWeaver  ABAP  7.02 Trial Version has expired and I was trying to renew the license the other day. I was able to install the new license but, unfortunately, I were not able to delete the old licence not activate the ne

  • How i can write a plug in for ai cs6 in c# for import/export of web type document

    can i write a plug in c#(or any other language) for import/export  a screen of the adobe illustrator cs6 in html (or any other format) if document of web type.

  • Satellite M30-154 - no color on TV

    Connected a TV by s-video-to-scart-cable. Image is perfect but in B/W, no color. Tried to find any settings in the display drivers but until now nothing brought the color back in the image. (tv is fine) In the settings there is a possibility to choos

  • Problem with sender name CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

    Hi All , I am using below function module to send a mail to external email Id's  , Everything is working perfectly  . But  in the sender address I have passed text as 'infomation '  , In email which i am recieving sender address is like text and '@xy