Re: Folder Type Identifier
Re: Folder Type Identifier
- Subject: Re: Folder Type Identifier
- From: Yvan KOENIG <email@hidden>
- Date: Wed, 14 Oct 2015 15:56:08 +0200
Le 2015/10/14 à 11:10, Thomas Fischer < email@hidden> a écrit :
Hi Shane,
thanks for the tutoring on script libraries (I never went there before!), I called the script library uti.scptd And it is interesting in so far as the result is actually "public.folder"!
But with
tell script "uti" set myPath to POSIX path of (path to home folder) & ".DS_Store" set theResult to its utiForPosixPath:(myPath) end tell
I get "dyn.ah62d4rv4gk8wakbaea"
And from System Events I get dyn.agk8wakbaea
This doesn't look quite right…
But on my other machine it seems that .DS_Store comes with different UTIs, like public.data, public.unix-executable and (yes!) dyn.ah62d4rv4gk8wakbaea
Seems strange that Apple doesn't seem to have bothered to give their own .DS_Store files a decent UTI (this makes filtering on anything but the name tough).
But this leaves me with the question: where the heck does System Events get its type identifiers?
Hello Thomas
It seems that I answered your question yesterdays.
Here is the end of my message were you will see at which time I posted it (I don't know at which one it was delivered).
Most applications's plist files contain the keys : UTExportedTypeDeclarations and UTImportedTypeDeclarations
If I understood well, the first time we run the applications, the system add the ExportedTypeDeclarations to it's database
Yvan KOENIG (VALLAURIS, France) mardi 13 octobre 2015 14:48:06
Yvan KOENIG (VALLAURIS, France) mercredi 14 octobre 2015 15:55:52
|
_______________________________________________
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