• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: choose file of type {}
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: choose file of type {}


  • Subject: Re: choose file of type {}
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 24 Oct 2008 11:44:29 -0700

On Oct 23, 2008, at 6:33 PM, Philip Aker wrote:

On Oct 23, 2008, at 6:13 PM, Christopher Nebel wrote:

Bear in mind that just because a file contains XML data doesn't mean that the UTI system knows that. File type identification is based on a number of things, but file-content-sniffing isn't one of them. There has to be a definition of the document type somewhere, either in the built-in list (the quoted document has it) or in some installed application.

That said, if it seems to be excluding something that does in fact have a conforming definition, then that's a bug, so send it along.

In my case, I have a test xml, xsl, and xsd suite (all previously validated and tested XML with xmllint and xsltproc).


Running 'choose file of type {"public.xml"}' in Script Editor doesn't even enable the .xml for choosing.

So I'd be curious as to how come Luther Fuller gets to say it works perfectly.

I'm tending towards a bug because so far it's 2:1 not working v.s. working.

Again, the contents of the file are irrelevant. If there's no app that defines what a ".xsd" file is, then the system doesn't know that it's XML (in UTI terms, "conforms to 'public.xml'"). You could indeed argue that ".xsd" ought to be defined by the base system (I'd tend to agree), but that's an enhancement, not a bug.


If a particular file type means that much to you, then you can define the UTI yourself. Save your script as an application bundle, and then follow the directions in the "Understanding UTIs" document referenced earlier.


--Chris Nebel AppleScript Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: choose file of type {}
      • From: Philip Aker <email@hidden>
    • Re: choose file of type {}
      • From: Luther Fuller <email@hidden>
    • Re: choose file of type {}
      • From: KOENIG Yvan <email@hidden>
References: 
 >choose file of type {} (From: Rainer Standke <email@hidden>)
 >Re: choose file of type {} (From: Luther Fuller <email@hidden>)
 >Re: choose file of type {} (From: Philip Aker <email@hidden>)
 >Re: choose file of type {} (From: Luther Fuller <email@hidden>)
 >Re: choose file of type {} (From: Rainer Standke <email@hidden>)
 >Re: choose file of type {} (From: Christopher Nebel <email@hidden>)
 >Re: choose file of type {} (From: Philip Aker <email@hidden>)

  • Prev by Date: disk image format
  • Next by Date: Re: choose file of type {}
  • Previous by thread: Re: choose file of type {}
  • Next by thread: Re: choose file of type {}
  • Index(es):
    • Date
    • Thread