Page 2 of 2

Re: getinfo, newtab, closetab, ...

Posted: 25 Oct 2009 18:35
by Stefan
admin wrote:Great idea!! Bump me later.
Bump! :D

And i wanna add:

getinfo("Tag")
getinfo("Comment")


I wanna do:
//update the comment and add content
$old = getinfo("Comment");
comment = "Checked on 2009-10-25 <crlf> " . $old;

//get list of all files marked with red tags
$tag = getinfo("Tag")
IF $tag=='red' Then $array = $array . "<crlf><curitem>"

Re: getinfo, newtab, closetab, ...

Posted: 25 Oct 2009 19:11
by jacky
Stefan wrote:And i wanna add:

getinfo("Tag")
getinfo("Comment")
For what you want, you shouldn't use getinfo() - which is "general" - but look into report() instead, which allows to gather information on (selected) items (files/folders) on List. It does support a few fields for name, size, etc as well as, of course, {TagID}, {Tag} and {Comment}

(All that report() is really missing, is an argument <source> :idea:)

Re: getinfo, newtab, closetab, ...

Posted: 26 Oct 2009 00:20
by Stefan
jacky wrote:
Stefan wrote:And i wanna add:

getinfo("Tag")
getinfo("Comment")
For what you want, you shouldn't use getinfo() - which is "general" - but look into report() instead, which allows to gather information on (selected) items (files/folders) on List.
Ahh so? Thanks jacky, now i did some test with report :D At last :P

Simple:
$check = report("{Tag}",1); msg <curname> has tag $check;
$check = report("{comment}",1); msg $check;

Advanced:
$array=""; $check = report("{Tag}",1); IF $check=='Red' {$array = $array . <crlf> . <curitem>}; IF strlen($array)>0 {msg $array};
$check = report("{comment}",1); IF strlen($check)>0 {comment "<date><crlf>" . $check;}

Dankeschön :lol: