AppleScript to control the Apple TV?

I thought I could do something like:

say application "iTunes."

say AirPlay device "Apple TV 4th gen.

pause

end say

end say

.. .but apparently that doesn't work. The script runs without error, but nothing happens on the Apple TV. Is there another way I can do this?

You are looking at it too deeply. We can't control the AppleTV himself device. Instead, you tell iTunes output its flow to the AppleTV and just play:

say application "iTunes."

the value current AirPlay devices to {device AirPlay 'Apple TV'}

play

end say


Tags: Mac OS & System Software

Similar Questions

  • the apple remote app installed on my air of 6s and iPad iPhone does not work to control the apple tv

    the apple remote app on my iPhone 6s and iPad Air, home sharing is enabled on all devices and the MBP, airplay works for mirroring via tv application, however, I have over the display of the remote app to control the apple tv, though the library, iI figure on my MBP

    Hello Pmilkes,

    Thank you for using communities Support from Apple!

    I understand that Remote on your iOS devices does not longer work to control your Apple TV. To begin troubleshooting this situation, I recommend you to read on the following article and through the implementation of the process to ensure that your network and devices are configured correctly.

    Set up remote for your iPhone, iPad or iPod touch - Apple Support

    See you soon!

  • I use my phone to control the Apple tv

    And now it won't let me, I turned on home sharing

    Can you turn it on with the remote regular?

  • Unplug the apple TV apple tv 3 remote control 4

    Hello

    I hope that someone in the community can help me.

    I have 2 apple TVs in the House-3rd and 4th gen gen.

    They are in the same room. If I use the remote 4th gen, all right, the remote control is not to influence the old apple tv.

    But the reverse does not work. If I use the remote to control the Apple tv 3 3rd generation it also wakes ups the new apple tv too.

    How can I separate the systems? The remote gen 4 is very good but I need to disconnect the 3rd generation away from the apple tv 4

    Would this be possible? I tried the menu + left option of the remote control, but he did not like the apple TV4 does not react to this topic.

    Thank you very much.

    Kind regards

    Markus

    Follow this exactly, and your problem will be solved:

    Two Apple TV - remote controls works with both at the same time

  • You can use a 2016 Samsung Smart Bluetooth remote to control your Apple TV?

    I have a 4K of 2016 Samsung TV and it comes with a remote bluetooth device smart. Does anyone know if it is possible to avoid having to use this remote and Apple TV remote and the Smart remote control the Apple TV as well?

    There is no option in the Apple TV settings to learn a remote Bluetooth.

  • Remote control/software Apple TV with the App Store problems

    Seems ridiculous that a Sept 2016 4th Gen apple TV purchase has the same problems of connectivity with the App store. Impossible to connect, or even choose App store, or spare parts offline, erratic, glitch and acts as a problem of distance, but seems to be a software problem or interface. Obvious corrections or ideas to stabilize or least to increase connectivity to app store with 4th Gen Apple TV/remote control?

    No problem of connectivity with a 4th getting Apple TV remote here... Sorry, you encounter this problem with it.

    See if there is something that will help that you haven't tried in this article to support > set up the Apple TV Remote - Apple supported application

  • I can control my Apple music through the Apple Remote app on my iPhone and iPad?

    I can control my reading of Apple's music using the Apple Remote app on my iPhone and iPad?

    Yes, read this article on the basis of knowledge of Apple on how to do...

    12 iTunes for Mac: use the Remote app to control your iTunes library

  • How can I remotely control the music on the 4th generation Apple TV

    On the 3rd generation Apple TV, I could use the app Remote for artist, Albums, songs and playlists which was to play directly from the Apple TV remote. This allowed me to sit on the deck and set or change my playlist remotely while my Apple TV played on and on. I couldn't count on Airplay from my iPhone to the Apple TV because of being at the edge of my wireless connection. So I used the application to load a playlist on the Apple TV, which was always in range and connected to my stereo.

    With the 4th generation, I can't find an option to load remote a playlist, artist, album, or song. I can only handle what has been loaded using the physical remote control and a TV screen that beats my goal. I bought the 4th generation, because the 3rd generation could not access my subscription of Apple's music while the 4th generation can.

    Am I missing something or is the 4th generation Apple TV / Remote app missed something?

    Make sure that your Remote application is up-to-date. The current release is 4.2.3 and fully supports the music playback controls.

    Remote by Apple

    https://appsto.Re/us/g198q.i

  • Why is it not possible to use SIRI on my apple TV remote to control the HomeKit products? I should be able to control all the devices with my Apple TV remote and SIRI HomeKit!

    Why is it not possible to use SIRI on my apple TV remote to control the HomeKit products? I should be able to control all the devices of HomeKit with my SIRI voice remote control and using Apple TV!

    If the new apple TV can act as a concentrator HomeKit and I use SIRI on my iPhone to control my locks, thermostat, lights, etc. Why am I not able to do the same thing with SIRI via voice commands on my Apple TV remote? When is this going to work?

    Also, when Apple will come out with a response to the echo of Amazon? I've tired to wait... do it already! If you build it, they will come...

    Thank you!

    This is a community to a user, and Apple will not see your rant. If you have suggestions about Apple TV, Siri and HomeKit the best thing to do is to submit your comments here. http://www.Apple.com/feedback/AppleTV.html

  • How to recharge the remote control for Apple TV 4

    How to recharge the remote control for Apple TV 4

    Recharge your Siri or Apple TV Remote - Support Apple Remote

  • someone has any idea how to get Apple to allow apps that EFFECTIVELY controls the use of the children?

    I'm just frustrated.

    I have a child of 12 years and a house full of i-products.   The problem arises because I want to allow him to use a planning application and some other apps education during school time, but not the games and the wifi and so on.     We got the House and I would continue to allow the use of the i-device to school, but it doesn't seem to be an app that will enough allow me to the things of the lock upwards.    I don't have the time to constantly monitor, it's ridiculous.

    Sometimes there are ideas as to the allow him to use educational applications and its music from itunes, but not anything about wifi, or any other games or Web sites.    There are other times where I'd like it to be allowed to use iMessage and not much else.

    The problem is that there is something out there that allows this level of control.    Apple has rolled out their "our Pact" that does not come close, but it's a start.     And no other control parental app or program allows control level "app." they will allow you to lock all applications (which are not integrated in the iOS) or not, but I can not choose.     Restrictions are unnecessary and won't allow me to lock the wifi or not to allow the addition of new locations of wifi.

    It's to the point that they I need to new devices, I'll phase out home iOS devices, unless I can get a control.

    Someone at - it a have a way around this?    Someone has any idea how to get Apple to listen to?

    For an application to the time-, you can use guided access

    Use access guided with iPhone, iPad and iPod touch - Apple

  • Technical sheet for the batteries in the remote control for apple tv 4.

    I need a datasheet to the rechargeable battery in the remote control for apple tv4. Anyone who is able to help me?

    Out of curiosity what you trying to accomplish?  Remote control of Siri is 410 mAh battery is rechargeable...

    It's the best info I can find

    https://www.iFixit.com/teardown/Apple+TV+4th+generation+teardown/49046

  • How do I uninstall the apple software update when it will not uninstall in Control Panel of

    I spin XPservice pack 3 trying to install quick time, but says old version of "the apple software update cannot be installed please contact support - noone will support me"

    Hello

    Try this and see how you go...

    Download and run the Windows Install Cleanup Utility (from the link below), this will remove the registry entries for the software. After downloading and installing, run it and choose Update Software Apple asked about this program to remove:

    http://www.thewindowsclub.com/Microsoft-retires-Windows-Installer-Cleanup-utility first read this

    Download here

    http://MajorGeeks.com/Windows_Installer_CleanUp_Utility_d4459.html

    Concerning

    GT4U

  • Remote control for Apple TV

    Is - is this posible?

    Yes. Apple Watch has the Remote app, you can use to control your Apple Tv.

    Use your Apple Watch as a remote control for your Apple TV or iTunes - Apple Support

  • Cannot control the volume

    I have an Apple TV 4 (tvOS 9.2.1) with a Philips BDM4065UC 40 '' monitor (not TV) connected via HDMI. Everything works OK, except that I can't control the volume with the Apple Remote.

    In the volume control settings, I can choose between 'Auto', 'TV via IR' and 'Off '. Obviously 'Off' does not work. But not more than the other two.

    I asked Philips support if the BDM4065UC supports the HDMI-CEC, that I understand to be a sine qua non for Apple TV, and I'll make their response when I get it. However, I understand that the options 'Auto' and 'TV via IR' would not be displayed if HDMI-CEC was not taken in charge for the monitor.

    I can't form a new setting because the BDM4065UC is not a remote control to train with.

    I tried to use Apple's HDMI cable and the HDMI supplied with the BDM4065UC.

    Any thoughts?

    Steve

    I'm waiting for the volume of a computer screen (if it has speakers) to be flown by the device to which it is connected. The monitor is equipped with a remote control, otherwise I think he won't have the receivers to receive a signal from one.

