Re: Selecting files of type zip
Re: Selecting files of type zip
- Subject: Re: Selecting files of type zip
- From: Yvan KOENIG <email@hidden>
- Date: Thu, 16 Apr 2009 19:20:10 +0200
Le 16 avr. 2009 à 18:01, Mark J. Reed a écrit :
On Thu, Apr 16, 2009 at 9:21 AM, Sutapalli Satyanarayana
<email@hidden> wrote:
So, in this case, how can I write my script that works on both.
As Yvan pointed out, the type parameter to "choose file(s) of type"
can be a list of acceptable types; all files that match any of those
types will be selectable.
How can I write to pick the exact file type depending on OS version?
Is the file type determined by the OS under which the archive is
created or the OS under which it is examined? Does the answer to
that question change if the archive lives on an HFS+ filesystem shared
by Tiger and Leopard machines, created on one but examined on the
other? Trying to test the OS version to figure out what to do is a
losing proposition; better to just include all the possibilities in
the list.
It's linked to the system used to examine the files.
The UTI strings are stored by the operating system not by the files
themselves.
I tested the same file on both operating systems and got the string
linked to the OS.
It not really surprising. I remember that I read some times ago an
Apple document explaining that 10.5 offer more readable Uniform Type
Identifiers.
Alas, at this time I am unable to retrieve it.
Yvan KOENIG (from FRANCE jeudi 16 avril 2009 19:19:43)
_______________________________________________
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