are openmeta attrs meant to be prefixed by ':EA:'?

33 views
Skip to first unread message

mc23646266

unread,
Dec 9, 2009, 8:20:15 AM12/9/09
to OpenMeta
still trying to set openmeta tags to my data and search for the tags.

I am saving tags with 'Default folder X', 'tagit', 'tags' and
'tagger'. when I check the tags with 'tagit', 'tags' and 'tagger' I
get them listed. Searching with spotlight, i get no matching results.

If I ran 'mdimport' on a tagged file i get:

mdimport -d 2 /Users/xxxx/xxx/2009-12-07,\ mdimport\ -\ no\ spotlight/
Gesicherte\ Terminal-Ausgabe-2.txt
(Info) Import: Import '/Users/xxxx/xxx/2009-12-07, mdimport - no
spotlight/Gesicherte Terminal-Ausgabe-2.txt' type 'public.plain-text'
using '/System/Library/Spotlight/RichText.mdimporter'
2009-12-09 14:03:40.402 mdimport[85210:903] Imported '/Users/xxxx/xxx/
2009-12-07, mdimport - no spotlight/Gesicherte Terminal-Ausgabe-2.txt'
of type 'public.plain-text' with plugIn /System/Library/Spotlight/
RichText.mdimporter.
2009-12-09 14:03:40.405 mdimport[85210:903] Attributes: {
":EA:kMDItemOMUserTagTime" = "2009-12-07 19:20:37 +0100";
":EA:kMDItemOMUserTags" = (
"openmeta \"default folder x\"",
openmeta,
"\"default folder x\""
);
":EA:kOMUserTags" = (
"openmeta \"default folder x\"",
openmeta,
"\"default folder x\""
);
":MD:kMDItemSeedLastUsedDate" = 1;
"_kMDItemFinderLabel" = "<null>";
"com_apple_metadata_modtime" = 281902837;
.... more listed....

I do not understand from the mdimport-debug-output: why are the
openmeta attributes prefixed by ':EA:'
":EA:kMDItemOMUserTagTime", ":EA:kMDItemOMUserTags"

searching spotlight with 'tag:openmeta' gives no results.

mc23646266

unread,
Dec 9, 2009, 8:44:20 AM12/9/09
to OpenMeta
mdimport is the only tool i get the ':EA:' prefix from:

ws69:2009-12-09, simple ocr xxxx 14:35:17 (0)$ ls -l@ /Users/xxxx/
Desktop/2009-12-07,\ mdimport\ -\ no\ spotlight/Gesicherte\ Terminal-
Ausgabe-2.txt
-rw-r--r--@ 1 xxxx staff 1860 7 Dez 19:20 /Users/xxxx/Desktop/
2009-12-07, mdimport - no spotlight/Gesicherte Terminal-Ausgabe-2.txt
com.apple.TextEncoding 15
com.apple.metadata:kMDItemOMUserTagTime 50
com.apple.metadata:kMDItemOMUserTags 108
com.apple.metadata:kOMUserTags 108
org.openmetainfo.time:kMDItemOMUserTagTime 50
org.openmetainfo.time:kMDItemOMUserTags 50
org.openmetainfo:kMDItemOMUserTagTime 50
org.openmetainfo:kMDItemOMUserTags 108
org.openmetainfo:kOMUserTags 108
ws69:2009-12-09, simple ocr xxxx 14:36:49 (0)$ xattr -l /Users/xxxx/
Desktop/2009-12-07,\ mdimport\ -\ no\ spotlight/Gesicherte\ Terminal-
Ausgabe-2.txt
com.apple.TextEncoding: utf-8;134217984
com.apple.metadata:kMDItemOMUserTagTime:
00000000 62 70 6C 69 73 74 30 30 33 41 B0 CD 7E F5 D3 EA |
bplist003A..~...|
00000010 C4 08 00 00 00 00 00 00 01 01 00 00 00 00 00 00
|................|
00000020 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|................|
00000030 00 11 |..|
00000032
com.apple.metadata:kMDItemOMUserTags:
00000000 62 70 6C 69 73 74 30 30 A3 01 02 03 5F 10 1B 6F |
bplist00...._..o|
00000010 70 65 6E 6D 65 74 61 20 22 64 65 66 61 75 6C 74 |penmeta
"default|
00000020 20 66 6F 6C 64 65 72 20 78 22 58 6F 70 65 6E 6D | folder
x"Xopenm|
00000030 65 74 61 5F 10 12 22 64 65 66 61 75 6C 74 20 66 |
eta_.."default f|
00000040 6F 6C 64 65 72 20 78 22 08 0C 2A 33 00 00 00 00 |older
x"..*3....|
00000050 00 00 01 01 00 00 00 00 00 00 00 04 00 00 00 00
|................|
00000060 00 00 00 00 00 00 00 00 00 00 00 48
|...........H|
0000006c
com.apple.metadata:kOMUserTags:
00000000 62 70 6C 69 73 74 30 30 A3 01 02 03 5F 10 1B 6F |
bplist00...._..o|
00000010 70 65 6E 6D 65 74 61 20 22 64 65 66 61 75 6C 74 |penmeta
"default|
00000020 20 66 6F 6C 64 65 72 20 78 22 58 6F 70 65 6E 6D | folder
x"Xopenm|
00000030 65 74 61 5F 10 12 22 64 65 66 61 75 6C 74 20 66 |
eta_.."default f|
00000040 6F 6C 64 65 72 20 78 22 08 0C 2A 33 00 00 00 00 |older
x"..*3....|
00000050 00 00 01 01 00 00 00 00 00 00 00 04 00 00 00 00
|................|
00000060 00 00 00 00 00 00 00 00 00 00 00 48
|...........H|
0000006c
org.openmetainfo.time:kMDItemOMUserTagTime:
00000000 62 70 6C 69 73 74 30 30 33 41 B0 CD 7E F5 D3 F5 |
bplist003A..~...|
00000010 B6 08 00 00 00 00 00 00 01 01 00 00 00 00 00 00
|................|
00000020 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|................|
00000030 00 11 |..|
00000032
org.openmetainfo.time:kMDItemOMUserTags:
00000000 62 70 6C 69 73 74 30 30 33 41 B0 CD 7E F5 D4 2C |
bplist003A..~..,|
00000010 E4 08 00 00 00 00 00 00 01 01 00 00 00 00 00 00
|................|
00000020 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|................|
00000030 00 11 |..|
00000032
org.openmetainfo:kMDItemOMUserTagTime:
00000000 62 70 6C 69 73 74 30 30 33 41 B0 CD 7E F5 D3 EA |
bplist003A..~...|
00000010 C4 08 00 00 00 00 00 00 01 01 00 00 00 00 00 00
|................|
00000020 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|................|
00000030 00 11 |..|
00000032
org.openmetainfo:kMDItemOMUserTags:
00000000 62 70 6C 69 73 74 30 30 A3 01 02 03 5F 10 1B 6F |
bplist00...._..o|
00000010 70 65 6E 6D 65 74 61 20 22 64 65 66 61 75 6C 74 |penmeta
"default|
00000020 20 66 6F 6C 64 65 72 20 78 22 58 6F 70 65 6E 6D | folder
x"Xopenm|
00000030 65 74 61 5F 10 12 22 64 65 66 61 75 6C 74 20 66 |
eta_.."default f|
00000040 6F 6C 64 65 72 20 78 22 08 0C 2A 33 00 00 00 00 |older
x"..*3....|
00000050 00 00 01 01 00 00 00 00 00 00 00 04 00 00 00 00
|................|
00000060 00 00 00 00 00 00 00 00 00 00 00 48
|...........H|
0000006c
org.openmetainfo:kOMUserTags:
00000000 62 70 6C 69 73 74 30 30 A3 01 02 03 5F 10 1B 6F |
bplist00...._..o|
00000010 70 65 6E 6D 65 74 61 20 22 64 65 66 61 75 6C 74 |penmeta
"default|
00000020 20 66 6F 6C 64 65 72 20 78 22 58 6F 70 65 6E 6D | folder
x"Xopenm|
00000030 65 74 61 5F 10 12 22 64 65 66 61 75 6C 74 20 66 |
eta_.."default f|
00000040 6F 6C 64 65 72 20 78 22 08 0C 2A 33 00 00 00 00 |older
x"..*3....|
00000050 00 00 01 01 00 00 00 00 00 00 00 04 00 00 00 00
|................|
00000060 00 00 00 00 00 00 00 00 00 00 00 48
|...........H|
0000006c

ws69:2009-12-09, simple ocr xxxx 14:37:06 (0)$ openmeta -t -p /Users/
xxxx/Desktop/2009-12-07,\ mdimport\ -\ no\ spotlight/Gesicherte\
Terminal-Ausgabe-2.txt
"openmeta "default folder x"" openmeta ""default folder x"" /Users/
xxxx/Desktop/2009-12-07, mdimport - no spotlight/Gesicherte Terminal-
Ausgabe-2.txt

Tom Andersen

unread,
Dec 9, 2009, 10:28:16 AM12/9/09
to open...@googlegroups.com
running mdls shows what is in the spotlight database for the item - you should see the tags there;

mdls /Path/To/File

If the tags show there, then perhaps the word 'tag' is somehow not linked via a schema file to kMDItemOMUserTags - you can see what the Finder thinks by doing any search in the Finder, then clicking more, and looking for 'tag' in the long list.

Also - if you add a tag with a weird name like horsefeathers then do a plain spotlight search for horsefeathers do you get the document in the search resutls?

The EA thing is just a message from mdimport that it loaded those things into the spotlight DB by reading the Extended Attributes.

I think you can run mdimport -d3 or similar to tell you the path of the spotlight importer used for mdimport - the spotlight importer has the schema file in it.

--Tom
> --
>
> You received this message because you are subscribed to the Google Groups "OpenMeta" group.
> To post to this group, send email to open...@googlegroups.com.
> To unsubscribe from this group, send email to openmeta+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/openmeta?hl=en.
>
>

mc23646266

unread,
Dec 9, 2009, 4:57:56 PM12/9/09
to OpenMeta
just to make sure:
ws69:22:21:22 (0)$ grep -i openmeta /Users/fo03c/Desktop/2009-12-07,\
mdimport\ -\ no\ spotlight/Gesicherte\ Terminal-Ausgabe-2.txt
ws69:22:21:53 (0)$

this file got found by 1) 'tags' 2) 'spotlight' 3) 'leap' when
searched for 'openmeta'.

