TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Start Roon Display on Apple TV

    Scheduled Pinned Locked Moved Mac
    1 Posts 1 Posters 829 Views 1 Watching
    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.
    • Thomas WatsonT Offline
      Thomas Watson
      last edited by

      Using automator, this script works on Ventura. First enable screen mirroring in the menu bar.

      Create an automator (osascript had issues sending key commands from terminal) to run an applescript and save it (Here on my Desktop)

      # open chrome
      tell application "Google Chrome"
      	open location "http://192.168.68.xxx:9330/display/"
      	activate
      end tell
      
      delay 1
      
      # set full screen
      tell application "System Events"
      	keystroke "f" using {command down, control down}
      end tell
      
      
      -- Click the “Screen Mirroring” menu bar item.
      set timeoutSeconds to 2.0
      set uiScript to "click menu bar item 6 of menu bar 1 of application process \"Control Center\""
      my doWithTimeout(uiScript, timeoutSeconds)
      
      -- Click the “Roku TV” checkbox.
      delay 1
      set timeoutSeconds to 2.0
      set uiScript to "click checkbox 2 of scroll area 1 of group 1 of window \"Control Center\" of application process \"Control Center\""
      my doWithTimeout(uiScript, timeoutSeconds)
      
      on doWithTimeout(uiScript, timeoutSeconds)
      	set endDate to (current date) + timeoutSeconds
      	repeat
      		try
      			run script "tell application \"System Events\"
      " & uiScript & "
      end tell"
      			exit repeat
      		on error errorMessage
      			if ((current date) > endDate) then
      				error "Can not " & uiScript
      			end if
      		end try
      	end repeat
      end doWithTimeout
      

      Next the TriggerCMD is just

      automator /Path/To/File
      
      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post