Jump to content

claui

Member
  • Content Count

    4
  • Joined

  • Last visited

Posts posted by claui

  1. Hey sr_navarre,

     

    Sorry for my late reply. Just came across your post on /r/Alfred.

     

    Unfortunately, the API I use right now – i. e. the command-line tools mdls and mdfind – are not really designed for this task.

    I tried a few ideas to add (at least limited) support for subfolders but got nowhere with that.

     

    Maybe someone more familiar with the Metadata API than me has an idea as to how to implement this quickly? I’ll happily accept pull requests to the alfred-random_file_picker repo.

     

  2. To allow Unicode characters:

    […]

      

    But, at least for me, was not working if the Calendar app was not opened. Duplicating the "activate" line solves the problem.

    For me, it only seems to work when I give Calendar a bit of time to get ready, e. g. when I insert a delay like this:

     

    set the clipboard to "{query}" as text
    
    tell application "Calendar" to activate
    
    delay 0.5
    
    tell application "System Events"
    	keystroke "n" using {command down}
    	keystroke "v" using {command down}
    	keystroke return
    end tell
    
×
×
  • Create New...