taglists still only lists four (4) files tagged with 'Technik', but
not the 'openmeta' tag and associated files.

leap shows this particular file and shows it is managed. it shows the
tag (now).
yep does NOT show this particular file.
( yep does show 3 files tagged within the directory.
One of this 3 files shows 'openmeta' tagged in the info-pane, but
not in the listview.
leap shows 11 files with tags here, all show 'Unmark as Managed' in
their contextmenu.
) but i think this should go elsewhere.

we are talking about ONE file within a particular directory located in
a subdir of my Desktop.
I expect this location to be searched by everyone using openmeta. Is
this correct?

the tags i entered with tags, tagit, tagger, leap, defaultfolderx, in
no particular order.
tried the input methods for all tools. BTW - still messy input-
strategies/solutions with multi-word tags resulting in many \\ and \".

ws69:~ 21:28:21 (0)$ mdls /Users/Desktop/2009-12-07,\ mdimport\ -\ no\
spotlight/Gesicherte\ Terminal-Ausgabe-2.txt

kMDItemContentCreationDate = 2009-12-07 19:20:37 +0100
kMDItemContentModificationDate = 2009-12-07 19:20:37 +0100
kMDItemContentType = "public.plain-text"
kMDItemContentTypeTree = (
"public.plain-text",
"public.text",
"public.data",
"public.item",
"public.content"
)
kMDItemDisplayName = "Gesicherte Terminal-Ausgabe-2.txt"
kMDItemFSContentChangeDate = 2009-12-07 19:20:37 +0100
kMDItemFSCreationDate = 2009-12-07 19:20:37 +0100
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = 0
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = 0
kMDItemFSLabel = 0
kMDItemFSName = "Gesicherte Terminal-Ausgabe-2.txt"
kMDItemFSNodeCount = 0
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 503
kMDItemFSSize = 1860
kMDItemFSTypeCode = ""
kMDItemKind = "Smultron Document"
kMDItemLastUsedDate = 2009-12-09 18:33:35 +0100
kMDItemOMUserTags = (
"openmeta \"default folder x\"",
openmeta,
"\"default folder x\""
)
kMDItemOMUserTagTime = 2009-12-07 19:20:37 +0100
kMDItemUsedDates = (
"2009-12-09 00:00:00 +0100"
)
kOMUserTags = (
"openmeta \"default folder x\"",
openmeta,
"\"default folder x\""
)

