{"id":319935,"date":"2021-03-19T21:00:33","date_gmt":"2021-03-19T21:00:33","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=319935"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=319935","title":{"rendered":"\u041d\u0430\u0448 Automator, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 MacOS \u043d\u0430 AppleScript"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cdc\/e9d\/2a3\/cdce9d2a343aead683965878014fbf18.jpg\" width=\"2123\" height=\"774\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043e\u0434\u0438\u043d \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0435\u0447\u0435\u0440 \u043c\u044b \u0441 \u043a\u043e\u043b\u043b\u0435\u0433\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 AppStore. \u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e-\u0442\u0430\u043a\u0438 \u0434\u043e\u043b\u0433\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u044d\u0442\u0430\u043f\u043e\u0432. \u041e\u0434\u0438\u043d \u0438\u0437 \u044d\u0442\u0430\u043f\u043e\u0432 &#8212; \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0434\u043b\u044f \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0417\u0430\u0434\u0430\u0447\u0430, \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043f\u0440\u043e\u0441\u0442\u0430\u044f &#8212; \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0430 \u043d\u0443\u0436\u043d\u044b \u044d\u043a\u0440\u0430\u043d\u044b \u043d\u0430 \u0448\u0435\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430, \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u0445, \u0441 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u043f\u044f\u0442\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0417\u0430 \u0447\u0430\u0441\u0438\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0443\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u044f \u0441\u043d\u0438\u043c\u043a\u0438 \u0440\u0443\u043a\u0430\u043c\u0438, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u043f\u0438\u0432\u0430\u044f \u043a\u043e\u0444\u0435 \u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u044f \u043e\u0431\u0449\u0438\u0435 \u0442\u0435\u043c\u044b. \u041d\u043e \u043c\u044b \u0436\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u0438 \u0440\u0443\u043a\u0430\u043c\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434. \u041d\u0430\u0434\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u0425\u043e\u0442\u044c \u043c\u044b \u0438 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u043b\u0438 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.  \u041c\u044b \u0443\u0437\u043d\u0430\u043b\u0438 \u043a\u0430\u043a \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 MacOS. \u0418 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 AppleScript \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 XCode \u0438 Simulator. <\/p>\n<h2>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h2>\n<p>\u041d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043d\u0438\u043c\u043a\u0438 \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 6 \u044f\u0437\u044b\u043a\u0430\u0445, \u0434\u043b\u044f iPhone \u0438 iPad. \u0412 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u044f\u0442\u044c \u0441\u043b\u043e\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u043d\u0438\u043c\u043a\u043e\u0432 \u044d\u043a\u0440\u0430\u043d\u0430 &#8212; \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u044d\u0442\u0438\u0445 \u0441\u043b\u043e\u0442\u0430\u0445 \u043f\u044f\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441\u043d\u0438\u043c\u043a\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u0414\u043b\u044f iPhone \u043d\u0443\u0436\u043d\u043e \u0434\u0432\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445, \u0430 \u0434\u043b\u044f iPad \u043e\u0434\u0438\u043d, \u043d\u043e \u0432 \u0434\u0432\u0443\u0445 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0445.<\/p>\n<h2>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442<\/h2>\n<p>\u041a\u0440\u0430\u0442\u043a\u0438\u0439 \u043f\u043e\u0438\u0441\u043a \u043d\u0430\u0432\u0435\u043b \u043d\u0430\u0441 \u043d\u0430 Automator.<\/p>\n<figure class=\"float\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/33c\/f7f\/dec\/33cf7fdec19a649fce5ef3714bc500d6.png\" width=\"128\" height=\"128\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e89\/3d1\/3a8\/e893d13a8574898a1b8f6964533ee5f7.png\" width=\"2224\" height=\"1972\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 WorkFlow &#8212; \u0441\u043e\u0437\u0434\u0430\u0435\u043c. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u044b\u0434\u0430\u0435\u0442 \u043e\u043a\u043e\u0448\u043a\u043e \u0438\u0437 \u0434\u0432\u0443\u0445 \u0447\u0430\u0441\u0442\u0435\u0439. \u0421\u043b\u0435\u0432\u0430 Actions &#8212; \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439. \u0421\u043f\u0440\u0430\u0432\u0430 \u0441\u0430\u043c WorkFlow. \u041f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432 WorkFlow \u0438 \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439. \u042d\u0442\u043e \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b WorkFlow.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cbb\/0d3\/432\/cbb0d34320a5ffd74744780365b15b91.png\" width=\"1692\" height=\"1622\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439, \u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u044b \u043d\u0430\u0438\u0433\u0440\u0430\u043b\u0438\u0441\u044c \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044f &#8212; \u043c\u044b \u043f\u043e\u043d\u044f\u043b\u0438, \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u0440\u043e\u0449\u0435 \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434. \u041f\u0440\u0438\u0432\u044b\u0447\u043d\u0435\u0439. \u0418 Automator \u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0442\u0430\u043a\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c. \u041e\u0447\u0438\u0441\u0442\u0438\u043c \u0432\u0441\u0435 \u0438\u0437 \u043f\u0430\u043d\u0435\u043b\u0438 WorkFlow, \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0434\u043d\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 &#8212; Run AppleScript.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/270\/3f3\/afe\/2703f3afe9777553046066122b4ab575.png\" width=\"1708\" height=\"1126\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u043f\u043e\u043c\u0438\u043c\u043e Run AppleScript, \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a Run JavaScript \u0438\u043b\u0438 Run Shell Script. \u0412 \u043e\u0434\u043d\u043e\u043c WorkFlow \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 Workflow (Run WorkFlow).<\/p>\n<p>\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 Run AppleScript \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u0441\u0430\u043c\u043e \u043f\u043e \u0441\u0435\u0431\u0435, \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430. \u0423 \u0442\u0430\u043a\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u044f \u043a\u043d\u043e\u043f\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u0414\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043c\u044b \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043c\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0442\u0430\u043a\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c. \u0412\u0441\u044e \u043c\u0430\u0433\u0438\u044e \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c AppleScript. \u0416\u043c\u0435\u043c \u043d\u0430 \u043c\u043e\u043b\u043e\u0442\u043e\u0447\u0435\u043a &#8212; \u0438 \u043f\u0438\u0448\u0435\u043c \u043a\u043e\u0434.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/523\/f4e\/d3b\/523f4ed3ba98b17b5f13f559b33a99df.png\" width=\"1640\" height=\"1300\"><figcaption><\/figcaption><\/figure>\n<h2>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h2>\n<p>\u0412\u043e\u043e\u0440\u0443\u0436\u0438\u0432\u0448\u0438\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439, \u043d\u043e \u0438 \u043d\u0435 \u043f\u0440\u0435\u043d\u0435\u0431\u0440\u0435\u0433\u0430\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043d\u0430\u0443\u0447\u043d\u043e\u0433\u043e \u0442\u044b\u043a\u0430, \u043d\u0430\u0447\u043d\u0435\u043c.<\/p>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 XCode. \u0422\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0435 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0445\u0435\u043c &#8212; \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u044f\u0437\u044b\u043a\u043e\u0432. \u0422\u0430\u043a\u0436\u0435 \u0432 Xcode \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435, \u043f\u0440\u0438\u0447\u0435\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 Xcode \u0435\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u043f\u0438\u0448\u0435\u043c \u0440\u0443\u043a\u0430\u043c\u0438 \u043a\u0430\u043a\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 sizes.<\/p>\n<pre><code class=\"swift\">set ipad to \"iPad Pro (12.9-inch) (3rd generation)\" set sizes to {\"iPhone 8 Plus\", \"iPhone 11 Pro Max\", ipad}\u0410<\/code><\/pre>\n<p>\u0410 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0445\u0435\u043c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 schemes<\/p>\n<pre><code class=\"swift\">set schemes to {\"TinyApp\", \"TinyApp-cn\", \"TinyApp-jp\", \"TinyApp-es\", \"TinyApp-de\", \"TinyApp-ru\", \"TinyApp-fr\"}<\/code><\/pre>\n<p>\u0418 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c \u0438 \u043f\u043e \u044f\u0437\u044b\u043a\u0430\u043c:<\/p>\n<pre><code class=\"swift\">repeat with size in sizes     repeat with lang in schemes     \t\t-- ..... \t\tend repeat end repeat <\/code><\/pre>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043e\u0439 size, \u0438 lang.<\/p>\n<p>\u0413\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e XCode \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u0445\u0435\u043c\u0443 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u0430, \u0438 \u043f\u0440\u043e\u0441\u0438\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Simulator:<\/p>\n<pre><code class=\"swift\">        tell application \"Xcode\" to activate         tell application \"System Events\"             tell process \"Xcode\"                 tell menu bar 1                     tell menu \"Product\"                         tell menu item \"Scheme\"                             tell menu \"Scheme\"                                 click menu item lang                             end tell                         end tell                            tell menu item \"Destination\"                             tell menu \"Destination\"                                 click menu item size                             end tell                         end tell                         click menu item \"Run\"                     end tell                 end tell             end tell         end tell <\/code><\/pre>\n<p>\u0418 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0434\u0438\u0430\u043b\u043e\u0433 \u0441 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c:<\/p>\n<pre><code class=\"swift\">        tell application \"System Events\"             display dialog \"Continue\"         end tell <\/code><\/pre>\n<p>\u041d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440, \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0435\u0433\u043e \u0432 \u043d\u0443\u0436\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0440\u0443\u043a\u0430\u043c\u0438 (\u043c\u044b\u0448\u043a\u043e\u0439) \u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435 Continue. \u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043c\u043d\u0438\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0438 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0436\u043c\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 Continue.<\/p>\n<p>\u041d\u0443 \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0440\u043e\u0441\u0438\u0442 \u0421\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0435.<\/p>\n<pre><code class=\"swift\">        tell application \"Automator\" to activate         tell application \"System Events\"             tell process \"Simulator\"                 tell menu bar 1                     tell menu \"File\"                         click menu item \"Save Screen\"                     end tell                 end tell             end tell         end tell <\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u0430\u043a \u043d\u0430\u043c \u0443\u0434\u043e\u0431\u043d\u043e: <\/p>\n<pre><code class=\"swift\">        tell application \"Finder\"             set the source_folder to (path to desktop folder) as alias             sort (get files of source_folder) by creation date             set theFile to (item 1 of reverse of result) as alias             set newName to lang &amp; \"-\" &amp; size &amp; \" .png\"             set name of theFile to newName         end tell <\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u0441\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430 \u0434\u043b\u044f iPad \u0442\u043e \u043c\u044b \u043c\u0435\u043d\u044f\u0435\u043c \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0449\u0435 \u0441\u043d\u0438\u043c\u043e\u043a:<\/p>\n<pre><code class=\"swift\">        if size as string is equal to ipad then             tell application \"Automator\" to activate             tell application \"System Events\"                 tell process \"Simulator\"                     tell menu bar 1                                                  tell menu \"Hardware\"                             tell menu item \"Orientation\"                                 tell menu \"Orientation\"                                     click menu item \"Landscape Right\"                                 end tell                             end tell                         end tell                                                  delay 2                         tell menu \"File\"                             click menu item \"New Screen Shot\"                         end tell                                                  tell application \"Finder\"                             set the source_folder to (path to desktop folder) as alias                             sort (get files of source_folder) by creation date                             set theFile to (item 1 of reverse of result) as alias                             set newName to lang &amp; \"-\" &amp; size &amp; \"-landscape\" &amp; \" .png\"                             set name of theFile to newName                         end tell                                                                          tell menu \"Hardware\"                             tell menu item \"Orientation\"                                 tell menu \"Orientation\"                                     click menu item \"Portrait\"                                 end tell                             end tell                         end tell                                              end tell                 end tell             end tell         end if <\/code><\/pre>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043a \u043a\u043e\u043d\u0446\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0443 \u043d\u0430\u0441 \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u044b \u0441\u043d\u0438\u043c\u043a\u043e\u0432 \u044d\u043a\u0440\u0430\u043d\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043d\u0443\u0436\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432. \u0412 \u043e\u0434\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0434\u0438\u0430\u043b\u043e\u0433\u0435. \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0440\u0443\u043a\u0430\u043c\u0438 \u0444\u0430\u0439\u043b\u044b, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u041d\u0430\u043f\u043e\u043c\u043d\u044e &#8212; \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u044d\u0442\u043e \u043f\u044f\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0432 AppStore. <\/p>\n<p>\u041c\u044b \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043e\u0433\u043b\u0438 \u0435\u0449\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432, \u043d\u043e \u043c\u044b \u043d\u0430 \u044d\u0442\u043e\u043c \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c. <\/p>\n<h2>\u0418\u0442\u043e\u0433<\/h2>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0440\u0443\u043a\u0430\u043c\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 120 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0440\u0443\u043a\u0430\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0437\u0430 \u0447\u0430\u0441, \u043c\u044b \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f Automator, \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0432 \u043d\u0430 \u043e\u0441\u0432\u043e\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438 \u044f\u0437\u044b\u043a\u0430 AppleScript \u0447\u0430\u0441\u0430 \u0442\u0440\u0438, \u0438 \u043d\u0430\u0448 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c 120 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443 \u0441 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0437\u0430\u0442\u0440\u0430\u0442\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043c\u044b \u0431\u044b\u043b\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043d\u0430\u0448 \u043e\u043f\u044b\u0442 \u043c\u043e\u0436\u0435\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0438 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u043b\u044e\u0434\u0435\u0439, \u0438 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0437\u0430\u0434\u0430\u0447.<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u0438 \u041a\u043e\u0434 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e:<\/p>\n<pre><code class=\"swift\">on run {input, parameters}     set ipad to \"iPad Pro (12.9-inch) (3rd generation)\"     set sizes to {\"iPhone 8 Plus\", \"iPhone 11 Pro Max\", ipad}     set schemes to {\"TinyApp\", \"TinyApp-cn\", \"TinyApp-jp\", \"TinyApp-es\", \"TinyApp-de\", \"TinyApp-ru\", \"TinyApp-fr\"}     repeat with size in sizes         repeat with lang in schemes             tell application \"Xcode\" to activate             tell application \"System Events\"                 tell process \"Xcode\"                     tell menu bar 1                         tell menu \"Product\"                                                          tell menu item \"Scheme\"                                 tell menu \"Scheme\"                                     click menu item lang                                 end tell                             end tell                                                          tell menu item \"Destination\"                                 tell menu \"Destination\"                                     click menu item size                                 end tell                             end tell                             click menu item \"Run\"                         end tell                     end tell                 end tell             end tell                          tell application \"System Events\"                 display dialog \"Continue\"             end tell                          tell application \"Automator\" to activate             tell application \"System Events\"                 tell process \"Simulator\"                     tell menu bar 1                         tell menu \"File\"                             click menu item \"Save Screen\"                         end tell                     end tell                 end tell             end tell                          tell application \"Finder\"                 set the source_folder to (path to desktop folder) as alias                 sort (get files of source_folder) by creation date                 set theFile to (item 1 of reverse of result) as alias                 set newName to lang &amp; \"-\" &amp; size &amp; \" .png\"                 set name of theFile to newName             end tell                                       --iPad             if size as string is equal to ipad then                                                   tell application \"Automator\" to activate                 tell application \"System Events\"                     tell process \"Simulator\"                         tell menu bar 1                                                          tell menu \"Hardware\"                                 tell menu item \"Orientation\"                                     tell menu \"Orientation\"                                         click menu item \"Landscape Right\"                                     end tell                                 end tell                             end tell                              \t\t\t\t\t\t\t\t\t\t\t\t\t\tdelay 2                             tell menu \"File\"                                 click menu item \"New Screen Shot\"                             end tell                                                          tell application \"Finder\"                                 set the source_folder to (path to desktop folder) as alias                                 sort (get files of source_folder) by creation date                                 set theFile to (item 1 of reverse of result) as alias                                 set newName to lang &amp; \"-\" &amp; size &amp; \"-landscape\" &amp; \" .png\"                                 set name of theFile to newName                             end tell                                                                            tell menu \"Hardware\"                                 tell menu item \"Orientation\"                                     tell menu \"Orientation\"                                         click menu item \"Portrait\"                                     end tell                                 end tell                             end tell                                                      end tell                     end tell                 end tell             end if                                   end repeat     end repeat               return input end run<\/code><\/pre>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/548008\/\"> https:\/\/habr.com\/ru\/post\/548008\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043e\u0434\u0438\u043d \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0435\u0447\u0435\u0440 \u043c\u044b \u0441 \u043a\u043e\u043b\u043b\u0435\u0433\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 AppStore. \u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e-\u0442\u0430\u043a\u0438 \u0434\u043e\u043b\u0433\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u044d\u0442\u0430\u043f\u043e\u0432. \u041e\u0434\u0438\u043d \u0438\u0437 \u044d\u0442\u0430\u043f\u043e\u0432 &#8212; \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0434\u043b\u044f \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0417\u0430\u0434\u0430\u0447\u0430, \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043f\u0440\u043e\u0441\u0442\u0430\u044f &#8212; \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0430 \u043d\u0443\u0436\u043d\u044b \u044d\u043a\u0440\u0430\u043d\u044b \u043d\u0430 \u0448\u0435\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430, \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u0445, \u0441 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u043f\u044f\u0442\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0417\u0430 \u0447\u0430\u0441\u0438\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0443\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u044f \u0441\u043d\u0438\u043c\u043a\u0438 \u0440\u0443\u043a\u0430\u043c\u0438, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u043f\u0438\u0432\u0430\u044f \u043a\u043e\u0444\u0435 \u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u044f \u043e\u0431\u0449\u0438\u0435 \u0442\u0435\u043c\u044b. \u041d\u043e \u043c\u044b \u0436\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u0438 \u0440\u0443\u043a\u0430\u043c\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434. \u041d\u0430\u0434\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u0425\u043e\u0442\u044c \u043c\u044b \u0438 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u043b\u0438 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.  \u041c\u044b \u0443\u0437\u043d\u0430\u043b\u0438 \u043a\u0430\u043a \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 MacOS. \u0418 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 AppleScript \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 XCode \u0438 Simulator. <\/p>\n<h2>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h2>\n<p>\u041d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043d\u0438\u043c\u043a\u0438 \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 6 \u044f\u0437\u044b\u043a\u0430\u0445, \u0434\u043b\u044f iPhone \u0438 iPad. \u0412 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u044f\u0442\u044c \u0441\u043b\u043e\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u043d\u0438\u043c\u043a\u043e\u0432 \u044d\u043a\u0440\u0430\u043d\u0430 &#8212; \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u044d\u0442\u0438\u0445 \u0441\u043b\u043e\u0442\u0430\u0445 \u043f\u044f\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0441\u043d\u0438\u043c\u043a\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u0414\u043b\u044f iPhone \u043d\u0443\u0436\u043d\u043e \u0434\u0432\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445, \u0430 \u0434\u043b\u044f iPad \u043e\u0434\u0438\u043d, \u043d\u043e \u0432 \u0434\u0432\u0443\u0445 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0445.<\/p>\n<h2>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442<\/h2>\n<p>\u041a\u0440\u0430\u0442\u043a\u0438\u0439 \u043f\u043e\u0438\u0441\u043a \u043d\u0430\u0432\u0435\u043b \u043d\u0430\u0441 \u043d\u0430 Automator.<\/p>\n<figure class=\"float\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 WorkFlow &#8212; \u0441\u043e\u0437\u0434\u0430\u0435\u043c. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u044b\u0434\u0430\u0435\u0442 \u043e\u043a\u043e\u0448\u043a\u043e \u0438\u0437 \u0434\u0432\u0443\u0445 \u0447\u0430\u0441\u0442\u0435\u0439. \u0421\u043b\u0435\u0432\u0430 Actions &#8212; \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439. \u0421\u043f\u0440\u0430\u0432\u0430 \u0441\u0430\u043c WorkFlow. \u041f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432 WorkFlow \u0438 \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439. \u042d\u0442\u043e \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b WorkFlow.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439, \u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u044b \u043d\u0430\u0438\u0433\u0440\u0430\u043b\u0438\u0441\u044c \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044f &#8212; \u043c\u044b \u043f\u043e\u043d\u044f\u043b\u0438, \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u0440\u043e\u0449\u0435 \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434. \u041f\u0440\u0438\u0432\u044b\u0447\u043d\u0435\u0439. \u0418 Automator \u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0442\u0430\u043a\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c. \u041e\u0447\u0438\u0441\u0442\u0438\u043c \u0432\u0441\u0435 \u0438\u0437 \u043f\u0430\u043d\u0435\u043b\u0438 WorkFlow, \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0434\u043d\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 &#8212; Run AppleScript.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u043f\u043e\u043c\u0438\u043c\u043e Run AppleScript, \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a Run JavaScript \u0438\u043b\u0438 Run Shell Script. \u0412 \u043e\u0434\u043d\u043e\u043c WorkFlow \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 Workflow (Run WorkFlow).<\/p>\n<p>\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 Run AppleScript \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u0441\u0430\u043c\u043e \u043f\u043e \u0441\u0435\u0431\u0435, \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430. \u0423 \u0442\u0430\u043a\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u044f \u043a\u043d\u043e\u043f\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u0414\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043c\u044b \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043c\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0442\u0430\u043a\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c. \u0412\u0441\u044e \u043c\u0430\u0433\u0438\u044e \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c AppleScript. \u0416\u043c\u0435\u043c \u043d\u0430 \u043c\u043e\u043b\u043e\u0442\u043e\u0447\u0435\u043a &#8212; \u0438 \u043f\u0438\u0448\u0435\u043c \u043a\u043e\u0434.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h2>\n<p>\u0412\u043e\u043e\u0440\u0443\u0436\u0438\u0432\u0448\u0438\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439, \u043d\u043e \u0438 \u043d\u0435 \u043f\u0440\u0435\u043d\u0435\u0431\u0440\u0435\u0433\u0430\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043d\u0430\u0443\u0447\u043d\u043e\u0433\u043e \u0442\u044b\u043a\u0430, \u043d\u0430\u0447\u043d\u0435\u043c.<\/p>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 XCode. \u0422\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0435 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0445\u0435\u043c &#8212; \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u044f\u0437\u044b\u043a\u043e\u0432. \u0422\u0430\u043a\u0436\u0435 \u0432 Xcode \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435, \u043f\u0440\u0438\u0447\u0435\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 Xcode \u0435\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u043f\u0438\u0448\u0435\u043c \u0440\u0443\u043a\u0430\u043c\u0438 \u043a\u0430\u043a\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 sizes.<\/p>\n<pre><code class=\"swift\">set ipad to \"iPad Pro (12.9-inch) (3rd generation)\" set sizes to {\"iPhone 8 Plus\", \"iPhone 11 Pro Max\", ipad}\u0410<\/code><\/pre>\n<p>\u0410 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0445\u0435\u043c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 schemes<\/p>\n<pre><code class=\"swift\">set schemes to {\"TinyApp\", \"TinyApp-cn\", \"TinyApp-jp\", \"TinyApp-es\", \"TinyApp-de\", \"TinyApp-ru\", \"TinyApp-fr\"}<\/code><\/pre>\n<p>\u0418 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c \u0438 \u043f\u043e \u044f\u0437\u044b\u043a\u0430\u043c:<\/p>\n<pre><code class=\"swift\">repeat with size in sizes     repeat with lang in schemes     \t\t-- ..... \t\tend repeat end repeat <\/code><\/pre>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043e\u0439 size, \u0438 lang.<\/p>\n<p>\u0413\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e XCode \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u0445\u0435\u043c\u0443 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u0430, \u0438 \u043f\u0440\u043e\u0441\u0438\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Simulator:<\/p>\n<pre><code class=\"swift\">        tell application \"Xcode\" to activate         tell application \"System Events\"             tell process \"Xcode\"                 tell menu bar 1                     tell menu \"Product\"                         tell menu item \"Scheme\"                             tell menu \"Scheme\"                                 click menu item lang                             end tell                         end tell                            tell menu item \"Destination\"                             tell menu \"Destination\"                                 click menu item size                             end tell                         end tell                         click menu item \"Run\"                     end tell                 end tell             end tell         end tell <\/code><\/pre>\n<p>\u0418 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0434\u0438\u0430\u043b\u043e\u0433 \u0441 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c:<\/p>\n<pre><code class=\"swift\">        tell application \"System Events\"             display dialog \"Continue\"         end tell <\/code><\/pre>\n<p>\u041d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440, \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0435\u0433\u043e \u0432 \u043d\u0443\u0436\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0440\u0443\u043a\u0430\u043c\u0438 (\u043c\u044b\u0448\u043a\u043e\u0439) \u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435 Continue. \u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043c\u043d\u0438\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0438 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0436\u043c\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 Continue.<\/p>\n<p>\u041d\u0443 \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0440\u043e\u0441\u0438\u0442 \u0421\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0435.<\/p>\n<pre><code class=\"swift\">        tell application \"Automator\" to activate         tell application \"System Events\"             tell process \"Simulator\"                 tell menu bar 1                     tell menu \"File\"                         click menu item \"Save Screen\"                     end tell                 end tell             end tell         end tell <\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u0430\u043a \u043d\u0430\u043c \u0443\u0434\u043e\u0431\u043d\u043e: <\/p>\n<pre><code class=\"swift\">        tell application \"Finder\"             set the source_folder to (path to desktop folder) as alias             sort (get files of source_folder) by creation date             set theFile to (item 1 of reverse of result) as alias             set newName to lang &amp; \"-\" &amp; size &amp; \" .png\"             set name of theFile to newName         end tell <\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u0441\u043d\u0438\u043c\u043e\u043a \u044d\u043a\u0440\u0430\u043d\u0430 \u0434\u043b\u044f iPad \u0442\u043e \u043c\u044b \u043c\u0435\u043d\u044f\u0435\u043c \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0449\u0435 \u0441\u043d\u0438\u043c\u043e\u043a:<\/p>\n<pre><code class=\"swift\">        if size as string is equal to ipad then             tell application \"Automator\" to activate             tell application \"System Events\"                 tell process \"Simulator\"                     tell menu bar 1                                                  tell menu \"Hardware\"                             tell menu item \"Orientation\"                                 tell menu \"Orientation\"                                     click menu item \"Landscape Right\"                                 end tell                             end tell                         end tell                                                  delay 2                         tell menu \"File\"                             click menu item \"New Screen Shot\"                         end tell                                                  tell application \"Finder\"                             set the source_folder to (path to desktop folder) as alias                             sort (get files of source_folder) by creation date                             set theFile to (item 1 of reverse of result) as alias                             set newName to lang &amp; \"-\" &amp; size &amp; \"-landscape\" &amp; \" .png\"                             set name of theFile to newName                         end tell                                                                          tell menu \"Hardware\"                             tell menu item \"Orientation\"                                 tell menu \"Orientation\"                                     click menu item \"Portrait\"                                 end tell                             end tell                         end tell                                              end tell                 end tell             end tell         end if <\/code><\/pre>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043a \u043a\u043e\u043d\u0446\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0443 \u043d\u0430\u0441 \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u044b \u0441\u043d\u0438\u043c\u043a\u043e\u0432 \u044d\u043a\u0440\u0430\u043d\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043d\u0443\u0436\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432. \u0412 \u043e\u0434\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0434\u0438\u0430\u043b\u043e\u0433\u0435. \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0440\u0443\u043a\u0430\u043c\u0438 \u0444\u0430\u0439\u043b\u044b, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u041d\u0430\u043f\u043e\u043c\u043d\u044e &#8212; \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u044d\u0442\u043e \u043f\u044f\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0432 AppStore. <\/p>\n<p>\u041c\u044b \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043e\u0433\u043b\u0438 \u0435\u0449\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432, \u043d\u043e \u043c\u044b \u043d\u0430 \u044d\u0442\u043e\u043c \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c. <\/p>\n<h2>\u0418\u0442\u043e\u0433<\/h2>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0440\u0443\u043a\u0430\u043c\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 120 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0440\u0443\u043a\u0430\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0437\u0430 \u0447\u0430\u0441, \u043c\u044b \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f Automator, \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0432 \u043d\u0430 \u043e\u0441\u0432\u043e\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438 \u044f\u0437\u044b\u043a\u0430 AppleScript \u0447\u0430\u0441\u0430 \u0442\u0440\u0438, \u0438 \u043d\u0430\u0448 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c 120 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443 \u0441 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0437\u0430\u0442\u0440\u0430\u0442\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043c\u044b \u0431\u044b\u043b\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043d\u0430\u0448 \u043e\u043f\u044b\u0442 \u043c\u043e\u0436\u0435\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0438 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u043b\u044e\u0434\u0435\u0439, \u0438 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0437\u0430\u0434\u0430\u0447.<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u0438 \u041a\u043e\u0434 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e:<\/p>\n<pre><code class=\"swift\">on run {input, parameters}     set ipad to \"iPad Pro (12.9-inch) (3rd generation)\"     set sizes to {\"iPhone 8 Plus\", \"iPhone 11 Pro Max\", ipad}     set schemes to {\"TinyApp\", \"TinyApp-cn\", \"TinyApp-jp\", \"TinyApp-es\", \"TinyApp-de\", \"TinyApp-ru\", \"TinyApp-fr\"}     repeat with size in sizes         repeat with lang in schemes             tell application \"Xcode\" to activate             tell application \"System Events\"                 tell process \"Xcode\"                     tell menu bar 1                         tell menu \"Product\"                                                          tell menu item \"Scheme\"                                 tell menu \"Scheme\"                                     click menu item lang                                 end tell                             end tell                                                          tell menu item \"Destination\"                                 tell menu \"Destination\"                                     click menu item size                                 end tell                             end tell                             click menu item \"Run\"                         end tell                     end tell                 end tell             end tell                          tell application \"System Events\"                 display dialog \"Continue\"             end tell                          tell application \"Automator\" to activate             tell application \"System Events\"                 tell process \"Simulator\"                     tell menu bar 1                         tell menu \"File\"                             click menu item \"Save Screen\"                         end tell                     end tell                 end tell             end tell                          tell application \"Finder\"                 set the source_folder to (path to desktop folder) as alias                 sort (get files of source_folder)<\/code><\/pre>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-319935","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=319935"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319935\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}