not sure if the following is a bug or a simple newbie error - please enlighten me
Wiki links are set to Names and Aliases, and work as expected. I would like to include only certain types of items contained in the database in the scope for automatic wiki linking.
I was assuming that it should be possible to make automatically established wiki links disappear by setting the “Exclude from Wiki Links” checkmark in the linked item’s inspector.
However, this is not the case - the link remains. Am I missing something here?
Closing and reopening the database did the trick! Deselecting and reselecting the file seems to be insufficient in my case. I tried several times with different files.
A follow-up question: I would like all documents except Markdown that are added to the database in the future to be excluded from wiki linking automatically. However, there doesn’t seem to be a Smart Rule action to make this happen.
For now, I’ve created a Smart Group and set an alert to remind me to check the “Exclude from Wiki Linking” check box.
Is there a script or workaround to automate this? If not, I would like to add this as a feature request.
@cgrunenberg Surprisingly there’s no AppleScript property to exclude WikiLinks:
exclude from classification - Exclude group or record from classifying.
exclude from search - Exclude group or record from searching.
exclude from see also - Exclude record from see also.
exclude from tagging - Exclude group from tagging.
So at the moment it’s not possible to automate the process.
So to conclude, if a smart rule action to exclude from wiki links could be added in the future that would be great. Same for automatically excluding from Search, Classification etc.
In the meantime, it’s no big deal for me to set up a Smart Group and occasionally Select All → set checkmark for “Exclude from Wiki Linking”.
Sometimes your responses to requests could only be faster if you actually drove round to users’ houses and rewrote the code on scene! You’re great, the lot of you!
Just wanted to follow up on this thread, as a smart rule to exclude items from wiki linking would be quite useful. It doesn’t seem to be available in the current release, 3.7.2.
Is adding this feature still in scope for an upcoming release @cgrunenberg ? It would be much appreciated.
There’s no built-in Smart Rule but exclude from Wiki linking is now available.
-- Smart Rule - Exclude from Wiki linking
on performSmartRule(theRecords)
tell application id "DNtp"
try
repeat with thisRecord in theRecords
set exclude from Wiki linking of thisRecord to true
end repeat
on error error_message number error_number
if the error_number is not -128 then display alert "DEVONthink" message error_message as warning
return
end try
end tell
end performSmartRule