{"id":1164,"date":"2006-01-02T11:39:57","date_gmt":"2006-01-02T15:39:57","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/2006\/01\/02\/verizons-installer-applescript\/"},"modified":"2006-01-02T11:39:57","modified_gmt":"2006-01-02T15:39:57","slug":"verizons-installer-applescript","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2006\/01\/02\/verizons-installer-applescript\/","title":{"rendered":"Verizon&rsquo;s Installer AppleScript"},"content":{"rendered":"<p>\r\n<a href=\"http:\/\/www.red-sweater.com\/blog\/?p=78\">Daniel Jalkut<\/a>:\r\n<\/p>\r\n<blockquote cite=\"http:\/\/www.red-sweater.com\/blog\/?p=78\">\r\n<p>\r\nThis whole thing involves about a hundred bazillion dangerous, presumptuous &ldquo;do shell script&rdquo; calls. Instead of using AppleScript&rsquo;s built-in file access routines, the author has chosen to use shell scripts and the &ldquo;echo&rdquo; command to perform all of his writes. For all of his reads, he uses a combination of the UNIX &ldquo;cat&rdquo; command with the &ldquo;sed&rdquo; and &ldquo;tail&rdquo; command. For each line of the original Bookmarks line to be read, he cats the *entire* file and pipes the result through sed and then tail. Seeing this kind of stuff makes me wonder whether half of my hard drive was deleted and I just haven&rsquo;t found out yet.\r\n<\/p>\r\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Daniel Jalkut: This whole thing involves about a hundred bazillion dangerous, presumptuous &ldquo;do shell script&rdquo; calls. Instead of using AppleScript&rsquo;s built-in file access routines, the author has chosen to use shell scripts and the &ldquo;echo&rdquo; command to perform all of his writes. For all of his reads, he uses a combination of the UNIX &ldquo;cat&rdquo; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1164","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=1164"}],"version-history":[{"count":0,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1164\/revisions"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=1164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=1164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=1164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}