Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
is somebody willing to 'clear-out' the bugs in openmeta cli?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mc23646266  
View profile  
 More options Mar 1 2010, 5:17 am
From: mc23646266 <u...@23646266.net>
Date: Mon, 1 Mar 2010 02:17:54 -0800 (PST)
Local: Mon, Mar 1 2010 5:17 am
Subject: is somebody willing to 'clear-out' the bugs in openmeta cli?
there are some bug-reports open for the openmeta cli for a long time,
which are not 'accepted' and not cared about.

I'd like to have a 'mdset' utility also, with which it would be
possible to
set arbitrary kMDItem* attributes at will from the commandline.

I am not a programmer, so I would need some experts with me to
update and fix the openmeta cli code correctly.

greetz
=:-)f


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mc23646266  
View profile  
 More options Mar 2 2010, 6:32 pm
From: mc23646266 <u...@23646266.net>
Date: Tue, 2 Mar 2010 15:32:36 -0800 (PST)
Local: Tues, Mar 2 2010 6:32 pm
Subject: Re: is somebody willing to 'clear-out' the bugs in openmeta cli?
downloaded the source from trunk.
Most of my issues with the openmeta cli an be changed easily as most
of the functionallity is already in the code:

- changed the special treatment of commas (silly assumption a user
expect commas to be treated as a delimiter on commandline tool)
- changed '-v' to make openmeta cli verbose, not to make it silent
(look at other cli tools: admins make a utility verbose by ADDING '-
v')
- added new switch '-x <keyname>' , but this does not work so far

not to far away from a 'mdset <keyname> <attribute> <file>' tool

=:-)f

On 1 Mrz., 11:17, mc23646266 <u...@23646266.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mc23646266  
View profile  
 More options Mar 4 2010, 5:34 am
From: mc23646266 <u...@23646266.net>
Date: Thu, 4 Mar 2010 02:34:49 -0800 (PST)
Local: Thurs, Mar 4 2010 5:34 am
Subject: Re: is somebody willing to 'clear-out' the bugs in openmeta cli?
ok, after some more slight changes I almost got a 'mdset' version of
openmeta cli.

@tom.andersen
I can set an kMDItem.. attribute to a file with '-s' and get it listed
by mdls! (kMDItemIdentifier)
If I do add the same kMDItem... attribute to a file, mdls does NOT
list it, it seems to be erased.

I don't think I changed much in openmeta cli code, and did not change
anything about '-a', '-s'.
So I do not understand why its deleted when ADDING.

Do leap, yep, ... call the CLI?

=:-)f

On 3 Mrz., 00:32, mc23646266 <u...@23646266.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Andersen  
View profile  
 More options Mar 4 2010, 9:53 am
From: Tom Andersen <tom.ander...@gmail.com>
Date: Thu, 4 Mar 2010 09:53:59 -0500
Local: Thurs, Mar 4 2010 9:53 am
Subject: Re: is somebody willing to 'clear-out' the bugs in openmeta cli?
Leap and Yep, etc don't call the cli.

-s 'sets' the information, erasing any previous.

When adding info - you have to remember that it only makes sense to add information that is an array. So if you have your own kMDItemIdentifier - it will likely not be setting an array of data.

try xattr -l in terminal after you set or add attributes. That's all the cli does is set xattr for you.

--Tom

On 2010-03-04, at 5:34 AM, mc23646266 wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mc23646266  
View profile  
 More options Mar 4 2010, 3:27 pm
From: mc23646266 <u...@23646266.net>
Date: Thu, 4 Mar 2010 12:27:10 -0800 (PST)
Local: Thurs, Mar 4 2010 3:27 pm
Subject: Re: is somebody willing to 'clear-out' the bugs in openmeta cli?
@tom.andersen
the problem with xattr is: it does not 'encode' the arguments to the
required bin plist format, so it is useless to use it for setting
attributes.
ok, leap .... don't use the cli, nevertheless I do think there's
something wrong here:

adding does definitly erase parts of the information!

-------------------------  setting an attribute --------- then reading
it
--------------------------------------------------------------------------- --------------------
$ ~/Documents/openmeta-read-only/trunk/openmeta/build/Release/openmeta
-x kMDItemIdentifier -s "mit zwei" -p ./bcedit.cfg
$ ls -l@ bcedit.cfg

-rw-r--r--@ 1 fo03c  502  409 15 Mai  2006 bcedit.cfg
        com.apple.metadata:kMDItemIdentifier     50
        com.apple.metadata:kMDItemOMUserTagTime  50
        com.apple.metadata:kMDItemOMUserTags     53
        com.apple.metadata:kOMUserTags   53
        org.openmetainfo.time:kMDItemIdentifier  50
        org.openmetainfo.time:kMDItemOMUserTagTime       50
        org.openmetainfo.time:kMDItemOMUserTags  50
        org.openmetainfo:kMDItemIdentifier       50
        org.openmetainfo:kMDItemOMUserTagTime    50
        org.openmetainfo:kMDItemOMUserTags       53
        org.openmetainfo:kOMUserTags     53

------------------------- ADDING an attribute --------- then reading
it
--------------------------------------------------------------------------- --------------------
$ ~/Documents/openmeta-read-only/trunk/openmeta/build/Release/openmeta
-x kMDItemIdentifier -a "mit zwei" -p ./bcedit.cfg
$ ls -l@ bcedit.cfg

