Jump to content

DEVONthink Browser & File Action


Recommended Posts

Thank you PaulF! I manually deleted the 2 or 3 files that contained quotes but nothing changed; I suspect some other characters not allowed by JSON could still be in the names of my files (i.e.: carriage return?) but don't know how to do it; BTW where did you insert the find and replace script? thanks again

N

Link to post
  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Very useful - thank you for this workflow!

Just moved from years of being a devout Evernote user to DevonThink, and this workflow made that decision much easier. Cheers!

Wow, this workflow is amazing. I switched to Alfred (from Quicksilver!) back in 2015, mainly because I saw the potential for using it with DTPO. None of the Alfred/DTPO workflows available then satisf

Posted Images

Sorry to hear that.  As I stated earlier, the only change that I made was to escape quotes (") in group names, so if deleting your groups with quotes (") didn't help then I don't have any more insight.

 

I made the change in the script, dtp-list-groups.applescript, which I believe is the only AppleScript in the WorkFlow.

 

If this doesn't make sense, best wait for @brunoc but it isn't going to help with your other groups.

Link to post
  • 4 weeks later...
On 1/24/2020 at 10:26 AM, Jasondm007 said:

@brunoc Thanks for sharing this workflow. It's fantastic - and has really improved my experience with DEVONthink! Thanks a ton!!

 

Quick Question: Is it possible - either with some modifications to the "search groups" portion of the workflow or by creating a new action - to include Global Smart Groups? I use these a ton, and would love to quickly access them in the same manner that your fantastic workflow does for normal groups.

 

Thanks again!

 

@brunoc Previously, I asked about the possibility of adding Global Smart Groups to your workflow, which I'm sure is quite the Herculean task given how different they are from the standard groups the workflow currently searches for. Would it be possible - and perhaps much easier - to, instead, add an option for the workflow to search for local smart groups (similar to how you've added an option for searching tags)?

 

Personally, I've started using these a lot lately. And, since they don't have the same sidebar section as global smart groups, your workflow would be great for quickly accessing them.

 

Thanks for your consideration! I use this workflow religiously these days!!

Link to post
Posted (edited)
On 5/27/2020 at 3:22 PM, Jasondm007 said:

 

@brunoc Previously, I asked about the possibility of adding Global Smart Groups to your workflow, which I'm sure is quite the Herculean task given how different they are from the standard groups the workflow currently searches for. Would it be possible - and perhaps much easier - to, instead, add an option for the workflow to search for local smart groups (similar to how you've added an option for searching tags)?

 

Personally, I've started using these a lot lately. And, since they don't have the same sidebar section as global smart groups, your workflow would be great for quickly accessing them.

 

Thanks for your consideration! I use this workflow religiously these days!!

 

@brunoc I figured out how to implement the local smart group search, in a relatively hackneyed manner by making a few minor changes to the workflow's "dtp-list-groups.applescript" file. For some reason, you have to use the string version of "smart group." I have no idea why, but apparently it's a known problem?

 

In any case, here's the updated portion for others that might also want to be able to select local smart groups:

on reiterateOnGroup(theRec, thisDB)
	set my numCurrentLevel to (my numCurrentLevel) + 1
	tell application id "DNtp"
		repeat with r in (every child of theRec)
			set rType to ((type of r) as string)
			if ((type of r is group) or (rType is "smart group")) and (name of r is not in my lstIgnoredGroups) then
				my addToGroups(name of r, uuid of r, thisDB)
				if ((my numCurrentLevel < my numLevelMax) and (rType is not "smart group")) then
					my reiterateOnGroup(r, thisDB & " ▸ " & name of r)
				end if
			else if (my boolSearchTags is true) and (type of r is group) and (name of r is "Tags") and (my numCurrentLevel is 1) then
				set tmpSaveLevelMax to my numLevelMax
				set my numLevelMax to 2
				my reiterateOnGroup(r, thisDB & " ▸ " & name of r)
				set my numLevelMax to tmpSaveLevelMax
			end if
		end repeat
	end tell
	set my numCurrentLevel to (my numCurrentLevel) - 1
end reiterateOnGroup

 

Edited by Jasondm007
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...