Launch my app from Calendar Notes with Custom URL Scheme

前端 未结 2 1394
北海茫月
北海茫月 2021-01-22 19:56

I\'m trying to get my application launched by clicking on a link in the Calendar\'s notes section, but I just can\'t do it ...

The URL schemes for http:// and <

相关标签:
2条回答
  • 2021-01-22 20:20

    I keep forgetting to open my Science News E-Zine and there's no other 'reminder'... so:

    In CALENDAR I created a monthly-repeating event called: ScienceNewsOpen and it's ‘Alert’ is ‘Open File: SCIENCE NEWS OPENER.APP’

    In AUTOMATOR I created that application which began as a Calendar Event but was saved as an app:

    FIND CALENDAR EVENTS where ALL is true, "Date Starting" is "Today" and "Any Content" contains Science News.

    GET SPECIFIED URLs, "Remove" the existing default Apple.com, "Add" ScienceNews.org

    DISPLAY WEBPAGES: The Science News Website opens in my default browser (FFox) in its own tab, i.e., not a new window once a month - but it can open any URL you put in the Application at any time you want to program into the Calendar.

    0 讨论(0)
  • 2021-01-22 20:39

    Ok, found it myself ...

    Apparently it is not enough to just write

    myapp://
    

    but it has to be

    myapp://<sometexthere>
    

    in order for the calendar to recognize it as a custom URL scheme. Safari also accepts the version without text after the two slashes.

    One never learns enough ...

    0 讨论(0)
提交回复
热议问题