=:-)f

mc23646266

unread,
Dec 9, 2009, 5:09:00 PM12/9/09
to OpenMeta
how to sort out the precedence of all the various importers? would
like to have ONE. what happens i if put one in ~/Libryry/Spotlight?

- part of 'mdimport -d 3' -

(Info) ImportPluginLoading: loading sniffer 'Spotlight/
OpenMetaSpotlight.mdimporter/ -- /Library/PreferencePanes/Default
Folder X.prefPane/Contents/Resources/Default Folder X Helper.app/
Contents/Library/' for type com.openmeta.openmetaschema
(Info) ImportPluginLoading: loading sniffer 'Spotlight/MetaX Spotlight
Plugin.mdimporter/ -- /Users/fo03c/My Applications/MetaX.app/Contents/
Library/' for type com.kerstetterapps.metaxarchive
(Info) ImportPluginLoading: Plugin 'Spotlight/
OpenMetaSpotlight.mdimporter/ -- /Library/PreferencePanes/Default
Folder X.prefPane/Contents/Resources/Default Folder X.app/Contents/
Library/' UUID already claimed by '(null)'
(Info) ImportPluginLoading: Plugin 'Spotlight/
OpenMetaSpotlight.mdimporter/ -- /Users/fo03c/My Applications/
Fresh.app/Contents/Library/' UUID already claimed by '(null)'
(Info) ImportPluginLoading: Plugin 'Spotlight/
OpenMetaSpotlight.mdimporter/ -- /Users/fo03c/My Applications/Leap.app/
Contents/Library/' UUID already claimed by '(null)'
(Info) ImportPluginLoading: Plugin 'Spotlight/
OpenMetaSpotlight.mdimporter/ -- /Users/fo03c/My Applications/
Tagit.app/Contents/Library/' UUID already claimed by '(null)'
(Info) ImportPluginLoading: Plugin 'Spotlight/
OpenMetaSpotlight.mdimporter/ -- /Users/fo03c/My Applications/Yep.app/
Contents/Library/' UUID already claimed by '(null)'
(Info) ImportPluginLoading: Plugin 'Spotlight/
OpenMetaSpotlight.mdimporter/ -- /Users/fo03c/My Applications/
TagLists.app/Contents/Library/' UUID already claimed by '(null)'
(Info) ImportPluginLoading: Plugin 'Spotlight/
OpenMetaSpotlight.mdimporter/ -- /Users/fo03c/My Applications/
Tagger.app/Contents/Library/' UUID already claimed by '(null)'
(Info) Import: Import '/Users/fo03c/Desktop/2009-12-07, mdimport - no
spotlight/Gesicherte Terminal-Ausgabe-2.txt' type 'public.plain-text'
using '/System/Library/Spotlight/RichText.mdimporter'


On 9 Dez., 16:28, Tom Andersen <tom.ander...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages