The content of the article
After successfully upgrading my iPhone to iOS 13, I noticed a new icon that appeared on the phone’s main screen, the Teams app. The research spirit did not allow me to pass this amazing phenomenon without exploring the possibilities of software. Among them were some very interesting and useful features, which I will tell you about now.
Prior to the release of iOS 13, the program was distributed in the App Store under the name "Quick Commands", but in the new version of the OS it was included in the basic set of applications. On the Apple website, the functionality of the "Commands" is described very vaguely and vaguely: they say the program allows you to create "personalized automation templates that will help you perform everyday actions easier and faster." I don’t know who trained copywriters from Cupertino to express their thoughts in this way, but it seems to me that in this particular case, brevity in family relations with talent is clearly not composed.
In fact, the "Teams" program can combine several simple user actions into one. For example, if every morning you find out the ambient temperature outside the window, turn on your favorite track on your mobile, and then send an SMS message with a good day to your boss, then all this routine can be performed by pressing a single button or voice command. The application can work with the Safari browser and other iOS programs through the API, so it’s easy to do the same, for example, load different playlists into “Music” according to your mood, set or deactivate the alarm clock, apply a filter to a set of photos or send the current geo-location in response to friends message "Well, where the hell are you, beer has cooled down!". "Teams" cope with this without any problems.
The “Team” interface seems to have been developed by aliens locked up in the basements of the Apple campus from the time of Jobs. But after a little practice you can still get used to it. The logic of the program at first glance is very simple: you need to specify the action that you want to perform, and then transfer this action to the application and process the result. For example, choosing “Calculator” in the list of applications, we will get a list of possible actions with it – “Count”, “Round a number” and so on. For the "Internet" section, the actions will be different: "Show web page", "Open multiple URLs", and here are collected options not only for Safari, but also for other applications. Having meditated on this list for half an hour, you can even find some kind of logic in it.
The Automation tab at the bottom of the Commands window allows you to link the execution of a command to a specific condition. For example, to plan for the selected time (finally, an analogue of cron and the "Task Scheduler", introduced by the guys from Microsoft back in Windows 98, appeared on iOS). But there are less obvious triggers: arrival at some geographical point according to GPS data or departure from it, switching the phone’s operating mode or launching a program. For example, you can configure automatic execution of a command when you leave home, arrive at work, or when the iPhone switches to low power mode.
One of the most interesting, in my opinion, “Commands” chips is the presence in the arsenal of the program of a simple set of switches with which you can configure triggers even more flexibly. They are hiding under the “Scripts” icon in the “Control Logic” section (whoever finds it the first time is sweetie!). Here we are offered a set of logical operators of the form “if – otherwise – finish the action”, “repeat”, “wait for a return”. That is, using this tool you can write a simple script that works out some kind of primitive algorithm. It’s not thick, of course, but Python is the best for fishlessness and the worm.
“Commands” allows you to program actions not only for embedded iOS 13 applications, but also for some third-party applications installed on your device. For example, if you use some program for reading news feeds in RSS format, you can create a team that will look for the address of the RSS feed on a site opened in Safari and, upon detection, will automatically subscribe to it.
The finished command can be added to the list inside the application itself or displayed as a shortcut on the iOS home screen. And this could end our review today if the article was intended to be published in the magazine Murzilka. But since our publication is called a little differently, let's see how it works and whether it is possible to extract something interesting and undocumented from the "Teams" and then use it in a non-standard way.
Continuation is available only to participants
Materials from the latest issues become available separately only two months after publication. To continue reading, you must become a member of the Xakep.ru community.
Join the Xakep.ru Community!
Membership in the community during the specified period will open you access to ALL Hacker materials, increase your personal cumulative discount and allow you to accumulate a professional Xakep Score!
I am already a member of Xakep.ru