Applescript for TV app no longer working in MacOS 26

Hi all,


I have a suite of applescripts I use to control TV in Mac OS. Since upgrading to Tahoe, these are no longer functional. I created an extremely simple script to test this:


tell application "TV" to set selectedTracks to selection of browser window 1


Executing this in Script Editor returns "TV got an error: Can't get selection of browser window 1". I don't see anything in the applescript dictionary for TV that suggests anything has changed that would cause this. Playing with my test case, I can reference browser window 1 but attempting to retrieve any of its properties seems to give an error.


A Tahoe bug or am I missing something?



Ted


MacBook Pro 16″, macOS 26.0

Posted on Sep 27, 2025 7:49 PM

Reply
6 replies

Oct 6, 2025 1:26 PM in response to Oxygeneralist

Yep, the Applescript interface for TV and Music is definitely broken. Music has a different set of issues but they're there (for example, setting the current playlist in Music returns no error but does nothing). There's some discussion about this on the Apple Developer Forums, it's definitely a bug and something Apple needs to address if these Applescript interfaces are to be continued moving forward. I submitted a bug report.


Ted

Oct 2, 2025 11:36 AM in response to deadward

Apple reserves the right to alter the Scripting Dictionary support for its applications at any time. Confirm that you are adhering to that current macOS Tahoe support and reserved resource naming syntax in Script Editor > Open Dictionary… > TV.


I think you have done that. However, there is AppleScript support in the TV Internet suite for opening an iTunes Store, or stream URL, but there does not appear to be any support beyond that feature to obtain anything from that URL.


No one here can help without seeing the code that is breaking, and even then, it may assume actions in the TV application that others are not doing, or cannot do because of no subscription.

Oct 1, 2025 6:48 PM in response to deadward

deadward wrote:

Hi all,

I have a suite of applescripts I use to control TV in Mac OS. Since upgrading to Tahoe, these are no longer functional. I created an extremely simple script to test this:

tell application "TV" to set selectedTracks to selection of browser window 1

Executing this in Script Editor returns "TV got an error: Can't get selection of browser window 1". I don't see anything in the applescript dictionary for TV that suggests anything has changed that would cause this. Playing with my test case, I can reference browser window 1 but attempting to retrieve any of its properties seems to give an error.

A Tahoe bug or am I missing something?


Ted



Verify your software is up to date

The current stable release of Tahoe including bug fixes, security updates is macOS 26.0.1

Keep your Mac up to date - Apple Support

Keep your Mac up to date - Apple Support


If scripts are not working as expected

you can file a bug report / submit your Apple Feedback here: Product Feedback - Apple



ref: Run a script in Script Editor on Mac - Apple Support



Oct 2, 2025 12:25 PM in response to VikingOSX

As per the original post, the code that is broken is


tell application "TV" to set selectedTracks to selection of browser window 1


Per the scripting dictionary for TV (which shows no evidence of having been updated in Mac OS 26), in the TV Suite the noun "browser window" has a property "selection" that should be accessible. This is long-standing functionality and does not require any subscription. This is unrelated to the TV Internet suite.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Applescript for TV app no longer working in MacOS 26

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.