Maybe you are looking for

  • Warning disconnect when idle for a short period

    Hello Can someone help me out here. My computer (vista 64-bit) guard disconnection after every minute, it is inactive. Now, making it impossible for me to watch a video or a movie without having to sign in again after every minute. I tried to change

  • Installation of VS 2008 plug-ins

    This seems very trivial, but I can't do the VS 2008 plug-ins to install on MS Server 2003 32 bit box or a box of MS Vista 64-bit. Of the two, I get the message "error reading setup initialization file". Y at - it a prereq which is required before ins

  • Disable Windows 7 home premium

    I want to sell my laptop on witch, I installed windows 7 but I don't want to sell windows. I have the original disc of windows 7 with product key. If I sell my laptop with windows I'll therefore not able to activate it on my new pc because the produc

  • Color chart of rating used on the artboard

    I am trying to create a list of the witnesses that are used on a single work plan in a document that could contain more than a work plan. The document uses stupid colors. My script checks if it uses CMYK and stops with an alert if it does. I was able

  • Update using 2 tables

    HelloMAIN_TABLEID_COLCol1 Col2 HASH_CODE1AAABBBAAXXXEHYEYEL2CCCDDDWSKLWEIEKEW3EEEFFFWLKSPPSKEKE4GGGHHHWEWEWLWJEKSTG_TABLEID_COL Col1 Col2 HASH_CODE1AAABBBAAXXXEHYEYEL2CCCCEFASDFWERWER3EEESDEWERSDFWERW4GGGHHHWEWEWLWJEKA primary key on MAIN_TABLE is ID