Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No results returned for custom perspectives with .v or .lv #38

Open
autonomygaps opened this issue Feb 26, 2019 · 14 comments
Open

No results returned for custom perspectives with .v or .lv #38

autonomygaps opened this issue Feb 26, 2019 · 14 comments

Comments

@autonomygaps
Copy link

I've been having this issue for a while: no results returned for custom perspectives with .v or .lv. The only result returned are for default perspectives. Just did a fresh re-install of the workflow, and ran the "use-of-3" because I am on OmniFocus 3.2.1 (v122.6 r325053). I can't see what the problem is.

@rhydlewis
Copy link
Owner

Can you:

  1. open Script Editor.app
  2. press ⌘-N to create a new script
  3. paste the attached AppleScript into the window
  4. press ⌘-R to run the script
  5. paste the text from the Result pane in a comment to this issue

please?

Cheers,
Rhyd

list_perspectives.txt

@autonomygaps
Copy link
Author

autonomygaps commented Feb 27, 2019 via email

@rhydlewis
Copy link
Owner

Can you try this? Rename any perspectives containing the "–" character e.g. "–––––––––––––––––––––" or "Copy of –––––––––––––––––––––" so that they don't contain that character. This should solve the problem.

@autonomygaps
Copy link
Author

autonomygaps commented Feb 28, 2019 via email

@rhydlewis
Copy link
Owner

Punctuation shouldn't be a problem (I added a perspective called "TCHa & SPV" and it works for me). Plan B: can you open Alfred's Preferences and send me the debug log?

  • Show Alfred preferences (keyword 'alf')
  • Click 'Workflows' in the tool bar
  • Choose 'Search Omnifocus' from the list of workflows on the left
  • Click on the 'Debug' to toggle debugging mode (see Alfred's help page for more info)
  • Choose 'All information' from the Log dropdown
  • Open Alfred and type .lv
  • Copy the debug output and post it as a response

Cheers

@autonomygaps
Copy link
Author

autonomygaps commented Mar 1, 2019 via email

@rhydlewis
Copy link
Owner

rhydlewis commented Mar 4, 2019

This is the perplexing bit:

07:07:45 search.py:117 DEBUG
07:07:45 search.py:119 DEBUG    Perspective: , (), Omnifocus Custom Perspective, /Applications/OmniFocus.app/Contents/Resources/[email protected]

I'll send you a debug version of the workflow to see why this is happening.

@rhydlewis
Copy link
Owner

Hi Joel,

Can you download, unzip and then import the attached workflow please? Once done, can you re-run .lv with the Alfred log open and share the results with me please?

Search OmniFocus v2.0.4.debug.alfredworkflow.zip

Cheers,
Rhyd

@autonomygaps
Copy link
Author

autonomygaps commented Mar 4, 2019 via email

@rhydlewis
Copy link
Owner

Aargh! This line shows no perspectives returned from the AppleScript call:

23:05:20 omnifocus.py:28 DEBUG >>> ['']

Back to the drawing board. I'll have another think...

@rhydlewis
Copy link
Owner

Hi Joel,

If you install and run this workflow:

List Omnifocus Perspectives.alfredworkflow.zip

(which should get your list of perspectives and display them as a comma separated list), do you see output like this:

example output

Reason I'm asking: I'm trying to work out if there's a permission issue that prevents the workflow from getting access to your perspectives.

Cheers,
Rhyd

@autonomygaps
Copy link
Author

autonomygaps commented Mar 15, 2019 via email

@rhydlewis
Copy link
Owner

I'm stumped - sorry. It feels like a permission issue (i.e. the workflow isn't allowed to run the AppleScript to get the names of the perspectives) or the workflow doesn't cope well with unicode text in the perspective text. Since you're seeing different results on your iMac compared to your laptop is also muddying the water a little.

I'll have another think but not sure I'll be able to resolve this anytime soon.

@autonomygaps
Copy link
Author

autonomygaps commented Mar 18, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants