Jump to content

help with workflows for an Alfred newbie


Recommended Posts

Hi all, I am brand new to Alfred and bought the power pack. trying to get my head around workflows. I'm not a developer so be kind with me! 

With a couple of the workflows I have downloaded from the community (e.g. word search and outlook suite) there seems to be something stopping them working properly. I use the keyword to open the workflow in Alfred, but then something stalls. 

 

For example, I type "syn" in Alfred to open the word search. It instructs me to type a word to search. But when I do so, Alfred automatically reverts to "search google for ..." (that is what is set as the fallback for no results). The same thing happens with the outlook workflow: the initial keyword works fine – when I type olk it brings up "search outlook", but then when I try to pursue the action, no results are found. The same thing happens with the timezone workflow and others.

 

I have a feeling it might be something to do with the space bar, so it might be a setting somewhere on my Alfred preferences that I didn't realise I should have checked, but I'm struggling to figure it out by myself (and a lot of these workflows assume their users know all the developer-speak to customise to their own system - which I don't!). Any help much appreciated!

Link to comment

hello @cbrance happy to help!

 

Do you know how to show the debugger? Briefly:

1. in Alfred, type `?` plus the workflow with issues

2. open the workflow preferences page

3. click on the little bug icon (upper right corner) or command-D to open the debugger

4. run the command that doesn't work

5. copy the text appearing in the debugger, and post it here after removing sensitive material, if any

 

We can go from there... 

 

Link to comment

thanks so much @giovanni!

 

here's the text from the debugger trying to use outlook suites: 

 

[15:07:05.612] Outlook Suite[Script Filter] Queuing argument '(null)'
[15:07:05.731] Outlook Suite[Script Filter] Script with argv '(null)' finished
[15:07:05.736] ERROR: Outlook Suite[Script Filter] Code 1: [{'Name': 'RecentUnread', 'Query': 'to:me is:unread since:20'}]
Database missing ... building
Traceback (most recent call last):
  File "/Users/cbrance/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.45274DF5-78D1-42C4-B8E9-9042426BC5F1/main.py", line 473, in <module>
    main()
  File "/Users/cbrance/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.45274DF5-78D1-42C4-B8E9-9042426BC5F1/main.py", line 413, in main
    checkingTime()
  File "/Users/cbrance/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.45274DF5-78D1-42C4-B8E9-9042426BC5F1/util.py", line 188, in checkingTime
    getFolderData()
  File "/Users/cbrance/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.45274DF5-78D1-42C4-B8E9-9042426BC5F1/util.py", line 78, in getFolderData
    db = sqlite3.connect(OUTLOOK_DB_FILE)
sqlite3.OperationalError: unable to open database file

 

 

and here is the text from the debugger trying to use the word search workflow:

 

[15:07:43.298] Word Search[Script Filter] Queuing argument 's'
[15:07:43.316] Word Search[Script Filter] Script with argv '(null)' finished
[15:07:43.321] ERROR: Word Search[Script Filter] Code 127: /bin/bash: python: command not found
[15:07:43.390] Word Search[Script Filter] Queuing argument 'se'
[15:07:43.401] Word Search[Script Filter] Script with argv '(null)' finished
[15:07:43.405] ERROR: Word Search[Script Filter] Code 127: /bin/bash: python: command not found
[15:07:43.517] Word Search[Script Filter] Queuing argument 'sea'
[15:07:43.529] Word Search[Script Filter] Script with argv '(null)' finished
[15:07:43.531] ERROR: Word Search[Script Filter] Code 127: /bin/bash: python: command not found
[15:07:43.594] Word Search[Script Filter] Queuing argument 'sear'
[15:07:43.607] Word Search[Script Filter] Script with argv '(null)' finished
[15:07:43.609] ERROR: Word Search[Script Filter] Code 127: /bin/bash: python: command not found
[15:07:43.798] Word Search[Script Filter] Queuing argument 'searc'
[15:07:43.808] Word Search[Script Filter] Script with argv '(null)' finished
[15:07:43.811] ERROR: Word Search[Script Filter] Code 127: /bin/bash: python: command not found
[15:07:43.919] Word Search[Script Filter] Queuing argument 'search'
[15:07:43.930] Word Search[Script Filter] Script with argv '(null)' finished
[15:07:43.931] ERROR: Word Search[Script Filter] Code 127: /bin/bash: python: command not found

Link to comment

re Outlook Suite

10 minutes ago, cbrance said:

sqlite3.OperationalError: unable to open database file

are you using the new or old outlook? unfortunately the workflow only works with the older version of Outlook, which creates an sqlite database

 

Re Word Search,

I am guessing the workflow is outdated, if you point me to it I can double check

Link to comment

Ah I see, thanks both – I'll have a look at the python post. 

 

Yes I use the new outlook so that's the answer there ... 

 

this is the word search: https://www.packal.org/workflow/word-search

 

this is another workflow that has the same issue, timezone: it works for some of the workflow functions but not others:

 

[15:24:43.353] Logging Started...
[15:24:46.554] TimeZones[Script Filter] Queuing argument '(null)'
[15:24:46.714] TimeZones[Script Filter] Script with argv '(null)' finished
[15:24:46.719] STDERR: TimeZones[Script Filter] + readonly remote_info_plist=https://raw.githubusercontent.com/jaroslawhartman/TimeZones-Alfred/master/source/info.plist
+ remote_info_plist=https://raw.githubusercontent.com/jaroslawhartman/TimeZones-Alfred/master/source/info.plist
+ readonly workflow_url=https://github.com/jaroslawhartman/TimeZones-Alfred/raw/master/TimeZones.alfredworkflow
+ workflow_url=https://github.com/jaroslawhartman/TimeZones-Alfred/raw/master/TimeZones.alfredworkflow
+ readonly download_type=direct
+ download_type=direct
+ readonly frequency_check=7
+ frequency_check=7
+ readonly local_info_plist=info.plist
+ local_info_plist=info.plist
++ /usr/libexec/PlistBuddy -c 'print version' info.plist
+ readonly local_version=2.50
+ local_version=2.50
+ [[ -n 2.50 ]]
+ [[ direct =~ ^(direct|page|github_release)$ ]]
+ [[ 7 =~ ^[0-9]+$ ]]
++ find info.plist -mtime +7d
+ [[ -n '' ]]
[15:24:46.721] TimeZones[Script Filter] <?xml version="1.0"?>
    <items>
<!--1202308060724Los Angeles-->              <item arg="07:24 (Los Angeles)" valid="yes">                  <title>Los Angeles: 07:24</title>                  <subtitle> on Sunday, 06 August 2023 • United States • Timezone: America/Los_Angeles</subtitle>                  <icon>./flags/united_states.png</icon>              </item>
<!--1202308061024New York-->              <item arg="10:24 (New York)" valid="yes">                  <title>New York: 10:24</title>                  <subtitle> on Sunday, 06 August 2023 • United States (+1) • Timezone: America/New_York</subtitle>                  <icon>./flags/united_states.png</icon>              </item>
<!--1202308061424Coordinated Universal Time (UTC)-->              <item arg="14:24 (Coordinated Universal Time (UTC))" valid="yes">                  <title>Coordinated Universal Time (UTC): 14:24</title>                  <subtitle> on Sunday, 06 August 2023 • Coordinated Universal Time (UTC) • Timezone: UTC</subtitle>                  <icon>./flags/coordinated_universal_time_(utc).png</icon>              </item>
<!--1202308070024Sydney-->              <item arg="00:24 (Sydney)" valid="yes">                  <title>Sydney: 00:24</title>                  <subtitle> on Monday, 07 August 2023 • Australia • Timezone: Australia/Sydney</subtitle>                  <icon>./flags/australia.png</icon>              </item>
</items>

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...