Jump to content

laurentiutrif

Member
  • Posts

    4
  • Joined

  • Last visited

Posts posted by laurentiutrif

  1. Just so I can figure out if it's a problem with the AppleScript part of the workflow, could you open up AppleScript Editor, create a new document and see if this code runs? (You'll need to have Chrome open.)

    on run argv
        set theOutput to ""
        set windowIndex to 1
        
        tell application "Google Chrome"
            repeat with theWindow in windows
                try
                    set tabIndex to 1
                    repeat with theTab in tabs of theWindow
                        set theOutput to ((theOutput & windowIndex as string) & ":" & tabIndex as string) & "
    " & URL of theTab & "
    " & title of theTab & "
    "
                        set tabIndex to tabIndex + 1
                    end repeat
                end try
                set windowIndex to windowIndex + 1
            end repeat
        end tell
        
        theOutput
    end run
    

    You should see something like this in the output if it's working properly:

    "1:1
    https://www.google.com/
    Google
    1:2
    http://www.alfredforum.com/forum/3-share-your-workflows/
    Share your Workflows - Alfred App Community Forum
    1:3
    
    Search Safari and Chrome Tabs - Share your Workflows - Alfred App Community Forum
    "
    

    Also, does it get stuck on "Retrieving tabs...", or does it eventually show your fallback results? And what version of OS X are you running?

     

    Done - http://d.pr/i/F8Ab 

    It gets stuck on "Retrieving tabs...".

  2. Sorry about that. Try double clicking the script filter in Alfred Preferences and set the script to this:

    /usr/bin/ruby search_tabs.rb "{query}" 2> ~/Desktop/errorlog.txt
    

    Try typing 'tabs' into Alfred again, then check your Desktop for an errorlog.txt file. Let me know if any error messages were logged there.

     

    I just did. No error log. The errorlog.txt file is empty.

×
×
  • Create New...