Page 1 of 1

Scripting - How to get the list of labels

Posted: 08 Sep 2013 12:42
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

Re: Scripting - How to get the list of labels

Posted: 08 Sep 2013 15:47
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");

Re: Scripting - How to get the list of labels

Posted: 08 Sep 2013 20:45
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