Issue importing multiple tasks to Appigo ToDo
I'm new to Python so apologies in advance for a newbie question. I would like to create a pythonista program that can copy a list of tasks from my clipboard and pass them to either Appigo ToDo or Reminders.
The clipboard data may contain:
Buy laundry detergent
The code below appears to function for only the first task in the list stored in the clipboard.
Does anyone know how I can modify this to work with Appigo Todo? Alternatively, does anyone know if there is a URL scheme to access Reminders?
Thanks in advance!
todo = 'appigotodo://x-callback-url/import?name='
text = clipboard.get()
tasks = text.split('\n')
for index in range(len(tasks)):
task = urllib.quote(tasks[index])
webbrowser.open(todo + task)</pre>
omz last edited by
I'm not really familiar with Appigo Todo, so I'm not sure if their URL scheme supports adding multiple todos in one go. What happens in your script is that as soon as you open the first URL, Pythonista exits and Appigo Todo is opened, so the script doesn't continue. That is in general how URL schemes work, you would have to find a way (if possible) to add multiple tasks in <em>one</em> URL.
There is no URL scheme for Apple's built-in reminders app.
Btw, there's no need to use the index in your for-loop, just write:
<pre>for task in tasks:
Thank you for the quick response OMZ! This makes sense. I think I'll inquire with Appigo regarding whether it's possible to add multiple tasks in one URL.
omz last edited by
Just realized that I had bought Appigo Todo at some point, so I've experimented a little, but it doesn't seem to be possible to add multiple tasks by opening one URL...
OMZ - thanks for trying to look into this further!
Viticci - thank you for sending that. It's a similar use case and might be worth checking out Due if it supports sequential tasks. Thanks!
Denrael245 last edited by
Just curious; my understanding is that Reminders is at it's core iCal style calendars. Would it be possible to update entries in Reminders by approaching it that way?