Removing links from a note

I suggest you email the document to @eastgate and see if Mark can make it work.

1 Like

Hi All -

Hope everyone’s been well.

Confused on easiest way to delete links from multiple notes quickly.

I’m trying to create a stamp that will simply remove all links, of all types, whether inbound or outbound, from multiple notes.

I’ve tried various combinations of unlinkTo() and unlinkFrom() working off the examples above, and looked at the tbref but I can’t figure out the syntax for such a stamp.

Some perhaps useful background: I’ve imported (for now crudely cut and pasting into the body of an email to be sent from my Thinkpad) some notes from Nota Bene, a Windows based word processing / bibliography/ textbase suite that I have used for many years. In that system I used “@” to denote a tag for the textbase module, eg “@Gregor” for notes concerning that character. I am using an explode action that puts all the text of each note in $Title and deletes $Text, as I want to use Map View to get my head around the story. When I do, Tinderbox seems to create links whenever it sees “@”….. and deletes from the $Text body my old fashioned tag. I’m thinking that this is expected behavior… If it is, one solution would be to somehow suppress this function during the explode, but it would be more useful long term for me to have the above mentioned stamp handy. Ideally it would function in all views, but map and outline are currently the most important to me.

Any and all help appreciated.

Open Document Settings: General

You want to uncheck "Recognize prototypes and @Places in notes names.

Thanks so much - that was simple.

If it sparks anyone’s interest, I’m still curious about a stamp to remove all tags from multiple notes.

Stamp: NoTags
Action: $Tags="";

Since stamps are applied in turn to each selected note, this will remove tags from all the selected notes.

Sorry, meant remove all links, as above, not tags. Off the top of my head I thought something like $Links=”” (with straight quotes) would work, but on inspection that’s not a system attribute, is why I went down the unlinkFrom() etc route to begin with…

Oh! Then you want unlink(this,all). That is, remove all the links from the selected note to other notes.

Ah ha! Thanks again.