{"id":570,"date":"2018-07-31T09:00:12","date_gmt":"2018-07-31T08:00:12","guid":{"rendered":"http:\/\/www.programaraciegas.net\/?p=570"},"modified":"2018-07-21T07:41:42","modified_gmt":"2018-07-21T06:41:42","slug":"como-saber-si-voiceover-puede-ser-controlado-con-applescript-desde-un-script-de-applescript","status":"publish","type":"post","link":"https:\/\/programaraciegas.net\/?p=570","title":{"rendered":"C\u00f3mo saber si VoiceOver puede ser controlado con AppleScript desde un script de AppleScript"},"content":{"rendered":"<p>Una funci&oacute;n muy necesaria para los scripts de AppleScript destinados a funcionar con VoiceOver, el lector de pantallas de Apple para sus productos, es saber si VoiceOver para MacOS tiene habilitada la opci&oacute;n de poder ser controlado por AppleScript ya que esto nos permitir&aacute; manipular el comportamiento de VoiceOver desde nuestros scripts de AppleScript.<\/p>\n<p>Para ello lo que hacemos es comunicarnos con la aplicaci&oacute;n <em>VoiceOver<\/em> y probamos a llamar a alguna de sus funciones internas.<\/p>\n<p>El c&oacute;digo de nuestra funci&oacute;n ser&iacute;a el siguiente:<\/p>\n<p><code><br \/>\non isVoiceOverRunningWithAppleScript()<br \/>\n\tset isRunning to true<br \/>\n\t-- is AppleScript enabled on VoiceOver --<br \/>\n\ttell application \"VoiceOver\"<br \/>\n\t\ttry<br \/>\n\t\t\tset x to bounds of vo cursor<br \/>\n\t\ton error<br \/>\n\t\t\tset isRunning to false<br \/>\n\t\tend try<br \/>\n\tend tell<br \/>\n\treturn isRunning<br \/>\nend isVoiceOverRunningWithAppleScript<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Una funci&oacute;n muy necesaria para los scripts de AppleScript destinados a funcionar con VoiceOver, el lector de pantallas de Apple para sus productos, es saber si VoiceOver para MacOS tiene habilitada la opci&oacute;n de poder ser controlado por AppleScript ya que esto nos permitir&aacute; manipular el comportamiento de VoiceOver desde nuestros scripts de AppleScript. Para &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/programaraciegas.net\/?p=570\" class=\"more-link\">Continuar leyendo<span class=\"screen-reader-text\"> \u00abC\u00f3mo saber si VoiceOver puede ser controlado con AppleScript desde un script de AppleScript\u00bb<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[80,6],"tags":[83,150,82,249],"class_list":["post-570","post","type-post","status-publish","format-standard","hentry","category-applescript","category-programacion","tag-applescript-2","tag-funciones","tag-script","tag-voiceover"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/programaraciegas.net\/index.php?rest_route=\/wp\/v2\/posts\/570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/programaraciegas.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programaraciegas.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programaraciegas.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/programaraciegas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=570"}],"version-history":[{"count":0,"href":"https:\/\/programaraciegas.net\/index.php?rest_route=\/wp\/v2\/posts\/570\/revisions"}],"wp:attachment":[{"href":"https:\/\/programaraciegas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programaraciegas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programaraciegas.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}