{"id":2311,"date":"2012-07-11T00:00:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/johnjohnston.info\/blog\/?e=2311"},"modified":"2012-07-11T00:00:00","modified_gmt":"1970-01-01T00:00:00","slug":"testing-a-new-system","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/testing-a-new-system\/","title":{"rendered":"Testing a new system"},"content":{"rendered":"\n<p>This is a quick test of a alternative way to post to my blog. <\/p>\n<p>I tend to blog from my MacBook. I&#8217;ve been testing various iOS systems for blogging on the go. I&#8217;ve also read a lot about blogging systems that use Dropbox files to produce a post. In the past I&#8217;ve experimented with posting to a blog with AppleScript and thought I could knit something simple together. This consists of several parts:<\/p>\n<ul>\n<li>a folder on my Dropbox called BlogThis<\/li>\n<li>a Folder Action AppleScript on this folder on my always on work mac. <\/li>\n<li>The MetaweblogAPI enabled on this blog and supported by AppleScript.  <\/li>\n<\/ul>\n<p>When a file arrives on Dropbox and syncs to my work mac the Folder Action AppleScript posts it to my blog. It uses the first line of the file as a title. If the file is HTML it posts that, if it is <a href=\"http:\/\/daringfireball.net\/projects\/markdown\">markdown<\/a> it converts it to HTML first. <\/p>\n<h3>NOCs<\/h3>\n<p>This post was created with [NOCs](http:\/\/www.wisd.com\/) on my iPhone. Once I&#8217;ve finished a local, iPhone, draft NOCs allows me to move it to any Dropbox folder. <\/p>\n<h3>Extending<\/h3>\n<p>About 6 years show I was testing <a href=\"http:\/\/johnjohnston.info\/blog\/?e=896\">posting images via the MetaWeblogApi<\/a> and it should be easy enough to use a Dropbox folder for that, or to script an FTP upload. This would mean I could add an image from my phone to my Dropbox. This would upload to this sit and could be encorporated into a post. Until the I could use Flickr. <\/p>\n<p><a href=\"http:\/\/www.flickr.com\/photos\/troutcolor\/7542552818\/\"><img decoding=\"async\" style=\"width:90%\" src=\"https:\/\/static.flickr.com\/8019\/7542552818_37b7d2def0.jpg\"><\/a><\/p>\n<p>I am not sure if anyone is very interested in this sort of thing. If they are I&#8217;ll be able to post more details from a desktop. This is about as long a post as I&#8217;d like to write on a phone.<\/p>\n<p><em>Not quite perfect yet, I had to edit the img tag here. More fun to be had.<\/em><\/p>\n<p><strong>Update<\/strong>: it was like magic watching my home mac when posting this from my phone, growl told me that a file had been addd to my dropbox and almost immediately that a file had ben moved (by the work mac).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a quick test of a alternative way to post to my blog. I tend to blog from my MacBook. I&#8217;ve been testing various iOS systems for blogging on the go. I&#8217;ve also read a lot about blogging systems that use Dropbox files to produce a post. In the past I&#8217;ve experimented with posting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[93,10,120],"post_format":[],"class_list":{"0":"post-2311","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-wwwd","7":"tag-applescript","8":"tag-blogging","9":"tag-dropbox","10":"kind-","11":"h-entry","12":"hentry"},"better_featured_image":null,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-Bh","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=2311"}],"version-history":[{"count":0,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2311\/revisions"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=2311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=2311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=2311"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=2311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}