idpaterson / alfred-wunderlist-workflow

Unbelievably fast task entry in Wunderlist with due dates, reminders, and recurrence
298 stars 8 forks source link

Task Creation Issues #38

Closed ghost closed 10 years ago

ghost commented 10 years ago

When I type in a command it brings up the proper Wunderlist dropdowns but then it seems as though Alfred will then try to perform an action as normal. For example, if I type "wl test task" or "wlin task test" - Wunderlist will open, no task will be created, and a google search will be performed for "task test".

idpaterson commented 10 years ago

Thanks for reporting, let's dig into this a bit. If you are familiar with the terminal, could you please check the following?

  1. cd to your Alfred preferences
    • By default this will be ~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows unless you use Dropbox sync or similar
  2. find . -name wunderlist.scpt to find the workflow directory, then cd into it
  3. From the workflow directory, run this and let me know if there are any errors in the terminal osascript -e 'tell (load script POSIX file ((do shell script "pwd") & "/wunderlist.scpt")) to addTaskToInbox("testing")'
    • You may need to go into System Preferences to enable the Accessibility control setting for Terminal.app. If so, try this again afterward.
  4. To also test the wl command, try this: osascript -e 'tell (load script POSIX file ((do shell script "pwd") & "/wunderlist.scpt")) to addTask("1::testing")'

It would also be helpful to have a screenshot of your Wunderlist app since that's usually a good place to start.

ghost commented 10 years ago

Hi there-

Thanks for the information. Honestly, I am not terribly familiar with terminal or how to accomplish this. Sorry! If you dumb it down a bit I'm sure I can help more. Let me know what you would like a screenshot of specifically as well.

Thanks

Alex

On Tue, Feb 11, 2014 at 9:10 AM, Ian Paterson notifications@github.comwrote:

Thanks for reporting, let's dig into this a bit. If you are familiar with the terminal, could you please check the following?

  1. cd to your Alfred preferences
    • By default this will be ~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows unless you use Dropbox sync or similar
      1. find . -name wunderlist.scpt to find the workflow directory, then cd into it
  2. From the workflow directory, run this and let me know if there are any errors in the terminal osascript -e 'tell (load script POSIX file ((do shell script "pwd") & "/wunderlist.scpt")) to addTaskToInbox("testing")'
    • You may need to go into System Preferences to enable the Accessibility control setting for Terminal.app. If so, try this again afterward.
      1. To also test the wl command, try this: osascript -e 'tell (load script POSIX file ((do shell script "pwd") & "/wunderlist.scpt")) to addTask("1::testing")'

It would also be helpful to have a screenshot of your Wunderlist app since that's usually a good place to start.

Reply to this email directly or view it on GitHubhttps://github.com/idpaterson/alfred-wunderlist-workflow/issues/38#issuecomment-34769607 .

idpaterson commented 10 years ago

No problem, let's try this

  1. Download the TerminalFinder workflow, which makes it easy to open the Terminal to a specific Finder folder
  2. Open Alfred preferences (type alfred in Alfred)
  3. Go to Workflows tab
  4. Right click Wunderlist workflow
  5. Select Show in Finder
  6. Activate Alfred then type ft in Alfred
  7. Select Finder > Terminal

The terminal should now open to the location of the Wunderlist workflow, which is a whole lot easier than the steps I gave you before to find it.

Paste the following into the terminal

osascript -e 'tell (load script POSIX file ((do shell script "pwd") & "/wunderlist.scpt")) to addTaskToInbox("testing")'

Go to System Preferences > Security & Privacy > Privacy > Accessibility, click the lock in the lower left, then enable the checkbox beside Terminal.app.

Paste the following into the terminal again

osascript -e 'tell (load script POSIX file ((do shell script "pwd") & "/wunderlist.scpt")) to addTaskToInbox("testing")'

It should add a new task in your inbox, but if it does not we might get lucky and see an error message instead. Copy and paste or send a screenshot of that (Cmd+Shift+4 then drag a box around the terminal window) and let me know whether it added the task or not.

Repeat the same steps with this one, which tests wl rather than wlin:

osascript -e 'tell (load script POSIX file ((do shell script "pwd") & "/wunderlist.scpt")) to addTask("1::testing")'
ghost commented 10 years ago

Hi there!

Thanks for the info. I have tried everything as you requested and sadly the same thing happened, without an error message. Thoughts?

Thanks!

On Tue, Feb 11, 2014 at 9:37 AM, Ian Paterson notifications@github.comwrote:

No problem, let's try this

  1. Download the TerminalFinder workflowhttps://github.com/LeEnno/alfred-terminalfinder/blob/master/TerminalFinder.alfredworkflow?raw=true, which makes it easy to open the Terminal to a specific Finder folder
  2. Open Alfred preferences (type alfred in Alfred)
  3. Go to Workflows tab
  4. Right click Wunderlist workflow
  5. Select Show in Finder
  6. Activate Alfred then type ft in Alfred
  7. Select Finder > Terminal

The terminal should now open to the location of the Wunderlist workflow, which is a whole lot easier than the steps I gave you before to find it.

Paste the following into the terminal

osascript -e 'tell (load script POSIX file ((do shell script "pwd") & "/wunderlist.scpt")) to addTaskToInbox("testing")'

Go to System Preferences > Security & Privacy > Privacy > Accessibility, click the lock in the lower left, then enable the checkbox beside Terminal.app.

Paste the following into the terminal again

osascript -e 'tell (load script POSIX file ((do shell script "pwd") & "/wunderlist.scpt")) to addTaskToInbox("testing")'

It should add a new task in your inbox, but if it does not we might get lucky and see an error message instead. Copy and paste or send a screenshot of that (Cmd+Shift+4 then drag a box around the terminal window) and let me know whether it added the task or not.

Repeat the same steps with this one, which tests wl rather than wlin:

osascript -e 'tell (load script POSIX file ((do shell script "pwd") & "/wunderlist.scpt")) to addTask("1::testing")'

Reply to this email directly or view it on GitHubhttps://github.com/idpaterson/alfred-wunderlist-workflow/issues/38#issuecomment-34772764 .

idpaterson commented 10 years ago

Thanks for working with me on this. I haven't been able to reproduce the problem but I am wondering if you might be using an old or slow computer? It could be that the commands in the workflow are fired off more quickly than the computer can process them.

I can't quite explain how a Google search would be performed as a result of using this workflow. Maybe if you were previously in your browser before activating Alfred, the workflow could reactivate the browser before issuing those keyboard commands (an automated version of copying and pasting the text you typed). That might be a bit of a stretch, especially if your computer is fairly new.

Version 0.3 eliminates a lot of the keyboard muckery by using a mouse click emulator to navigate Wunderlist. While I hoped to include new features in 0.3 it might be best to just get an update out there to avoid all the issues I've had with navigation-by-keyboard. Stay tuned for a pre-release demo of 0.3.

JustinAiken commented 10 years ago

Ran the commands from the terminal, same result - lots of extra new lists, no errors.