• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "label index" wrong in 10.5?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "label index" wrong in 10.5?


  • Subject: Re: "label index" wrong in 10.5?
  • From: Dave Lyons <email@hidden>
  • Date: Thu, 15 Nov 2007 18:15:50 -0800

On Nov 8, 2007, at 7:55 PM, Steve Mills wrote:
Anybody else noticed that the indices returned for Finder's "label index" is wrong in 10.5? I have a script that now works incorrectly in 10.5. It worked correctly in 10.4.x.

10.4 (same order as they appear in the UI):
None 0
Red 1
Orange 2
Yellow 3
Green 4
Blue 5
Purple 6
Gray 7

10.5:
None 0
Red 2
Orange 1
Yellow 3
Green 6
Blue 4
Purple 5
Gray 7

I submitted a bug for it. radar://5589994

I'm unable to reproduce your 10.4 results. Can you double-check that?

The order you're seeing under 10.5 is correct, and I'm seeing it under 10.4 as well (on both Intel and PPC machines). Nothing about label index changed intentionally between Tiger and Leopard.

Keep reading for why the ordering is strange.

On Nov 9, 2007, at 8:43 AM, Steve Mills wrote:
I used mdls to look at that meta tag. Yup, the indices are totally out of whack there too:

None 0
Red 6
Orange 7
Yellow 5
Green 2
Blue 4
Purple 3
Grey 1

This is expected. The kMDItemFSLabel values exactly match the "on disk" values in the three-bit color field in the 16-byte Finder info.


The Finder scripting label value (ever since System 7) has always been None=0, all others = 8 - on-disk value (compare these to your "10.5" values above, and you'll see that they are just 1..7 vs 7..1). I don't know why the System 7 folks decided on that ordering (maybe it matched the UI ordering at the time).

When Finder X regained labels in 10.3, the H.I. folks specified fixed colors for the labels & a specific order in the menu. We tried to assign the on-disk values in a way that was roughly compatible (where possible) with the default System 7 / 8 / 9 label colors. So the on- disk values never matched the order in the Finder X "gumdrop menu."

Cheers,

--Dave
_______________________________________________
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
  • Follow-Ups:
    • Re: "label index" wrong in 10.5?
      • From: Steve Mills <email@hidden>
References: 
 >"label index" wrong in 10.5? (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Adobe Illustrator CS3 'save' command appears to be buggy
  • Next by Date: Re: "label index" wrong in 10.5?
  • Previous by thread: Re: "label index" wrong in 10.5?
  • Next by thread: Re: "label index" wrong in 10.5?
  • Index(es):
    • Date
    • Thread