<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Re: Tags as a service</title>
    <link>https://forums.adobe.com/community/lightroom/lightroom_sdk?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Sat, 07 Apr 2012 04:43:05 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2012-04-07T04:43:05Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Tags as a service</title>
      <link>https://forums.adobe.com/message/4319074?tstart=0#4319074</link>
      <description>&lt;!-- [DocumentBodyStart:98cabbab-bc49-40fc-90c4-2322db94cc09] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Todd asked about SDK capabilities for keywords:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-thread-small" data-containerId="3316" data-containerType="14" data-objectId="986390" data-objectType="1" href="https://forums.adobe.com/thread/986390?tstart=0"&gt;http://forums.adobe.com/thread/986390?tstart=0&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;"There didn't seem to be an API to directly modify the metadata for an image."&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;See LrPhoto, including the methods addKeyword(), removeKeyword(), and setRawMetadata().&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;"The story we'd like to support is simply allowing a user to check a bunch of images, launch them to an external service, go back to playiing Angry Birds and have their images tagged automatically."&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here's one way to implement that: The user selects the desired images and invokes the plugin's "send" command. The plugin uses LrHttp to send the photos to the external service.&amp;nbsp; If the service completes its actions in a short period of time (seconds), the plugin can simply wait for a reply from its HTTP request.&amp;nbsp; If the service's actions are expected to take a long time (minutes or hours), the plugin can poll the service using HTTP requests sent from a background task (e.g. every 30 seconds) that the plugin created with LrTask. The external service responds with a set of photo ids and corresponding keywords, and the plugin uses the LrPhoto methods to assign the keywords to the photos in the Lightroom catalog. &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:98cabbab-bc49-40fc-90c4-2322db94cc09] --&gt;&lt;img src='/beacon?t=1415888226144' /&gt;</description>
      <pubDate>Sat, 07 Apr 2012 04:43:05 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4319074?tstart=0#4319074</guid>
      <dc:date>2012-04-07T04:43:05Z</dc:date>
      <clearspace:dateToText>2 years 7 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