-rw-r--r--@ 1 fo03c  502  409 15 Mai  2006 bcedit.cfg
        com.apple.metadata:kMDItemOMUserTagTime  50
        com.apple.metadata:kMDItemOMUserTags     53
        com.apple.metadata:kOMUserTags   53
        org.openmetainfo.time:kMDItemIdentifier  50
        org.openmetainfo.time:kMDItemOMUserTagTime       50
        org.openmetainfo.time:kMDItemOMUserTags  50
        org.openmetainfo:kMDItemOMUserTagTime    50
        org.openmetainfo:kMDItemOMUserTags       53
        org.openmetainfo:kOMUserTags     53

$ mdls bcedit.cfg

kMDItemContentCreationDate     = 2006-05-15 12:10:27 +0200
kMDItemContentModificationDate = 2006-05-15 12:10:27 +0200
kMDItemContentType             = "dyn.ah62d4rv4ge80g3xh"
kMDItemContentTypeTree         = (
    "public.data",
    "public.item"
)
kMDItemDisplayName             = "bcedit.cfg"
kMDItemFSContentChangeDate     = 2006-05-15 12:10:27 +0200
kMDItemFSCreationDate          = 2006-05-15 12:10:27 +0200
kMDItemFSCreatorCode           = ""
kMDItemFSFinderFlags           = 0
kMDItemFSHasCustomIcon         = 0
kMDItemFSInvisible             = 0
kMDItemFSIsExtensionHidden     = 0
kMDItemFSIsStationery          = 0
kMDItemFSLabel                 = 0
kMDItemFSName                  = "bcedit.cfg"
kMDItemFSNodeCount             = 0
kMDItemFSOwnerGroupID          = 502
kMDItemFSOwnerUserID           = 10003
kMDItemFSSize                  = 409
kMDItemFSTypeCode              = ""
kMDItemKind                    = "Dokument"
kMDItemLastUsedDate            = 2006-05-15 12:10:27 +0200
kMDItemOMUserTags              = (
    "mit zwei"
)
kMDItemOMUserTagTime           = 2010-03-04 21:00:23 +0100
kMDItemUsedDates               = (
    "2006-05-15 00:00:00 +0200"
)
kOMUserTags                    = (
    "mit zwei"
)

-------------------------  setting an attribute --------- then reading
it
--------------------------------------------------------------------------- --------------------
$ ~/Documents/openmeta-read-only/trunk/openmeta/build/Release/openmeta
-x kMDItemIdentifier -s "mit zwei" -p ./bcedit.cfg
$ mdls bcedit.cfg

kMDItemContentCreationDate     = 2006-05-15 12:10:27 +0200
kMDItemContentModificationDate = 2006-05-15 12:10:27 +0200
kMDItemContentType             = "dyn.ah62d4rv4ge80g3xh"
kMDItemContentTypeTree         = (
    "public.data",
    "public.item"
)
kMDItemDisplayName             = "bcedit.cfg"
kMDItemFSContentChangeDate     = 2006-05-15 12:10:27 +0200
kMDItemFSCreationDate          = 2006-05-15 12:10:27 +0200
kMDItemFSCreatorCode           = ""
kMDItemFSFinderFlags           = 0
kMDItemFSHasCustomIcon         = 0
kMDItemFSInvisible             = 0
kMDItemFSIsExtensionHidden     = 0
kMDItemFSIsStationery          = 0
kMDItemFSLabel                 = 0
kMDItemFSName                  = "bcedit.cfg"
kMDItemFSNodeCount             = 0
kMDItemFSOwnerGroupID          = 502
kMDItemFSOwnerUserID           = 10003
kMDItemFSSize                  = 409
kMDItemFSTypeCode              = ""
kMDItemIdentifier              = "mit zwei"
kMDItemKind                    = "Dokument"
kMDItemLastUsedDate            = 2006-05-15 12:10:27 +0200
kMDItemOMUserTags              = (
    "mit zwei"
)
kMDItemOMUserTagTime           = 2010-03-04 21:01:24 +0100
kMDItemUsedDates               = (
    "2006-05-15 00:00:00 +0200"
)
kOMUserTags                    = (
    "mit zwei"
)
$

greetz

=:-)f


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mc23646266  
View profile  
 More options Mar 4 2010, 3:42 pm
From: mc23646266 <u...@23646266.net>
Date: Thu, 4 Mar 2010 12:42:40 -0800 (PST)
Local: Thurs, Mar 4 2010 3:42 pm
Subject: Re: is somebody willing to 'clear-out' the bugs in openmeta cli?
@tom.andersen
I cannot follow your thesis for:   ' it only makes sense to add
information that is an array'

there are a couple of attributes where an array does not make any
sense: kMDItemAcquisitionModel, kMDItemAudioSampleRate, ...

from reading through the forums I believe you are rather fixed on
'tagging'.
For me 'tagging' is only a small part of the whole metadata story.

Yes, there are many attributes which are best suited as arrays, but it
simply depends on the case.
No general assumptions, please. Let there be freedom of choice.

BTW:  I just used the first array-element to set an arbitrary
attribute when changing your code.

greetz

=:-)f

On 4 Mrz., 15:53, Tom Andersen <tom.ander...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Andersen  
View profile  
 More options Mar 4 2010, 3:51 pm
From: Tom Andersen <tom.ander...@gmail.com>
Date: Thu, 4 Mar 2010 15:51:06 -0500
Local: Thurs, Mar 4 2010 3:51 pm
Subject: Re: is somebody willing to 'clear-out' the bugs in openmeta cli?
Tags are arrays - you can add to them.

How does it make sense to 'add' something to an attribute that is not an array?

ie what do you expect to happen when you add '44100' to the  kMDItemAudioSampleRate?

It does look like a bug though - I think that the adding code must get confused when there is no array but rather a single item.

--Tom
On 2010-03-04, at 3:42 PM, mc23646266 wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »