Skip to content

Instantly share code, notes, and snippets.

@hiilppp
Created January 4, 2014 14:23
Show Gist options
  • Save hiilppp/8255876 to your computer and use it in GitHub Desktop.
Save hiilppp/8255876 to your computer and use it in GitHub Desktop.
HTML file that opens Pythonista, where a specified script is executed, while the browser window closes in the background. This serves as workaround for IFTTT's lack of support for custom URL schemes in the URL parameter of Pushover's Channel.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; pythonista://foo.py&action=run&argv=bar"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script language="JavaScript">
setTimeout("self.close()", 500);
</script>
</head>
<body>
Redirecting to Pythonista&#8230;
</body>
</html>
@hiilppp
Copy link
Author

hiilppp commented Feb 20, 2014

@bentsai Unfortunately, swiping a notification on the Lock Screen only opens Pushover. You then have to manually open the notification, and then, finally, you can follow the link.

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