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!

Similar Messages

  • 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?

  • 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 ?

  • 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/

  • How to open a file in the default application for it directly from QuickLook?

    Is there a way to issue an Open command straight from QuickLook?
    Problem:
    I have a directory containing symlinks to the PDF files I usually refer to. I cannot copy the files locally and I must use symlinks.
    When I need to open one of the files, I can't rely on Finder icon previews as these do not show for symlinks (I think that's absurd, don't you? Is there any reason why they would not?)
    Not knowing how to pick the file I am interested in, I select them all and OPTION+SPACE QuickLook them. Immediately following OPTION+SPACE I press COMMAND+ENTER and finally see them all tiled across the screen (notice: COMMAND+ENTER is not bound in Finder as far as I can see, why not allow users to press that directly?)
    Here's the problem:
    Once I choose the file I want, with the mouse of the arrow keys, I don't see how I could open just that file in the owning application (say: Adobe Reader).
    That, to me, is dumbfounding. COMMAND+O opens ALL files I selected to begin with but I think QuickLook should allow for opening the file currently being previewed with an UI element or a keystroke, shouldn't it?
    It is so strange that it almost can't be, maybe I am just missing the obvious... in that case I apologise.  Feel free to report this to Apple if you think they can work on this.
    For the record, it's the 29th of Aug 2012 and I am on 10.6.8.

    Small update.
    I created a database with a western european characterset We8MSWIn1252
    If I use utl_file to write out the code on the database server it gets produced correctly in Ascii format with the accented charcacters.
    As soon as I try and write out the code using owa_util.Mime_header and htp.p the code is written in UTF8 format.
    I did try and write out the header specifying a western european characterset but it seems that if it encounters an accented character it automatically switches to utf-8 mode. If there are no accented charcters the file is produced in ascii format.
    Really stumped on this one.

  • 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.

  • 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

  • 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.

  • 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

  • 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.

  • [SOLVED] Unable to set default application to open files

    Hello,
    Whenever I try to set a default application for a file type (an avi for example) by right-clicking the file in Nautilus and choosing Open with Other Application, I can select the application (in this case VLC), check the Remember this Application checkbox  and click Open, I always get the below message:
    Could not set application as the default: Can't create user application configuration folder /root/.local/share/applications: Permission denied
    I'm not logged in as root (confirmed with "whoami") so I'm not sure why it's trying to access the root home folder.
    I'm thinking this is simply a misconfigured path statement (forgive the Windows terminology) but I'm not sure where to start looking.  Any help would be most appreciated.
    Thanks!
    Beta
    Last edited by betawind (2010-07-09 00:10:58)

    Thanks for the reply ngoonee! 
    The situation has already changed a bit.  Still being in Windows mode, I decided to try a reboot.  After rebooting I no longer get the error I was before (I wonder if it had something to do with logging in initially as root then su'ing to my user account) but the association with vlc just isn't sticking.
    I noticed though that now when I right-click on a video file I get the option to "Open with Movie Player" as well as "Open with VLC media player" (which does do what it's supposed to), which wasn't there before.  For grins I went and set the preferred multimedia app to VLC through System > Preferences > Preferred Applications, but that didn't help.
    Is there a place these preferences are stored that I might take a peek at?
    Last edited by betawind (2010-07-09 00:04:56)

  • 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

  • Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?

    Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?
    So i have had a itunes set up on my old PC, bought a NAS and copied the folders over to the NAS, i did this incorrectly and so then even when i told the old PC to use that folder it saw all the songs but wasnt able to play the songs as it was looking in the incorrect place.
    So now i want my Mac as well as my PC and others to all use the music, videos etc on the NAS they are in itunes friendly folders (as they were compiled this way by the itunes on the old PC.
    When i tell the mac to use the itunes library.itl file it sees the song list (about 100gb) but cant see any songs, so i have removed this file to another location for now with the hope to set up a new file and then get it to see the songs on the folder from the NAS.
    Can someone tell me how to do this for all the Mac's and PC's on my network as i really want one master library that all use and add too.
    Thanks for your help in advance.

    I have the same question but I am using two pc's

  • 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 I set itunes to be my default player for every file that I have (VLC is my default player now)

    How do I set itunes to be my default player for every file that I have (VLC is my default player now)

    Mac OS X: Double-Clicking a File Opens the Wrong Application - http://support.apple.com/kb/TS2291
    -= Changing the application used to open all files of a certain kind (written with reference to OSX 10.4 but may not have changed) =-
    1) In a Finder window highlight a file of the kind you want to change the application to open that kind of file.
    2) While that file is highlighted, select File > Get Info or press command (apple or propeller icon) + i to get a file information window.
    3) In the lower part of the info window there is an "open with" menu with a list of applications.
    4) If your application is already in the box then it is the default application for opening that kind of file and you don't need to do anything more.  Close the get info window.
    5) If the application showing in the menu is not the one with which you wish to open the file then select a new application. If your application does not appear there then select the "other..." and track down the application (usually in the Applications folder at the main level of the computer).
    6) If you wish to change all files of this type to open with this application in future, make sure the "change all" button is selected.
    7) Close the get info window.

Maybe you are looking for