--- In [email protected], "jroncalm" <jroncal2...@...> wrote:
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
> > >
> > Currently you must use the new Prompt mechanism to assign a new
> > category to an existing note. Alternatively, you can edit the
> > note files in a text editor and put the new category names (with
> > backslashes) into their headers. 
> >
> 
> Sure, but 31 categories X 20 notes / cat = aprox 600 ???
> It is a few hard.
> Anyway, thanks.
> 

How do you want to do it?

If you can move the files to right places, you can make a script to rewrite the 
note header on each file.

If you want to open each note and reassign it, you can use a script (assigned 
to a hotkey) to set the category of the active note to a category selected from 
a menu. When you close the note it will go to the right place.

This should work to do that:

local h=win.handle("active")
if (win.class(h)!=="powerpronote")
  quit
static cats=""
file.allfiles(ppronotesfolder, ;;+
?Xstatic cats=cats++remove(_file_, ;;+
length(ppronotesfolder))++"\r\n"X, 5, 1)
cats=regex.pcrereplace(?"(?mi)^(Date|Open).+\R", cats,"")
local v=vec.createFromLines(cats)
local i=v.showmenu()
if(i==-1)
  quit
local selected=v[i]
note.setcategory(h,selected)
quit

Regards,
Sheri

Reply via email to