# SHORTCUTS FROM THE NOTIFICATION CENTER # by Shambhala # URL Examples: # "http://google.com" # "pythonista://" # "pythonista://MyScript?action=run" # "tweetbot://" # "itms-apps://" # ______________________________________ # import notification,console,string,webbrowser,sys console.clear() title,url=raw_input('Notification Text: '),raw_input('Notification Link: ') if string.find(url,'://')<0: url='http://'+url if string.find(url,'http')==0 and string.find(url,'.')<0: url+='.com' console.set_color(0.5,0.5,0.5) if not webbrowser.can_open(url): print '\nThe URL you entered can not be opened.\nMake sure there are no spelling errors in the link.\n' sys.exit() notification.schedule(title,0,'',url) print '\nYour notification has been glued to the Notification Center. Swipe down from the top of the screen to access your new shortcut. Press the "X" to clear your shortcuts.\n\n(You can change how many shortcuts show at once and where the shortcuts are located by going to Settings >> Notification Center.)'