Jump to content

Mpco

Member
  • Posts

    10
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Mpco

  1. 15 hours ago, slyfox said:

    @Mpco

     

    Keyword trigger has a bump in-between. Something is not right.

     

    Entering a keyword with "search argument" does not pass the "search argument" to "dnt" script filter. It just triggers it. I then have to enter the search keyword once dnt is triggered.

     

    add {query} to Argument text box of Arg&Vars object.

  2. 48 minutes ago, slyfox said:

    Almost there.

     

    Instead of using a hotkey, what is best way to setup keyword as trigger? For example, for my notes search, I want to setup  "nt" keyword input + sear argument  will result in searching for the argument in a specific database?

    Sorry, I got it wrong. Just replace the Hotkey object with a Keyword object.

  3. On 7/23/2019 at 11:24 PM, slyfox said:

    What is the script that I can use to enter a keyword and have Alfred search within a pre-defined database? 

     

    The Script Filter whose keyword is dnt gets the selected database from the variables passed to it.

     

    If you want to setup a keyword to search within a predefined database, you can follow the steps below.

    1. add a Trigger-Hotkey, a Utilities-Arg and Vars object.

    2. connect Hotkey to Arg&Vars, connect Arg&Vars to Script Filter whose keyword is dnt.

    3. In Hotkey object, setup hotkey.

    4. In Arg&Vars object, remove {query} from Argument text box; add "selectedDbName" variable whose value is name of database; add "selectedDbUUID" variable whose value is uuid of database. You can get uuid by Copy Database Link in DEVONthink.

    5. Done.

     

    1754181277_ScreenShot2019-08-12at11_15_37.png.fbf81331ed03a4f9bb193e47254b6e13.png

     

    1764548150_ScreenShot2019-08-12at11_15_12.png.7c7cda7cfb234edbc3eca18cacbf4144.png

  4. 16 hours ago, lutefish said:

    Mpco - many thanks. When I run the script you posted directly, it works fine, and takes only a few seconds for results to appear in the Script Editor window. But, running dnt directly still just fails silently with a time-out. Running dnd and choosing a database and searching works fine. Is it connected somehow to dnt coming after dnd, rather than being a toplevel option somehow?

     

    Hi, download this version https://github.com/mpco/AlfredWorkflow-DEVONthink-Search/files/2657674/DEVONthink.Pro.Search.zip and test dnt.

    I changed some configs in it.

  5. On 12/5/2018 at 1:16 AM, lutefish said:

    It freezes - dnt logs this:

    Starting debug for 'DEVONthink Pro Search'

     

    [2018-12-04 09:12:50][input.scriptfilter] Queuing argument 's'

    [2018-12-04 09:12:50][input.scriptfilter] Queuing argument 'so'

    [2018-12-04 09:12:50][input.scriptfilter] Queuing argument 'sot'

    [2018-12-04 09:12:50][input.scriptfilter] Queuing argument 'soth'

    [2018-12-04 09:12:50][input.scriptfilter] Queuing argument 'sothe'

    [2018-12-04 09:12:50][input.scriptfilter] Queuing argument 'sotheo'

    [2018-12-04 09:12:51][input.scriptfilter] Queuing argument 'sothe'

    [2018-12-04 09:12:51][input.scriptfilter] Queuing argument 'sothew'

    [2018-12-04 09:12:51][input.scriptfilter] Queuing argument 'sothewo'

    [2018-12-04 09:12:51][input.scriptfilter] Queuing argument 'sothewor'

    [2018-12-04 09:12:51][input.scriptfilter] Queuing argument 'sothewort'

    [2018-12-04 09:12:52][input.scriptfilter] Queuing argument 'sotheworth'

     

    I have some large databases (>3 gigs) containing indexed folders themselves pointing to gigabytes of files, and I think that's where the script is failing, as a dnd search of that particular database also times out.

     

    Sorry, I don't have the large databases and can't test. But I attach a script file to search in all opened devonthink databases which is the core of dnt. You can download it, uncompress,  open, and then press ⌘Cmd-R to run. You can also change the search keyword theKeywords in second line of the script and test how long the searching in large databases.  Then paste the result here.

     

    Download: https://github.com/mpco/AlfredWorkflow-DEVONthink-Search/files/2651576/coreSearchScript.zip

  6. e2e02d7902639b523e513fac4898b609.png.173c0a5c14035d934b1d6cc9796469a1.png

     

    Usage

    • Type dnt + keywords to search in all opened databases.
    • Type dnd to choose which datebase to search
      • Press Enter, then type in keywords to search in the chosen database.
      • Press ⌘Command + Enter to list all tags in the database, then choose a tag and press Enter to list all documents which have the tag.
    • Type dnm + tag1, tag2, ... to list all documents which have these tags in all database. Tags inputed must be exact. For example, Tag aBcD can't be inputed as aBc or abcd

    After documents were listed,

    • Press Enter to open the selected result with DEVONthink.
    • Press ⌘Command + Enter to open with external editor.
    • Press ⌥Option + Enter to reveal result in DEVONthink.

     

    You can download it from Github

  7. This workflow can list documents and apps opened recently.
    Especially, it can list files opened recently by the foremost app.

    System: macOS 10.11+

     

    Github: https://github.com/mpco/Alfred3-workflow-recent-documents

     

    Usage

    You can press Enter to open the file in result, or press ⌘CMD-Enter to reveal it in Finder.

    Tap rr to list files opened recently by the foremost app.

    For example:

    • Recent folders will be listed when Finder is foremost.
    • Recent rtf, text files will be listed when TextEdit app is foremost.
    • Recent *.sketch files will be listed when Sketch app is foremost.
    • Recent *.xcodeproj project files will be listed when Xcode app is foremost.

    The subtitle of each result consists of ⏱modified time and ?path of the file.

    rr

    Tap rf to list recent folders.

    Opening recent folders is very common in use. Tapping rf is a more efficient way, even though you can activate Finder and then tap rr.

    rf

    Tap rd to list recent files.

    These files were recently opened by user, not like rr which is just for the foremost app.

    rd

    Tap ra to list apps opened recently.

    ra

    Exclude folders from the results.

    You can add private folder pathes separated by colon : to the Workflow Environment Variable ExcludedFolders. The results will not show private folders and any files inside them.

    For example: ~/privateFolder1/:/Users/G/privateFolder2/

     

     

     

     

     

     

     

     

     

     

×
×
  • Create New...