Mapping file extension to content type

After installing "The Unarchiver" from AppStore, all files with file extension ".000", ".001", ".002",... are recoginzed as RAR archives and their icons and meta data (KMDItemContentType and kMDItemContentTypeTree) is changed to include "com.rarlab.rar-archive". This continues even after removing "The Unarchiver" from my /Applications folder. How can I stop this? I'm using the mentioned file extensions for other things and I don't want them to be linked to "com.rarlab.rar-archive". Any suggestions? Is there a way to remove the kMDItemContentType = "com.rarlab.rar-archive" from many files (preferably with a script in Terminal)?

Thanks for your remark, Tony T1! Yes, "Get Info" can be used to choose the application to open the files. However, this does not answer my question. My question is, how can I change kMDItemContentType in the meta data of (many) files and tell an application (The Unarchiver) not to touch files with certain file extensions (e.g. ".000" or ".001"), preferably using Terminal?

Similar Messages

  • How to display names without file extension in Content Query Web Part in SharePoint 2010

    I try to display names in Content Query Web Part  but it shows file extension. I cannot find a way in CQWP editor that can exclude file extension.  Is there a way to display names excluding file extensions thru settings in the CQWP editor?
    I have to edit the code in SharePoint Designer, right?
    Thanks in advance for any tips!

    In the file ContentQueryMain you have already a function to get the file without extension.
    So we just can use this:
    <xsl:call-template name="OuterTemplate.GetFileNameWithoutExtension">
    <xsl:with-param name="input" select="$DisplayTitle" />
    </xsl:call-template>

  • Not seeing Portable Document File in the Content type listing

    Newly downloaded and installed Firefox doesn't have Portable Document File format option in the Content Type listing. I have downloaded Adobe Reader 11 which is working fine parallely. The Plug-in's and Add-Ons have all been set correctly.
    Basic issue, not able to view PDF files via Firefox

    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them
    *https://support.mozilla.org/kb/disable-built-pdf-viewer-and-use-another-viewer
    You can rename (or 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
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)

  • Case sensitive file extensions on mime.types?

    Hello,
    I'm facing a weird problem at customers's site.
    There is an iAS 10.1.3.3 installation on a Windows 2000 server. There is an OC4J container called "OC4J_FR" where their application is depoyed.
    The trouble we're facing is the following:
    on the %ORACLE_HOME%/j2ee/OC4J_FR/config/mime.types we add the following 2 entries:
    image/tiff                    tif tiff
    application/vnd.ms-excel     xls
    So, when we put someFile.tif (or someOther.xls) under the container public directory it is possible for users to access them via the URL
    http://servername:port/webContextRoot/someFile.tif
    And this works OK.
    If we try to rename the above file into something like myFile.TIFF (please note the extension in uppercase) Internet Explorer opens it like text, wiring this "rubbish":
    II*Àg ÒgL1ÂÊ$(2ÈdÙ¨¦Í@6j)³P‘<mò°Ú¨³
    etc....
    While Firefox opens it correctly. I also tried to add on mime.types the following (even if on the Apache website it is told that this is useless...)
    image/tiff                    TIF TIFF
    But still it doesn't work.
    Any hints/patches/workarounds/ideas/anything?
    Thanks,
    - Paolo

    Can't really say what's wrong but I quickly tried it with OHS (Oracle HTTP Server) and it works fine both in Firefox 3.0 and IE 6.0 without making any change (in mime type configuration). I copied two tiff files (sample1.tiff and sample2.TIFF) in $OH/Apache/Apache/htdocs directory and then was successfully able to access both using http://host.domain:ohs_port/sample1.tiff and http://host.domain:ohs_port/sample2.TIFF.
    When you say you tried with Apache website, is above what you tried too?
    Thanks
    Shail

  • EDI 821 and EDI 823 field mapping file and basic IDOC type and message type

    Hi All,
    We are facing some issues regarding EDI 821 and EDI 823 file mappings.
    We are mapping EDI 821 and EDI 823 transactions into SAP using IDOCs. Currently we are using the below entries
    EDI 823 - Lock Box
    Basic IDOC type - FINSTA01
    Message type - FINSTA
    Process Code  - FINS
    The problem is we are able to get the IDOC into SAP with status red and the various errors were due to not able to create the lockbox entry in SAP and once we got yellow status also but the lock box entry was not created and the errors are like No Conversions,no header etc.
    EDI 821 -
    Basic IDOC type - PEXR2002
    Message type - PAYEXT OR REMADV
    Process Code  - PEXC OR REMA
    We are facing the same problem here also and the internal payment order is not creating in SAP and IDOC was generated with yellow status and red status.
    We are trying different combinations but nothing is working so far.
    I need the following things to proceed furthur.
    1)Are the IDOC , Message and process codes are correct that I am using now for both EDI 821 and EDI 823
    2)If those are not correct, can you please let me know the correct entries
    3) Please provide me the field mapping if any one of you have worked earlier for both the above IDOC and message type or new ones and we have one field mapping now but if you can send it to me then  I can re check it.
    4) Do we have to create any configuraion or customizing in SAP to create the IDOC in green status and if so please let me know the customizing steps and procedures for both EDI 821 and EDI 823.
    thanks in advance for all your help.
    Please let me know if my question is not clear.
    Thanks,
    Ramesh.

    Hi Ramesh,
    I believe you are using those interfaces with the business partner type as Bank, Whatever idoc type, message type and process code you have used are perfectly correct.
    First of all did you enable your bank for EDI, the house bank has to be EDI enabled first then only your idoc's can be processed, talk to your fi functional consultant and he might help you.
    Are you can give me the exact error and i can help you as well.
    Thanks,
    Mahesh.

  • Re: content types: what is the protocol of "file" and the content type of m

    The protocol is the string that goes before the "://", so for files it would be "file".
    Your guess for mpegs is correct, and you can check MIME types here.
    shmoove

    Pretty much any number or a space character. Punctuation does too, in theory, but I'd advise to limit it to hyphens and underscores. Periods are OK in the middle of file names but you won't be able to start a file name with one at the Finder level since that would actually hide the file.
    Matt

  • Setting Content-Type in .jspx file

    Hello,
    My application is not rendered by an HTML Browser.
    I need to set the contentType to application/x-ywidget+xml in my JSPX file.
    The content type returned is always text/xml !!!
    I have tried:
    1. To create a phaseListener and overloading before or after phase in ANY_PHASE
    FacesContext context = FacesContext.getCurrentInstance();
    ExternalContext extContext = context.getExternalContext();
    HttpServletResponse response =
    (HttpServletResponse)extContext.getResponse();
    String contentType = "application/x-ywidget+xml";
    response.setContentType(contentType);
    2. To add a new MimeType extension in web.xml and create my file under this extension
    <servlet-mapping>
    <servlet-name>jsp</servlet-name>
    <url-pattern>*.xygo</url-pattern>
    </servlet-mapping>
    <mime-mapping>
    <extension>xygo</extension>
    <mime-type>application/x-ywidget+xml</mime-type>
    </mime-mapping>

    Frank,
    Thanks you for you help.
    What i would like to do is to use a JSF library components to build YahooGO pages (Yahoo mobile widgets).
    For this my server needs to return an xml document with the application/x-ywidget+xml content type.
    Regarding you question i don't think that the target device understand the HTML.. on my mobile, it's J2ME application...
    Perhaps you can provide me some advices.
    Regards,
    Fred

  • Unsupported content type in editor

    Hi everyone,
    I just joined the Flex world from the Flash world. I
    installed the Eclipse plugin and got this error when I tried to
    open an MXML file.
    Unsupported content type in editor. Please change the file
    extension association..blah..blah..
    When I check the file associations everything looks correct.
    I googled and searched these forums and couldn't find anyone
    else who has had this error. Can anyone tell me a quick fix?
    BTW, I have about 5 other eclipse plugins installed too (PHP,
    Perl, WTP, etc...).
    Thanks for the help,
    Derek Basch

    I solved my own problem. The MXML type was associated with
    the Eclipse XML editor. I just needed to to do a:
    right click -> open with -> MXML editor.
    Derek

  • Save Dialog in Office Application does not set the Content Type to the one selected on Document Creation.

    We have a Library that supports 4 Content Types  ("Content Type 1","Content Type 2","Content Type 3","Content Type 4")
    The user clicks new and selects "Content Type 3"
    Word is started
    The user edits the document
    Clicks Save
    "Choose Content Type" dialog is shown set to the Content Type "Content Type 1" because the Document content type is ordered as First (which also means Default)
    What is expected is the "Choose Content Type" dialog to show "Content Type 3" as selected
    Any ideas?

    Hi,
    According to your description, there is a library with four content types, you create a document with one of the content types, click save button in Office application,
    then a “Choose Content Type” dialog will show up for selecting a content type.
    I tried to reproduce as below:
    1. Create a library with four content types;
    2. In the ribbon of this library, “FILES”->”New Document”->”Content Type 1”, then the Office application with the predefined template will be opened for editing;
    3. Click the “Save” button, choose the save path as the current library, click “OK” to finish the process;
    4. Refresh the library in browser, the newly created document appears there.
    In my test, there is no “Choose Content Type” dialog showing up when save the document in Office application.
    I would suggest you provide more details about how to reproduce this issue(screenshot would be better) for further research.
    Thanks
    Patrick Liang
    Forum Support
    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 Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • How do I add a content Type (PDF) to the Applications in Firefox preferences

    When i Try to open/download a PDF file I get a blank new tab.
    I checked the Applications Tab in preferences and I do not have PDF files in the Content type. No problem in downlodading/viewing PDF files from gmail.

    Hello George,
    This tutorial should step you through the basic process of configuring the device and connecting the thermocouple:
    Tutorial: Connect Thermocouples to a Data Acquisition (DAQ) Device
    http://www.ni.com/gettingstarted/setuphardware/dataacquisition/thermocouples.htm#Connecting a Thermocouple to Your Device
    From there, there are a number of things you can do- I'd recommend taking a look at the LabVIEW shipping examples (Help>>Find Examples...) as well as the DAQmx getting started tutorials:
    Getting Started with NI-DAQmx: Main Page
    http://www.ni.com/white-paper/5434/en
    At first glance, the 6363 you're using should have enough resolution to acquire usable data from a thermocouple- if you attempt reading raw voltages be sure that the acquisition range is configured for +/- 0.1V, though.
    Regards,
    Tom L.

  • Web Service mapping file

    You will be greatly appreciated if you can help me on following question:
    In a web service mapping file, under <java-xml-type-mapping> element, either <anonymous-type-qname> or <root-type-qname> is valid element according to schema. My question is which one should be used under which situation?
    Thanks,
    Michael
    ===========
    Mapping file
    ===========
    <java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd"
    version="1.1">
    <package-mapping>
    <package-type>test</package-type>
    <namespaceURI>http://test/</namespaceURI>
    </package-mapping>
    <java-xml-type-mapping>
    <java-type>test.Status</java-type>
    <anonymous-type-qname>{http://test/}Status</anonymous-type-qname>
    <qname-scope>complexType</qname-scope>
    ==========
    Schema
    ==========
    <xsd:sequence>
    <xsd:element name="java-type" type="j2ee:java-typeType">
    <xsd:annotation>
    <xsd:documentation>The java-type element is the fully qualified class name of a Java class, primitive, or array type.</xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    <choice>
    <xsd:element name="root-type-qname" type="j2ee:xsdQNameType"> <xsd:annotation>
    <xsd:documentation>The root-type-qname identifies the WSDL QName of an XML type.
    </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="anonymous-type-qname" type="j2ee:string">
    <xsd:annotation>
    <xsd:documentation>The anonymous-type-qname identifies the WSDL QName of an anonymous XML type.
    </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    </choice>

    I am stuck here with the same problem - don't know what to do with the (required) Mapping File.
    Has anyone found out?
    Please let me know.
    Best,
    Philipp
    [email protected]

  • File extension dictates importer to use?

    Anyone have luck in getting unix shell scripts indexed by Spotlight? Perhaps I'm weird, but I don't like my shell scripts to have extensions. When I execute a script, I don't care if it's python, bash, perl, etc. I just wanna execute it After doing some research, it seems that the file extension dictates the type of file that OS X thinks it is, which in turn dictates which importer will be used to index it. My system shows it as a "Unix Executable File" but that's not specific enough for Spotlight to know how to index it.
    I even spent hours browsing the low-level APIs, searching for a way to write a little utility to do this for me, but Apple doesn't expose a way to set the kMDItemKind attribute. I was hoping there was a way to explicitly set the file type for specific files, but that doesn't seem possible. Anyone know of a way?
    Is it possible to create a user-defined attribute and then have Spotlight use that value to determine which importer to use?
    Thanks,
    Erik
    G4 Powerbook   Mac OS X (10.4.5)  

    Processing Raw in a 3rd Party Application
    You can also process your Raw with a 3rd Party app like ACR or Photoshop. But iPhoto does not handle this gracefully and it's a bit of a kludge.
    First off set your preferred app as an external editor in iPhoto:
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Note that iPhoto sends a copy+ of the file to Photoshop, so when you save be sure to use the Save command, not Save As... If you use Save As then you're creating a new file and iPhoto has no way of knowing about this new file. iPhoto is preserving your original anyway.
    Next: In the iPhoto Preferences -> Advanced, elect to use Raw with your External editor:
    Uploaded with plasq's Skitch!
    Now when you go to edit the Raw it will be sent to your external editor.
    Now for the kludge:
    You cannot save a Raw. The work you do must be output to a new file, in a new format (jepg, tiff, whatever). However, as the External Editor is making this new file iPhoto has no knowledge of its existence. Therefore you *must save it to the desktop and then import it back to iPhoto as a new file*.
    This means that you will have your Original Raw and the processed version in iPhoto but they will not be recognised as version and original. iPhoto will see them as two separate shots.

  • Cache blocking: content type: text/xml

    I have an unusual request: Is there a way to prevent caching of a particular file with the content type of "text/xml", alot of these files are small and useless. I would want only a file over 25k to be saved.
    For example a file with that content type wouldn't be saved to cache unless it is over 25k in size. I have 6000 of these types of files which are saved in cache_001, 002 etc.

    There is no built-in way to do that, but an add-on might be able to do it. This one doesn't mention treating files of different sizes in different ways, but if it is otherwise effective, you could check with the developer on whether that feature could be added: [https://addons.mozilla.org/en-US/firefox/addon/bettercache/ BetterCache :: Add-ons for Firefox]. I haven't tried it myself.

  • Set content type based on file extension after uploading into document library

    when there are multiple content types associated with a document library, say, report builder report, and excel documents, after you drag and drop a document into the document library, content type will not be detected based on the file extension. Suppose
    your default content type is document, and you had added the report build report content type, and you uploaded a .RDL file, the content type for the file will be set to the default document content type.
    I get a requirement to update the content type automatically based on the file extension, what follows is my code:
    public class setCNTByFileExtItemAdded : SPItemEventReceiver
    /// <summary>
    /// An item was added.
    /// </summary>
    public override void ItemAdded(SPItemEventProperties properties)
    if (properties.Web.GetFile(properties.AfterUrl).Exists)
    SPListItem CurrentListItem = properties.Web.GetFile(properties.AfterUrl).Item;
    String FileName = CurrentListItem.Name;
    if (FileName.EndsWith(".rdl",StringComparison.OrdinalIgnoreCase))
    CurrentListItem.Properties["ContentTypeId"] = "0x010100C3676CDFA2F24E1D949A8BF2B06F6B8B";
    CurrentListItem.SystemUpdate(false);
    base.ItemAdded(properties);
    What follows are references that helped me:
    http://stackoverflow.com/questions/7984300/properties-listitem-is-null-in-itemadded-event-while-uploading-documents-using
    http://williamvanstrien.blogspot.in/2011/10/read-content-of-uploaded-file-within.html
    http://blogs.msdn.com/b/manuj/archive/2009/09/22/itemadded-event-on-document-library-the-file-has-been-modified-by-on-error.aspx
    http://support.microsoft.com/kb/2647429

    user may have further requirement to detect whether the uploaded .xlsx file contains powerpivot data model, i tried the following code, the caveat is that .xlsx is actually a zip file, i just test whether the uploaded stream contains an entry xl/model/item.data.
    public partial class ApplicationPage2 : LayoutsPageBase
    protected void Page_Load(object sender, EventArgs e)
    if (this.IsPostBack)
    if (FileUpload1.PostedFile == null)
    return;
    string destWeb = DestinationUrl.Url;
    string destUrl = destWeb + "/" + FileUpload1.FileName;
    using (SPSite site = new SPSite(destWeb))
    using (SPWeb web = site.OpenWeb())
    SPFile f = web.Files.Add(destUrl, FileUpload1.PostedFile.InputStream);
    if (FileUpload1.FileName.EndsWith(".xlsx") )
    Stream fs = f.OpenBinaryStream() as Stream;
    using (ZipArchive zfs = new ZipArchive(fs, ZipArchiveMode.Read))
    if (zfs.GetEntry("xl/model/item.data") == null)
    Debug.WriteLine("Does not contain data model");
    else
    Debug.WriteLine("Contain data model");
    The code i posted here is part of an application page in layout folder, the reason why i use application page is described in
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/065d010a-d37e-4da4-9873-172ab2c50d6d/custom-list-new-application-page-with-listfielditerator-and-savebutton?forum=sharepointdevelopment#288a686e-bfbe-41aa-83d0-58a80f0cec07

  • Changing content type of xml file to pdf

    Hello,
    I have an xml file (extension is *.xdp) which can locally be opened with Adobe Reader and displays as a regular pdf file. Adobe has a technology that allows xml to be merged with a pdf shell, and thus populating the pdf file with the values retrieved from the xml file.
    My issue is that I want this to be done on an application server level (jboss in particular). In a servlet, I stream the xml file for the contents to be printed out within a browser (IE). I specify the content type to be application/pdf, however, the data is not being displayed within Adobe Reader, but rather as a regular xml file.
    Any help is greatly appreciated. Here is the code below:
    response.setHeader("Pragma", "public");
    response.setHeader("Cache-Control", "max-age=30");
    response.setContentType("application/pdf");
    ServletOutputStream out = response.getOutputStream();
    byte[] fileBytes = readFile();
    out.write(fileBytes);

    Yes, the xml does contain a reference to the shell pdf. This works fine if I do so manually (open the xml file using Adobe Reader). However, through a browser, it seems that the forced content type is completely ignored:
    <?xml version="1.0"?>
    <?xfa generator="XFA2_0" APIVersion="1.4.4127.0"?>
    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
    <xfa:datasets xmlns="" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
    <xfa:data>
    <DocRoot>
    <Cldemographics<Cldatecreated>7/21/05</Cldatecreated...
    </DocRoot>
    </xfa:data>
    </xfa:datasets>
    <pdf href="/opt/jboss-tomcat-server-build-4.0.0-2/.../pdfShell/Shell.pdf"
    xmlns="http://ns.adobe.com/xdp/pdf/"/>
    </xdp:xdp>

Maybe you are looking for

  • Exchange rate type for version - error message GP541 during confirmation

    Hi FICO Experts, I bumped into a problem during confirmation in CO15. (I would like to get the SFG by mvt 101 and consume the raw material by 261). The error messase I get is: Maintain the exchange rate type for version 000 in 2009 Message no. GP541

  • Cross company code use of equipments

    Hello gurus, in our system we have equipment masters for all our machines relevant for maintenance. Up to now, all maintenance operations for the equipments have been documented in PM-notifications and orders. Now, our company incorporated a subsidia

  • Possible? masking a car with windows | mask with lots of holes

    hi all, newbie here. i am very fresh to motion and maybe its quite stupid for all expert here. my suitation is my company asked me to produce a series of animated video. which i perfered the adobe products, ie premier + after effect, but soon i found

  • Reinstall OSX Partition?

    Can I reinstall OSX without effecting my Windows installation?

  • New TC but now Time Machine can't find network backup drives

    I had a 2 GB TC replaced under warranty (many thanks to LaPastenague who suggested I may be able to get a replacement under warranty).  Configured the TC using Airport Utility, and after a bit of messing around (had to delete and re-find the USB prin