{"id":1334,"date":"2004-08-02T18:32:00","date_gmt":"2004-08-02T17:32:00","guid":{"rendered":"http:\/\/www.celesteh.com\/blog\/2004\/08\/02\/script-for-photo-feed\/"},"modified":"2015-06-19T00:26:01","modified_gmt":"2015-06-18T23:26:01","slug":"script-for-photo-feed","status":"publish","type":"post","link":"https:\/\/www.celesteh.com\/blog\/2004\/08\/02\/script-for-photo-feed\/","title":{"rendered":"Script for Photo Feed"},"content":{"rendered":"<p>My script isn&#8217;t in great shape, but it appears to be working now, so I&#8217;m posting it for your perusal.  The first part of it uses a bit of perl to look for the &lt;\/html&gt; tag and add above it an &lt;address&gt; section which links back to my blog.  I could use all sorts of pattern matching to change the HTML pages generated by iphoto, but I mostly want a link.  there doesn&#8217;t seem to be a way to modify the template that iphoto uses.  The next part of the script creates the <a href=\"http:\/\/www.xkey.com\/~celesteh\/pics\/atom.xml\">XML feed<\/a>.  The script takes as an argument the number of the first new photo.  If you add new photos starting from 1036, then it will create a link to that photo, whose number you supplied as an argument.  Iphoto counts from zero, so 1 is subtracted from your argument.  That number is also used to generate a unique ID tage.  You&#8217;ll note that a whole bunch of stuff points to blogger.  I dunno what that stuff does.  I&#8217;m just a hacker.<\/p>\n<p>If you want to use this script, you will need to edit it with your URLs instead of mine.  also, before you run it the first time: <\/p>\n<pre>echo \"&lt;\/feed&gt;\" &gt; old_atom.xml<\/pre>\n<p> so that the closing tag you need is there.  So here is the <a href=\"http:\/\/www.xkey.com\/~celesteh\/pics\/mod-temp.sh\">script<\/a> and the <a href=\"http:\/\/www.xkey.com\/~celesteh\/pics\/atom-header.xml\">header<\/a>.  This is provided as-is with no warranty.  It might not work for you.  It works for me.  Feel free to do whatever you want with it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My script isn&#8217;t in great shape, but it appears to be working now, so I&#8217;m posting it for your perusal. The first part of it uses a bit of perl to look for the &lt;\/html&gt; tag and add above it an &lt;address&gt; section which links back to my blog. I could use all sorts of &hellip; <a href=\"https:\/\/www.celesteh.com\/blog\/2004\/08\/02\/script-for-photo-feed\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Script for Photo Feed<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1334","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/1334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/comments?post=1334"}],"version-history":[{"count":1,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/1334\/revisions"}],"predecessor-version":[{"id":3585,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/1334\/revisions\/3585"}],"wp:attachment":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/media?parent=1334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/categories?post=1334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/tags?post=1334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}