Re: choose file of type {}
Re: choose file of type {}
- Subject: Re: choose file of type {}
- From: Luther Fuller <email@hidden>
- Date: Fri, 24 Oct 2008 14:15:00 -0500
On Oct 24, 2008, at 1:44 PM, Christopher Nebel wrote:
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.
I'm curious too! I don't work with xml files. When I needed an xml
file to test that line of code, I had to do a search, first. The files
I found had no "Open with:" application assigned and their icon was
generic. But, does it make a difference? I changed the assigned
application and the code still worked. I was using Smile, but I just
tried with Script Editor and it still worked. Is there a table
somewhere that's corrupted?
_______________________________________________
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