AppleScript to access system Now Playing, without iTunes - safari

I'd like to have a script that does something every time the current playback changes, i.e. something different is displayed in the Now Playing widget in Notification Centre. All the solutions I found involved telling iTunes to give AppleScript the information, however, my script shouldn't work solely with playback from iTunes, but primarily Safari (SoundCloud web). Any way Now Playing data is accessible using AppleScript, independent of iTunes?

Related

Creating a text based browser game bot that runs in the background

I want to create a bot for a text based browser game that will have:
A separate mouse that will not interfere with my mouse
human like mouse movement with random wait times and clicks buttons like a real person (basically it can't be pixel perfect clicks every time
Pauses and alerts me when a human verification shows up
There is already a program that can do this that doesn't require coding skills called Browser Automation Studio but it costs money and feels somewhat limiting. Here is a video on how it looks when developing a bot https://youtu.be/K-jT-GwjTjg?t=2524
When you compile a bot and run it it will open up a headless chrome (I think that's what you call it) app with a separate mouse, that program can be minimised and will run in the background with no problem. I know I could just use this program but I want to learn how to code this bot on my own.
I have gone to uni for web development (failed final year oof) so I know a bit of how code works and just need some pointers on how I can start this project. From my research it seems python selenium would be good but I can't find anything on making a separate mouse so That when the bot is running I can still use my pc for other stuff.
Thanks in advance.

chrome command line flag for auto sharing system sound

I am developing web automation of Zoom meeting (all the way from creation till joining and leaving thereon).
I have been able to complete the creation, joining and screen sharing automation.
I am using --auto-select-desktop-capture-source=MyTab flag to automatically share the desired tab. Up until here, its all working fine.
Where I am stuck is that the chrome tab gets shared without system sound.
I want to automatically share the screen/tab along with system sound / tab audio.
What is the appropriate chrome flag for sharing audio along with screen?

Allow users to open any music file on thier local storage with my vb.net music software

The issue on ground is the fact that, judging from a standard music player, as a user, I can just move to my desktop and pick a particular music file,then I right click and i open it with the standard music app and automatically it gets the song and play it.
So I want my desktop app made with visual studio,vb.net to have that same ability. I need the onload event code to carry out that functionality. Thanks in anticipation

Programmatically Add/Remove displays on macOS

I'm looking for an API to add and remove displays to/from the system. I've found the Quartz Display Services, but that API mainly lets you modify existing displays for the sake of fullscreen mode for apps and games.
For example, I would like to (via software) disable a display that's currently plugged in, while it is still plugged in. (Kind of like mounting and unmounting for drives)

'Open In' functionality after downloading document?

I am developing an iOS app that allows users to download documents off a server. I have gotten this to work fine and they can even view the document. What I want, though, is for the document to have an 'Open In' action so, when a button is pressed, the user is able to select another application that allows you to look at PDF documents -- for example, the Kindle App. Is this possible?
Darn, I was wishing you were going to say "MacOS" because that would have made the answer a lot more fun (and do-able).
As far as I know, iOS still does not have an official SDK-legal way to have one app (your app) arbitrarily launch other app and specify an arbitrary document to open with it. This is part of the magic (?) of having to live within your own app sandbox.
On the Macintosh, this would be easy with Apple Events (among other things).