Re: Retrieve all available Finder tags on Monterey and later

2023-02-16 Thread Leo Revzin via Cocoa-dev

Solution found - credit goes to Thomas Tempelmann and James Walker:

sqlite3 
~/Library/SyncedPreferences/com.apple.kvs/com.apple.KeyValueService-Production.sqlite 
"SELECT writefile('path/to//tags.plist', ZPLISTDATAVALUE) FROM 
ZSYDMANAGEDKEYVALUE WHERE ZKEY = 'FinderTagDict';"

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Retrieve all available Finder tags on Monterey and later

2023-01-09 Thread Leo Revzin via Cocoa-dev
I wonder if anyone has figured out a way to retrieve ALL available 
Finder tags on Monterey and later?


On pre-Monterey systems, it was possible by reading this file:

~/Library/SyncedPreferences/com.apple.finder.plist

However, this file doesn't exist anymore.

Other methods (such as reading Finder prefs or fileLabels of 
NSWorkspace) only return the 8 standard labels - but not any custom tags 
created by the user.


Googling the subject didn't produce any results.


Thanks for any info,
Leo
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com