{"id":34,"date":"2008-03-13T23:02:12","date_gmt":"2008-03-13T23:02:12","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=34"},"modified":"2022-02-03T11:25:07","modified_gmt":"2022-02-03T17:25:07","slug":"load-webpage-print-load-print-etc-with-applescipt","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/","title":{"rendered":"Load webpage, print, load, print, etc. with Applescipt"},"content":{"rendered":"<p>First, Mac are super cool because beneath that suave exterior is unix. A computer that is easy to use AND super powerful.<\/p>\n<p>But not everything needs unix. Here is the coolest applescript to<\/p>\n<ol>\n<li>load a random bingo card generator which I built in php (the unix part)<\/li>\n<li>print the page<\/li>\n<li>go to step 1 fifty times<\/li>\n<\/ol>\n[applescript]\nset i to 1<br \/>\nrepeat 20 times<br \/>\n\ttell application &quot;Safari&quot;<br \/>\n\t\tactivate<br \/>\n\t\ttell application &quot;System Events&quot;<br \/>\n\t\t\ttell process &quot;Safari&quot;<br \/>\n\t\t\t\tkeystroke &quot;r&quot; using command down<br \/>\n\t\t\t\tdelay 1<\/p>\n<p>\t\t\t\tkeystroke return<br \/>\n\t\t\tend tell<br \/>\n\t\tend tell<br \/>\n\t\t&#8211;open location &quot;http:\/\/www.apple.com&quot;<br \/>\n\tend tell<br \/>\n\tdelay 3<br \/>\n\ttell application &quot;System Events&quot;<br \/>\n\t\ttell process &quot;Safari&quot;<br \/>\n\t\t\tkeystroke &quot;p&quot; using command down<br \/>\n\t\t\tdelay 0.5<br \/>\n\t\t\tkeystroke return<br \/>\n\t\tend tell<br \/>\n\tend tell<br \/>\n\tdelay 4<br \/>\n\tsay i<br \/>\n\tset i to i + 1<br \/>\nend repeat<\/p>\n[\/applescript]\n<p><b>\u00a0<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First, Mac are super cool because beneath that suave exterior is unix. A computer that is easy to use AND super powerful. But not everything needs unix. Here is the coolest applescript to load a random bingo card generator which I built in php (the unix part) print the page go to step 1 fifty [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-web-integration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Load webpage, print, load, print, etc. with Applescipt - ELB Solutions.com Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Load webpage, print, load, print, etc. with Applescipt - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"First, Mac are super cool because beneath that suave exterior is unix. A computer that is easy to use AND super powerful. But not everything needs unix. Here is the coolest applescript to load a random bingo card generator which I built in php (the unix part) print the page go to step 1 fifty [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2008-03-13T23:02:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:25:07+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/load-webpage-print-load-print-etc-with-applescipt\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/load-webpage-print-load-print-etc-with-applescipt\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"Load webpage, print, load, print, etc. with Applescipt\",\"datePublished\":\"2008-03-13T23:02:12+00:00\",\"dateModified\":\"2022-02-03T17:25:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/load-webpage-print-load-print-etc-with-applescipt\\\/\"},\"wordCount\":146,\"articleSection\":[\"Web Integration\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/load-webpage-print-load-print-etc-with-applescipt\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/load-webpage-print-load-print-etc-with-applescipt\\\/\",\"name\":\"Load webpage, print, load, print, etc. with Applescipt - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2008-03-13T23:02:12+00:00\",\"dateModified\":\"2022-02-03T17:25:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/load-webpage-print-load-print-etc-with-applescipt\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/load-webpage-print-load-print-etc-with-applescipt\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/load-webpage-print-load-print-etc-with-applescipt\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Load webpage, print, load, print, etc. with Applescipt\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Load webpage, print, load, print, etc. with Applescipt - ELB Solutions.com Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/","og_locale":"en_US","og_type":"article","og_title":"Load webpage, print, load, print, etc. with Applescipt - ELB Solutions.com Inc.","og_description":"First, Mac are super cool because beneath that suave exterior is unix. A computer that is easy to use AND super powerful. But not everything needs unix. Here is the coolest applescript to load a random bingo card generator which I built in php (the unix part) print the page go to step 1 fifty [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2008-03-13T23:02:12+00:00","article_modified_time":"2022-02-03T17:25:07+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"Load webpage, print, load, print, etc. with Applescipt","datePublished":"2008-03-13T23:02:12+00:00","dateModified":"2022-02-03T17:25:07+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/"},"wordCount":146,"articleSection":["Web Integration"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/","url":"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/","name":"Load webpage, print, load, print, etc. with Applescipt - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2008-03-13T23:02:12+00:00","dateModified":"2022-02-03T17:25:07+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/load-webpage-print-load-print-etc-with-applescipt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"Load webpage, print, load, print, etc. with Applescipt"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":9,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":2891,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/34\/revisions\/2891"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}