Jump to content

bk161124

Member
  • Posts

    24
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by bk161124

  1. In the Workflow, in "Applescript handling Alfred WF UI:" the Applescript code reads as follows:

    on run argv
    	set theQuery to item 1 of argv
    	tell application "System Events"
    		keystroke space using control down
    		delay 0.1
    		keystroke theQuery
    	end tell
    end run

    Here 

    keystroke space using control down

    should be variable because people tend to have different Alfred triggers 😊

  2. It’s not working for me:

     

    ERROR: Search Alfred Workflows[Script Filter] Code 1: Traceback (most recent call last):
      File "/Users/MyUsername/Dropbox/Sync/Alfred.alfredpreferences/workflows/user.workflow.88E26D31-D3BB-49EB-B363-DFD40BC8BC70/alf.py", line 102, in <module>
        Workflows = Workflows()
      File "/Users/MyUsername/Dropbox/Sync/Alfred.alfredpreferences/workflows/user.workflow.88E26D31-D3BB-49EB-B363-DFD40BC8BC70/Workflows.py", line 23, in __init__
        self.workflows = self._get_workflows_list()
      File "/Users/MyUsername/Dropbox/Sync/Alfred.alfredpreferences/workflows/user.workflow.88E26D31-D3BB-49EB-B363-DFD40BC8BC70/Workflows.py", line 109, in _get_workflows_list
        i = self.get_item(w)
      File "/Users/MyUsername/Dropbox/Sync/Alfred.alfredpreferences/workflows/user.workflow.88E26D31-D3BB-49EB-B363-DFD40BC8BC70/Workflows.py", line 95, in get_item
        if plist_info['disabled'] and self.exclude_disabled:
    KeyError: 'disabled'

     

  3. 1 hour ago, deanishe said:

     

    Which folder are the DevonThink 3 files in? Have you added it to your search scope?

     

    I don't have DevonThink, but that would be the obvious explanation for why Alfred isn't finding the files (Spotlight always looks everywhere; Alfred only looks where you tell it to).

     

    Hi deanishe, thanks for your answer. The DT Databases are located in ~/Documents and they were there before, when it was DT2 and Alfred found the files. I’ll open a thread in the DT Forums and link it here.

     

    Edit: DevonThink Forum Thread

  4. Hi! I just switched to DevonThink 3 and with DevonThink 2 I could search and find all files inside my DT Databases with Alfred. This does not work anymore. I enabled the Spotlight Index of my Databases and the Files are found with Spotlight, but not with Alfred. Do I have to enable something else in Alfred to be able to find my files with Alfred? I thought it would just use the Spotlight index and the results should be the same…

     

    Thanks!

  5. Thank you for this really cool Workflow! If I may add a feature request: I’d like to search for an Author or Title and have the option to pass the page to cite to alfred. For my MMD to LaTeX Workflow I cite like this: [11][#Hagner2001;] - I already changed the Applescipt so I can paste the second part of the citation, [#Hagner2001;] but I’m really missing the option to define a page ?

     

    Would be great if you would consider adding this!

     

     

  6. Hi! Alfred does not show the correct icon for Markdown Files on my mac. I restared a couple of times, cleaned caches with Onyx, set a different default application for *.md files – all with no luck. I’m using Typora as my Markdown Editor of choice. In Finder/Path Finder the *.md icon is shown correctly:

     

    58dcffd1e4d7d_Screenshot1.png.77498ce1886450be78e649870de06780.png

     

    In Alfred File Navigation it looks like this:

     

    Screenshot.png.9c647efdb89c2a2217ab95b255c0ece4.png

     

    I’m using Alfred 3.3.1. [806] and I’m on macOS 10.12.4 (16E195)

     

    Thanks for any help!

     

  7. 22 hours ago, vitor said:

     

    Mind making a small video of the problem? You can record your screen with QuickTime Player. Also, open the debugger, and post the output when it fails.


    Why haven’t you opened a bug report in one of the existing issues, though? It’d be quicker than trying to roll your own workflow and it’d fragment options less.

     

    I think that a video wouldn’t help as simply nothing happens. The debugger states:

    Quote

    Starting debug for 'Zip'

    [2017-02-26 11:56:12][ERROR: action.script] 2017-02-26 11:56:12.827 osascript[6454:2396048] ApplePersistence=NO
    0:76: execution error: Can’t make text items 1 thru -2 of "Testfolder" into type text. (-1700)

     

    I’m guessing that’s because I rely on PathFinder? I haven’t filed a bug report because I thought it would be a good starting point for getting to know Alfred Workflows better and because I can add my own small enhancements now that you helped me figure out how to do it.

  8. 12 hours ago, vitor said:

    As for a workflow for zipping that works, try this one:

     

     

    Thanks for your answers! The Workflow by Carlos-Sz does not for for zipping folders for me unfortunately, if it did I hadn’t bothered building my own simple version.

     

    I’ll try and figure out how to change the directory according to the query input!

     

    10 hours ago, deanishe said:

    To add to what Vítor said, you should also quote your variables in commands (i.e. zip -jrv Archive.zip "$query", not just zip -jrv Archive.zip $query) or your script won't work if a filepath has a space in it.

     

    Added this!

  9. Hi! I’ve been trying to build a zip Workflow because those existing don’t work for me and I thought this might be a good exercise. Unforntunately I ran into a problem: My zip Workflow works fine for folders (they get zipped and the zipfile is created in the same folder) but when I zip multiple or just one file the archive is created in the Workflow Folder in /Library/Application Support/

     

    I can’t find why that is. For Folders I’m using a file action that does not accept multiple files and accepts only folders. I call a bash Script:

    query=$1
    
    zip -jr {query}.zip {query}
    
    echo -n $query

    For files the file action accepts multiple files and is set to +public.content. The bash script is nearly the same

    query=$1
    
    zip -jrv Archive.zip {query}
    
    echo -n $query

    I guess in the {query} object the path is given? How could I alter the code to write in the right directory? I can’t name the archive {query} because than the filename would be the name of all passed on files, right?

     

    Thanks for your help!

  10. Hi! Does anybody know how to change the media player in which the workflow searches for a currently playing song to a player other than iTunes (for instance to Swinsian or Vox)? 

     

    This workflow looks fantastic, but if you could use any player it would be even more awesome!

     

    Thank you!

×
×
  • Create New...