Jump to content

johnathanz

Member
  • Posts

    14
  • Joined

  • Last visited

Posts posted by johnathanz

  1. I'm modifying the Alfred Notion Workflow: https://github.com/wrjlewis/notion-search-alfred-workflow

     

    Here's my modified version: https://www.dropbox.com/s/5gk76u8aln22opc/Notion Search_JZ.alfredworkflow?dl=0

     

    Basically trying to pass whatever user's chosen from "Script Filter" to "Run script"

    image.png.2df8061e9e6df1b92183c2182f8cc32c.png

     

    Unfortunately, it's not working

     

    1. with AppleScript - fails because Alfred adds trailing white space (stripping it out doesn't work 🤔)
      set theQuery to item 1 of argv
    
        tell application "System Events" to tell process "Notion"
            click menu item "New Window" of menu 1 of menu bar item "File" of menu bar 1
        end tell
    
    
      return theQuery
    end run

    image.png.6cefb28969879e5bd96dd1f36e709209.png

     

    1.  tried a Python Run Script (which opens 2 New Windows 🤯)
    import sys
    from subprocess import Popen, PIPE
    
    query = sys.argv[1]
    
    script = '''
        # activate application "Notion"
        tell application "System Events" to tell process "Notion"
            click menu item "New Window" of menu 1 of menu bar item "File" of menu bar 1
        end tell'''
    
    p = Popen('osascript', stdin=PIPE, stdout=PIPE, stderr=PIPE)
    p.communicate(script)
    
    sys.stdout.write(query)
    

     

    Any idea:

    1) Why the AppleScript adds trailing spaces?
    AND 
    2) Why the Python Run Filter passing parameter using `sys.stdout.write()` to a Python Run Script to Open URL opens the URL twice?

     

    Thanks!

  2. Hi everyone

     

    I recently switched over from Spotify to Apple Music. Love the fact that Alfred has Mini Player built in.

     

    However on a reboot, when I tried to start Mini player (using hot key, or "iTunes" keyword), it just crashes Alfred.

    To the extent where hot key used to invoke Alfred stops working. Activity Monitor lists Alfred has still fine. I'd have to kill Alfred from Activity Monitor, and restart it for Alfred to work again.

     

    Seem to only happen if I try to start Mini player when iTunes isn't already running. 

     

    I'm used to how Alfred Spotify Mini Player will try to start Spotify if it's not running, wondering if this correct behaviour for Alfred Mini Player?

    Running on

    • Mac Mojave (10.14.6)
    • Alfred v 4.0.9 [1144]
    • iTunes Version 12.9.5.5

     

     

  3. Hi there

     

    Alfred v3.2.1[768] currently hangs on Sierra 10.12.2 (Macbook Pro 2016) when opening an App for the first time.

     

    What is happening is Mac's "are you sure you want to open this app, you just downloaded it from the internet" () appears behind Alfred, with the window focus, freezing the Alfred window.

     

    Steps to repeat:

    1) Download an app like Bartender, Skitch etc from the web

    2) Move the app to Application folder, give Alfred about 2 sec to index it

    3) Try to open the new Application with Alfred (i.e. CMD-Space, type "Bartender", press Enter)

    4) Alfred freezes

    Upon killing Alfred with Activity Monitor, you'll see a screen like below appearing behind Alfred

    install-app-mac-warning.jpg

     

    Previously, on El Capitan, I think Alfred moved the modal screen in front of Alfred, and dismissed the Alfred bar itself.

     

    Let me know if further info is required.

     

     

  4. What I've done is add Evernote as an app under "User & Groups" > Login

     

    With the "hide" option ticked. This way Evernote starts on bootup and you don't get the issues as mentioned.

     

     

     

    Carlos-Sz, I'm curious as to how "ent" works, I thought it would only search through the title of the notes, but that doesn't seem to be case (see attached screens for "ent" and "ens" comparisons). May be I'm understanding this wrong?

     

    ent

    http://imgur.com/1s1vinR,ozsgtcP#1

     

    ens

    http://imgur.com/1s1vinR,ozsgtcP

     

    This is a brand new install of the latest plugin as of yesterday.

     

    Again, brilliant plugin, really appreciate your work on it. It's been an indispensable tool for my daily use!

  5. Hi there

     

    is there anyway to launch an application (e.g. Marked 2) with a specific path?

     

    I'm trying to open a file with an application that I wish for Alfred to launch, so something along the lines of:

     

    "marked 2 <path to file>"

     

    Should hopefully open the file in marked 2.

     

    Thanks!

  6. Hi. The workflow will only bring Evernote to the foreground when you press “Show in Evernote” menu item.

     

    @ All:

     

    By the way here is the latest build (alpha) with a lot of new features and improvements. See help for details (keyword en?). Download Now.

     

    The process I use to query a note is: e.g. type 'ent recipes', and press CMD-2, CMD-X to get the right note.  Pressing ENTER after typing 'ent recipes' will only show me Evernote.

     

    I think it's an issue with having too many desktops.  I usually have up to 5 desktops running across 2 monitors.  And the script basically brings up the note on one of the other desktop that's not in focus right now.

     

    Is there anyway to modify the script give the note focus?

×
×
  • Create New...