Sorry this is a newbie question I have highlighted a few words of text and in the clip I want to do the equivalent of: ^!MENU Modify/Text Case/Lower case ^!Set...
21075
nullclip
Oct 2, 2010 2:06 pm
I am not sure if this is a bug or a feature. I wrote the following clip with the intent to open all URLs listed in an outline topic. (Is there a better way?)...
21076
Sheri
silvermoonwo...
Oct 2, 2010 4:01 pm
... Might work if you added ^!Activateapp as the first command in your loop. ... Keyboard commands do not work on NoteTab's own dialogs because processing is...
21077
Axel Berger
absalom_nemini
Oct 2, 2010 7:00 pm
... If you were to tell us what it is you want finally to achieve by this, we'd probably be able to suggest a better way, but this does exactly what you...
21078
loro
yastupidhoo
Oct 2, 2010 9:31 pm
... I saw you already have a regex clip, here's a couple of other ways. ^!Set %new%=^$FileToUrl("^$StrLower("^$GetSelection$")$")$ The above will also turn any...
21079
loro
yastupidhoo
Oct 2, 2010 9:38 pm
Hi again Bruce! :-) Forgot to warn you that both clips are one-liners. Email may break them in two. Lotta...
21080
Axel Berger
absalom_nemini
Oct 2, 2010 10:05 pm
... Lotta, it seems to me you mixed up Jeff's question in the off-topic list with Bruce's, unless there's something important I overlooked. Axel...
21081
nullclip
Oct 3, 2010 12:26 pm
Sheri, Thank you for your effective solution. You were correct on both accounts. My clip works as intended work if I added ^!Activateapp as the first command...
21082
loro
yastupidhoo
Oct 3, 2010 1:35 pm
... Nuh. Bruce wanted spaces URL encoded and that's what ^$FileToUrl()$ does - and then some. I suspect the strings really are URLs and maybe getting other...
21083
Axel Berger
absalom_nemini
Oct 3, 2010 2:03 pm
... Sounds reasonable. I repeat my earlier question: Bruce, if you were to tell us what it is you want that variable for, we'd probably be able to give better...
21084
Sheri
silvermoonwo...
Oct 3, 2010 4:26 pm
... I don't think I can give you a satisfactory answer, except to say that since you combined the F9 and Enter keystrokes onto one Keyboard command, when...
21085
Paul
xboa721
Oct 3, 2010 8:19 pm
Hi, Who's up for a challenge? (HELLLLLPPPPPP!!!) I'd like to search a text file for curly delimited brackets, that may also be nested. I would then like to...
21086
Axel Berger
absalom_nemini
Oct 3, 2010 8:50 pm
... No solution, just a remark: NoteTab already contains the necessary code. You can Find the opening bracket and with <Ctrl><M> find the matching closing one....
21087
John Shotsky
shotsky1
Oct 3, 2010 8:53 pm
If you can provide a sample of the before, and a sample of the after, we can probably do it with clip code. Some real samples always help, so we can just write...
21088
Don
dpasseng
Oct 3, 2010 9:39 pm
we have clips that find matching brackets even while nested so highlight a set and then do your magic inside the find...
21089
Sheri
silvermoonwo...
Oct 3, 2010 10:17 pm
... I have no idea about the rest of it, but if you put the cursor at beginning of the file and execute this clip repeatedly until you get No More Matches, it...
21090
Paul
xboa721
Oct 4, 2010 9:42 am
Thanks all for the prompt replies. Sheri, thankyou, that's a nice bit of code to start from. ... e.g. {A{B|C}|D|E} could be parsed by the |'s NOT inside a...
21091
Paul
xboa721
Oct 4, 2010 9:50 am
One more thing Sherri, ... I'm opening a file to process (and i'm learning by doing...) so I have to run the code (somehow) on the opened file. As I...
21092
diodeom
Oct 4, 2010 2:44 pm
... ;Locate a pair of solo or "innermost" brackets ^!Find "{[^{}]++}" WRS ;Leave the loop if no more found (presumably to ;the label which checks if another...
21093
syntax@...
syntaxpb
Oct 4, 2010 6:49 pm
Thanks Sheri, this clip does exactly what I need. I'm writing back only now, but I could not get back to this topic earlier. Regards, Piotr On Wed, 15 Sep 2010...
21094
Sheri
silvermoonwo...
Oct 4, 2010 7:57 pm
... Looks very clever, Dio, bravo! :) Not entirely sure about that calc. Would this possibly give more random results? ^!Set %n%=^$Calc(rnd(^$Calc(^%ar0% -...
21095
diodeom
Oct 5, 2010 5:47 pm
... Sheri, (hello! :) I believe that for cases where there are three or more alternatives, your suggestion would actually give the first and the last choices...
21096
diodeom
Oct 5, 2010 5:50 pm
... If of interest to anyone, I utilized the following makeshift clip to better test "fairness" of various randomizing takes: ;Number of random numbers to...
21097
diodeom
Oct 5, 2010 6:31 pm
... Sorry, there is a missing equal sign after %h%....
21098
Sheri
silvermoonwo...
Oct 6, 2010 4:51 pm
... Hi Dio. Statistics is not my forte, called it Sadistics when I took that course. :D I can see from your test clip that mine does skew toward the 2nd ...
21099
diodeom
Oct 6, 2010 7:50 pm
... No, the remote possibility of getting 4, just like 0 in my previous take, definitely exists. For a quick (and dirty but "fair") fix I'd go back to CEIL and...
21100
diodeom
Oct 6, 2010 9:49 pm
... For numbers of alternatives (array elements in %ar%) kept under double digits, this seems pleasingly simple: ^!Set %n%=^$StrRandom(1;1..^%ar0%)$...
21101
Eb
ebbtidalflats
Oct 6, 2010 11:21 pm
Hi Diodem, That's a nifty utility, but I couldn't resist changing it a bit, to make the counting more efficient: ;loop counter, Num random numbers to generate,...
21102
Eb
ebbtidalflats
Oct 6, 2010 11:23 pm
So have you tested it with your distribution counter? <g>...
21103
diodeom
Oct 7, 2010 3:42 pm
Cool; I wish I had thought of it here, Eb -- directly incrementing results in an array. And it shaves a respectable half a second of almost three consumed by...