How to print metadata?

I would like to print the exif info of an image.

Are you still interested in printing EXIF metadata? You can program an Apple Script to write the EXIF data (and other meta tags)  to a text file and then print this file, like this:
(* Write Metadata tags to a file
Author: Leonie Dreschler-Fischer
To run this workflow, select some images in Aperture,
then start the workflow by pressing the "Run Button",
or install the workflow as service in ~/Library/Services and launch it from the Services menu in Aperture,
when prompted, enter a filename for the text output
on write_info(im_version, f)
          local nam, w, h, dat, dims, nl
          local res
          tell application "Aperture"
                    set dat to ""
                    set nl to "
                    try
                              set nam to "Name: "
                              set nam to "Version Name: " & (get the name of im_version as string)
  write nam to f
  write nl to f
                    end try
                    try
                              set w to get width of im_version as string
                              set h to get height of im_version as string
                              set dims to "   Dimensions: " & w & "x" & h & nl
  write dims to f
                    end try
                    try
                              tell im_version
                                        set dat to (value of EXIF tag "ImageDate") as string
                              end tell
                              set dat to "   Image Date: " & dat & nl
  write dat to f
                    end try
                    try
                              local thekeywords
                              tell im_version
                                        set thekeywords to (value of IPTC tag "keywords") as string
                              end tell
                              set thekeywords to "   Keywords: " & thekeywords & nl
  write thekeywords to f
                    end try
                    try
                              local rating, isflagged, ispicked
                              tell im_version
                                        set rating to get the main rating of im_version as string
                                        set isflagged to get flagged of im_version as string
                                        set ispicked to get picked of im_version as string
                              end tell
                              set rating to "   Rating: " & rating & ", flagged: " & isflagged & ", picked: " & ispicked & nl
  write rating to f
                    end try
                    try
                              local cam_make, cam_model, camera
                              tell im_version
                                        set cam_make to (value of EXIF tag "Make") as string
                                        set cam_model to (value of EXIF tag "Model") as string
                              end tell
                              set camera to "   Camera: " & cam_make & " " & cam_model & nl
  write camera to f
                    end try
                    try
                              local focal_length, aperture_value, shutter_speed, capture
                              tell im_version
                                        set focal_length to (value of EXIF tag "FocalLength") as string
                                        set aperture_value to (value of EXIF tag "ApertureValue") as string
                                        set shutter_speed to (value of EXIF tag "Shutterspeed") as string
                              end tell
                              set capture to "   Focal Length: " & focal_length & "mm, Aperture: f/ " & aperture_value & ", Shutter Speed: " & shutter_speed & "s" & nl
  write capture to f
                    end try
                    return nam
          end tell
end write_info
on run {input, parameters}
  (* Write EXIF info on all selected images to a file *)
          if input is {} then error "Please select an image."
          local outputFile, item_count, im, inf
          set outputFile to choose file name with prompt "Output File name"
          set the inf to ""
          try
  open for access outputFile with write permission
                    set the item_count to count of input
                    repeat with i from 1 to the item_count
                              set im to item i of input
                              set inf to write_info(im, outputFile)
                    end repeat
  close access outputFile
                    tell application "TextEdit"
  activate
  open outputFile
                    end tell
          end try
          return input
end run
This script can easily be extended to include more EXIF tags, like longitude and latitude. And you can wrap it as an Automator service to be run from the Services menu in Aperture. I put an Automator workflow for download on my webpage:
http://dreschler-fischer.de/FAQ/Scripts_Services/Entries/2012/2/8_Write_EXIF_Inf o_to_a_File.html
To run this service, install it in the "Services" folder in your user library; then select some images in Aperture, and select the service from the Aperture Services menu.
Regards
Léonie

Similar Messages

  • How to add metadata to .xdp form

    Hi,
    I am currently investigating how to add metadata to an xdp form in LifeCycle Designer. I have read the help contents that Adobe provide however I am unclear as to how exactly the metadata is included with the form. Are there specific elements that are included in the xml? Also is the metadata that is included specific to a field, area, etc within the form?
    The metadata I wish to include with the xdp form will contain information regarding the manner in which the form can be used at a later stage, for example whether a form can be printed. In this case I would envisage the following: <printable>true</printable> as part of many different elements within the metadata.
    If anyone can offer any insight into this it would be greatly appreciated.
    Thanks in advance.

    Thanks for the reply,
    The way you have described seems to be for individual fields. Is it possible to include metadata that applies to the whole form rather than just an individual field. I have been looking at manipulating the xml. I am not familiar with LiveCycle Designer and as such I was thinking that you could possibly add elements to the xml in the following section:
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.2.1-c041 52.337767, 2008/04/13-15:41:00        ">
       <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
          <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
             <xmp:MetadataDate>2009-05-15T08:01:47Z</xmp:MetadataDate>
             <xmp:CreatorTool>Adobe LiveCycle Designer ES 8.2</xmp:CreatorTool>
             <xmp:Name>Test1</xmp:Name>
             <xmp:Editable>True</xmp:Editable>
            <xmp:Printable>True</xmp:Printable>
          </rdf:Description>
          <rdf:Description xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
             <pdf:Producer>Adobe LiveCycle Designer ES 8.2</pdf:Producer>
          </rdf:Description>
          <rdf:Description xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" rdf:about="">
             <xmpMM:DocumentID>uuid:59354ca2-6c12-4c0a-aefa-649133cd4486</xmpMM:DocumentID>
          </rdf:Description>
          <rdf:Description xmlns:desc="http://ns.adobe.com/xfa/promoted-desc/" rdf:about="">
             <desc:version rdf:parseType="Resource">
                <rdf:value>8.2.1.3158.1.475346.466429</rdf:value>
                <desc:ref>/template/subform[1]</desc:ref>
             </desc:version>
          </rdf:Description>
       </rdf:RDF>
    </x:xmpmeta></xdp:xdp>
    As you may see from the code snippet above I have added three elements: name, editable and printable. The information within these elements would be extracted at a later stage and used by another application to make decisions such as is the form printable, it the form editable etc. Do you know is this the correct place to be adding these elements? The addition of these elements does not cause an error within Designer so I am assuming that there should be no problem accessing / modifying these fields later? 
    Thanks

  • Print metadata with contact sheet, or alone?

    Hi,  I am taking a beginner's digital photo class and we have weekly assignments to bring a contact sheet to class, with metadata next to the photo.
    I am on an iMac G4 that is NOT an intel mac so I cannot use picasa, which I'm told is the easiest way.  I found how to print a contact sheet in iPhoto but it will not add the photo name or the metadata.
    So, I tried with my Adobe Photoshop elements and I am not sure how to do this.  I found my way to 'bridge' where I can see the metadata but for the life of me, I have no idea how to print the  contact sheet with the metadata, as the instructor has requested.
    Can anyone help a beginner find her way?  Is this doable in PS Elements?
    Thanks for any help and/or guidance anyone is willing to give.
    Michelle

    The short answer is that it can be done with InDesign CS3 via a script someone wrote:
    http://www.indesign1200.com/blog/2009/03/02/branding-contact-sheets/
    Not sure if the Web Gallery output option in Bridge works how you want it to.  The PDF doesnt.  It only includes filenames.

  • How to print a HTML file in browser look using DocPrintJob

    Hello guys,
    Does anyone know how to print HTML output/file into browser look?
    I'm using DocPrintJob and the DocFlavor set to DocFlavor.INPUT_STREAM.AUTOSENSE.
    posted below is my code :
    public class BasicPrint {
        public static void main(String[] args) {
            try {
                // Open the image file
                String testData = "C:/new_page_1.html";
                InputStream is = new BufferedInputStream(new FileInputStream(testData));
                DocFlavor flavor =  DocFlavor.INPUT_STREAM.AUTOSENSE;
                // Find the default service
                PrintService service = PrintServiceLookup.lookupDefaultPrintService();
                System.out.println(service);
                // Create the print job
                DocPrintJob job = service.createPrintJob();
                Doc doc= new SimpleDoc(is, flavor, null);
                // Monitor print job events; for the implementation of PrintJobWatcher,
                // see e702 Determining When a Print Job Has Finished
                PrintJobWatcher pjDone = new PrintJobWatcher(job);
                // Print it
                job.print(doc, null);
                // Wait for the print job to be done
                pjDone.waitForDone();
                // It is now safe to close the input stream
                is.close();
            } catch (PrintException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
        static class PrintJobWatcher {
            // true iff it is safe to close the print job's input stream
            boolean done = false;
            PrintJobWatcher(DocPrintJob job) {
                // Add a listener to the print job
                job.addPrintJobListener(new PrintJobAdapter() {
                    public void printJobCanceled(PrintJobEvent pje) {
                        allDone();
                    public void printJobCompleted(PrintJobEvent pje) {
                        allDone();
                    public void printJobFailed(PrintJobEvent pje) {
                        allDone();
                    public void printJobNoMoreEvents(PrintJobEvent pje) {
                        allDone();
                    void allDone() {
                        synchronized (PrintJobWatcher.this) {
                            done = true;
                            PrintJobWatcher.this.notify();
            public synchronized void waitForDone() {
                try {
                    while (!done) {
                        wait();
                } catch (InterruptedException e) {
    }the printed ouput for this code will be look like this
    <html>
    <body>
    <div style="page-break-after:'always';
                background-color:#EEEEEE;
                width:400;
                height:70">
         testPrint</div>
    ABCDEFGHIJK<p>
     </p>
    </body>
    </html>however, the output that i want is the HTML in browser look not HTML code itself.
    i've tried to change the DocFlavor into any TEXT_HTML type but it gives error:
    sun.print.PrintJobFlavorException: invalid flavor if you guys has any idea or solution, can you share with me... already search in Google but still not found any solution
    Thanks in advanced.

    hi,
    do the following
    URL url = null;
    try
         url = new URL("http://www.xyz.com");
    catch (MalformedURLException e)
          System.out.println("URL not correct " + e.toString());
    if (url != null)
           getAppletContext().showDocument(url,"_blank"); //shows the page in a new unnamed top level browser instance.
    }hope that helpz
    cheerz
    ynkrish

  • How to print last page in sap script in ladscape format?

    Hi all,
    can any 1 tell me How to print last page in sap script in ladscape format?
    Thanks In advance.
    Pravin

    Hi Pravin Sherkar,
    we can do this in SAP Scripts.
    we need to create two pages, one of landscape and another of potrait.
    now after filling the data at last we need to call the page which is of format landscape using START_FORM  function module.
    You can use condition &PAGE& = &FORMPAGES&.
    Please check this link
    Printing Portrait/Landscape in sapscript
    Re: Landscape and potrait in same layout?
    http://www.sap-img.com/ts013.htm
    Best regards,
    raam

  • How to print the superscript in smartform

    Hi gurus,
    Please tell me the procedure how to print the superscript in middle of the text displaying?
    when we are displaying the smartform its converted to some special character like & .
    please let me know procedure at the earliest
    Regards
    Raj

    Hi thanks for ur patience.
    see my requirment was to print TM as superscript for HLL ,already smartstyle is there, and also a character format with superscript is also defined.
    then aftet HLL how it prints as superscript.
    for HLL we are using another character format and for superscript we are using the another character format.
    If posiible send me the code to write in smartforms
    Regards
    RAj
    Points are awarded for useful answers.

  • How to print the script in condensed mode

    Hi to all,
    Pls help me.
    How to print the script in condensed mode and particular window only print in the condensed mode.

    Hi,
    Hi
    It will remove the blank spaces in front of the variable
    and if you use the extension NO-GAPS
    It will remove all the blank spaces in the variable field.
    DATA: ws_val1 type char12.
    ws_val1 = ' 100 123'.
    Condense ws_val1.
    Write / ws_val1.
    Condense ws_val1 no-gaps.
    write / ws_val1.
    It will give output as
    100 123
    100123
    The CONDENSE statement deletes redundant spaces from a string:
    CONDENSE c NO-GAPS.
    This statement removes any leading blanks in the field c and replaces other sequences of blanks by exactly one blank. The result is a left-justified sequence of words, each separated by one blank. If the addition NO-GAPS is specified, all blanks are removed.
    Please check this link for sample code.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb33e6358411d1829f0000e829fbfe/content.htm
    Regards,
    Raj.

  • How to print all columns in one page

    Hi,
    Can anybody explain me how to print all columns in one page.we have around 15 to 20 columns for 4 reports and all these reports are build on one multiprovider.we are using BW 3.5.
    Can anyone explain me  how to print ALL COLUMNS IN ONE PAGE  .currently they are getting all columns in 2 to 3 pages. They are using PORTAL to run the reports here.
    Is it possible to do by customizing Webtemplate or by macros in Workbook.Please help me
    Edited by: kotha123 on Oct 11, 2010 5:58 PM

    Hi,
    Your best bet is to use a workbook template or else Excel to pdf option...Thanks

  • How to print page numbers in adobe form

    Hi,
    Can anybody tell me how to print page numbers in adobe form.
    Thanks in advance
    Chaitanya

    Hi,
    Yes the field page n of m is used normally for printing page numbers. But it won't display the current page of total pages by itself. You have to set the run time property to n (current page ) and m (Total number of pages). Carefully select the # (current page ) and ## (Total number of pages). Hope this works for you.
    My requirement is to have the user control on current page. For Example:
    Example for a Invoice with 5 PO items (stands on 2 pages) :
    1st  page is the letter : no page number
    2nd page is the 1st page of the 1st copy of the invoice : we should read u201C1 / 2u201D
    3rd page is the 2nd page of the 1st copy of the invoice : we should read u201C2 / 2u201D
    4th page is the 1st page of the 2nd copy of the invoice : we should read u201C1 / 2u201D
    5th page is the 2nd page of the 2nd copy of the invoice : we should read u201C2 / 2u201D
    Presently i cam getting the current page number for page 4th as 3 / 2 and for 5th page 4 / 2. I could able to control the total number of pages from print program. But when i am printing the second copy (4th and 5th pages), I couldn't able to control the current page number. I need to initialize the Current page count (4th page ) as 1.
    I have used the follwing java scripting:
    this.rawValue = wv_pages - xfa.layout.page(this)
    where wv_pages is total no of pages calculated from print program.
    Please help me in this regard with some formcal or java scripting conditions.
    Thank You,
    Regards,
    Naresh.

  • How to print text vertically in smart forms

    hi,
    Can any one tell how to print text vertically in smartforms
    ADVANCE THANKS
    GUHAPRIYAN

    HI,
    Chk out  this thread.Maybe it proves helpful.
    Re: vertical writing in smartforms
    Regards,
    Gayathri

  • How to print a something in oracle sql developer

    Hello all
    Do you know How to print a something in oracle sql developer? i mean for example in the query we write something, (offcourse i dont mean comments)
    thank u in advance.
    best

    1003209 wrote:
    Hello all
    Do you know How to print a something in oracle sql developer? i mean for example in the query we write something, (offcourse i dont mean comments)
    thank u in advance.
    bestDBMS_OUTPUT()

  • How to print Arabic characters in Oracle BI Publisher report

    Dear Experts,
    Kindly suggest me how to print arabic characters in BI Publisher.
    Regards,
    Mohan

    see link
    https://blogs.oracle.com/BIDeveloper/entry/non-english_characters_appears

  • How to print system-time in XML?

    Hi,
       Please help me how to print system-time in XML. Like we use sy-uzeit in ABAP.
    Can we use anything in XML too..
    Thanks & Regards,
    Sai

    hi movilogo
    Please try this.
    Create hidden item P1_DATE
    Create On load process in page 1 and put this code
    begin
    :P1_DATE:=TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MM:SS');
    end;
    Open your region in Page 1 put this code in Footer area
    *&P1_DATE.*
    Refresh your page.
    you will get the output like this.
    16-SEP-2009 11:09:17
    thanks
    Mark Wyatt

  • How to print long text in scripts

    plzzzzzzzzz answer this qestion
    how to print long text in scripts

    Hi Kranthi,
    You can create Text Id and include that in your script.
    For example:
    /E TEXT
    /: INCLUDE ZTEXT OBJECT TEXT ID ST
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • How to print a report in half of the A4 page

    Hi,
    Please help me, how to print a report in the half page of the A4 size paper.
    Thanks,

    Hi
    If you are using the command MEW-PAGE PRINT ON
    then we can give this layout options
    like
    NEW-PAGE PRINT ON
    DESTINATION <printer name>
    immediately 'X'
    KEEP IN SPOOL 'X'
    LAYOUT 'X_65_132'  (OR X_65_255)
    RECEIVER SY-UNAME
    NO-DISPLAY.
    OTHERWISE WHEN YOU SELECT THE PRINTER
    IN THE PRINTER PROPERTIES/SETTINGS BASICS-> PAPER
    you will have this facility to select LANGSCAPE/PORTRAIT
    use that and print
    Reward points for useful Answers
    Regards
    Anji

Maybe you are looking for

  • Hard Disk Drive not Recognized as Startup Disk

    Hi: I am an experienced Mac user, and have been for 20+ years. But I need a little help. I recently purchased a Western Digital 'Caviar Green" SATA internal 3.5" disk drive (model number WD15EARS-00Z5B1). I installed it into my Mac Pro as I have done

  • Internal and External Reconciliations

    I am looking to find out what the differences are with Internal and External Reconciliations. I am not sure if I need to use Internal or External when doing Manual Reconciliations in banking. Thanks! Dayna

  • Can't select one image

    Howdy, I have had CS5 for over a year. I open a file of images. The first image has been hightlighted automatically and if I try to select an image that is just next to the original image or any other image then the whole page become highlighted and

  • Transferring photos via smart card

    Transferring jpeg photos from smartcard to ipad air. Some photos show on the import screen and some do not. Can anyone tell me why and how to correct this problem?

  • ASM_DISKSTRING is empty and discover discs

    Hi, SO: RHEL6 GI: 11.2.0.3 User owner: grid The parameter ASM_DISKSTRING is null string however discovers disks. SQL> select name, path from v$asm_disk; NAME                           PATH                                /dev/vg_hdisk_ora/lv_hd10