omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    iPhone shortcut script

    Pythonista
    sonos iphone iphone shortcut shortcuts
    2
    2
    2510
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • notsmartenough
      notsmartenough last edited by

      Looking to write a script to run a function within the app SONOS, a WiFi speaker. In my head it would seem to be pretty basic but I don’t know the first thing about writing python scripts.

      Using apple shortcuts when I arrive home the SONOS app will open, then I’d like to create a script to select Pandora and play music.

      Where do I start?

      1 Reply Last reply Reply Quote 0
      • dgelessus
        dgelessus last edited by

        This is probably not possible.

        In general, iOS does not allow one app to control another app. Apps can provide Siri shortcuts or a URL scheme to allow limited control by other apps, but this has to be specifically supported by the app, and the developer decides what actions can be triggered by other apps.

        If the Sonos app provides Siri shortcuts or a URL scheme to control music playback, you can use that, otherwise you're out of luck. It doesn't make a difference whether you use Pythonista or the Shortcuts app to do the automation - both apps only have access to the control endpoints provided by the other app, and nothing more.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors