I don't know how you captured this data in the first place, but if it could 
be exported to XLS or CSV, then it could be quickly enumerated inside xcel 
and then imported into TW.

-- Mark

On Thursday, February 15, 2018 at 10:52:16 AM UTC-8, @TiddlyTweeter wrote:
>
> I have a Jason structure (just stored right now as plain text in a 
> Tiddler) that I need to add numbers to to be able to save it so it can be 
> then imported with unique title fields.
>
> Here is are a few records so you can see the issue ... The full Tiddler is 
> thousands of records long.
>
> [
>  {
>  "title": "PERRY MASON",
>  "tags": "#perrymason",
>  "type": "text/plain",
>  "text": "I was just explaining things to Mr Huxley. Don't let me 
> interrupt. Now, these two goldfish are suffering from gill fever. How much 
> longer would you say they can live? If it's really gill fever, an hour or 
> two. Right, but watch.\n#PerryMason"
>  },
>  {
>  "title": "PERRY MASON",
>  "tags": "#perrymason",
>  "type": "text/plain",
>  "text": "Now, I spread a small amount of my preparation on this piece of 
> screening and place it in the water. \n#PerryMason"
>  },
>  {
>  "title": "PERRY MASON",
>  "tags": "#perrymason",
>  "type": "text/plain",
>  "text": "And within a remarkably short time Kind of a miracle, isn't it, 
> Mr Huxley? I wouldn't go so far as to say that, but it's certainly 
> impressive. Would you be interested in merchandizing the preparation 
> throughout the country? I may do better than that.\n#PerryMason"
>  }
> ]
>
>
> Ideally I want to have a macro that can change it to this ...
>
> [
>  {
>  "title": "PERRY MASON #0009",
>  "tags": "#perrymason",
>  "type": "text/plain",
>  "text": "I was just explaining things to Mr Huxley. Don't let me 
> interrupt. Now, these two goldfish are suffering from gill fever. How much 
> longer would you say they can live? If it's really gill fever, an hour or 
> two. Right, but watch.\n#PerryMason"
>  },
>  {
>  "title": "PERRY MASON #0010",
>  "tags": "#perrymason",
>  "type": "text/plain",
>  "text": "Now, I spread a small amount of my preparation on this piece of 
> screening and place it in the water. \n#PerryMason"
>  },
>  {
>  "title": "PERRY MASON #0011",
>  "tags": "#perrymason",
>  "type": "text/plain",
>  "text": "And within a remarkably short time Kind of a miracle, isn't it, 
> Mr Huxley? I wouldn't go so far as to say that, but it's certainly 
> impressive. Would you be interested in merchandizing the preparation 
> throughout the country? I may do better than that.\n#PerryMason"
>  }
> ]
>
>
> What I need is a macro that will...
>
>  (a) take a START NO., 9 in this case 
>
>  (b) and for the first match of ... 
>
> "title": "PERRY MASON"
>
> ... change it to ...
>
> "title": "PERRY MASON #0009"
>
>   (c) Then increment the number by 1 for each repeat.
>
> The leading Zeros are NOT essential but are helpful in sorting and finding 
> things later.
>
> Any help would be much appreciated.
>
> Best wishes
> Josiah
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/016c45cf-da78-45d2-a85a-d1a9799e05b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to