Scripting - How to get the list of labels

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
nerdweed
Posts: 652
Joined: 25 Feb 2012 07:47
Location: XY64 Latest Beta , Win 11, 96dpi, 100%

Scripting - How to get the list of labels

Post by nerdweed »

1. How can I get the list of available labels - apart from reading the tags.dat file.

2. Additionally, any other way to get to tags, labels, comments of a file apart from using the report () function and reading the tags.dat

For point 2, I can get the work done and is just to check if I am doing it inefficiently.

I couldn't get any related function for point 1, if there isn't any, I trust that can be added to the get() function

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Scripting - How to get the list of labels

Post by serendipity »

nerdweed wrote:1. How can I get the list of available labels - apart from reading the tags.dat file.

2. Additionally, any other way to get to tags, labels, comments of a file apart from using the report () function and reading the tags.dat

For point 2, I can get the work done and is just to check if I am doing it inefficiently.

I couldn't get any related function for point 1, if there isn't any, I trust that can be added to the get() function
You can use property() function for each item, eg:

Code: Select all

text property("#label");

nerdweed
Posts: 652
Joined: 25 Feb 2012 07:47
Location: XY64 Latest Beta , Win 11, 96dpi, 100%

Re: Scripting - How to get the list of labels

Post by nerdweed »

serendipity wrote:
nerdweed wrote:1. How can I get the list of available labels - apart from reading the tags.dat file.

2. Additionally, any other way to get to tags, labels, comments of a file apart from using the report () function and reading the tags.dat

For point 2, I can get the work done and is just to check if I am doing it inefficiently.

I couldn't get any related function for point 1, if there isn't any, I trust that can be added to the get() function
You can use property() function for each item, eg:

Code: Select all

text property("#label");
Thanks serendipity. Quite useful

Post Reply