Posted by member 12025 on 2004-08-08 13:19:55 link

mzScript lets you separate a string into two parts at a time by one character. PITA, as I need to make no less than three parts per level of expansion.

Textedit I'm not too familiar with, but if I need to save to the HD and load from the HD, that is unacceptable. Each time a task is added or removed from the taskbar, go to the HD at least four times? Each time an item is added or remove from the systray go to the HD six times? Twice for changing any VWM setting, etc..

I'll use ( and ) here, because they are fresh in my mind, and easier to read than %{ and }.

!varSet (tmp)BoxImageLeftEdge "((style)_(thick)_edge_(grip)_left)"

Where style, thick and, grip are set separately, but from the same base (tmp, which is equal to the only parameter passed). Let's say tmp is VWM. This is working fine. What I want...
!eval !varSet (tmp)BoxImageLeftEdge "(((tmp)style)_((tmp)thick)_edge_((tmp)grip)_left)"

So it's one line instead of x+3. That becomes
expansion 1 (maybe more than one step, but one level): "((VWMstyle)_(VWMthick)_edge_(VWMgrip)_left)"
2: "(singlebrace_1_edge_2_left)"
3" "1"

I have a way to do it now, but I may as well just do what I have been doing rather than use it (very, very long version that goes overboard in making lists--should work, but big).

(I'm beginning to think maybe this should have been in the code section :))