Skip to content

Instantly share code, notes, and snippets.

@hiilppp
Created January 4, 2014 14:23
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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>
@bentsai
Copy link

bentsai commented Feb 19, 2014

How do you use this file? I'm guessing it's so when you get a Pushover notification on your phone, you can swipe and have it launch a Pythonista script?

@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