Format plug-in: Setting file properties/metadata

Hello,
I am currently writing a plug-in to import a proprietary image format into Photoshop. The people who will use this plug-in believe it would be useful to have some file information displayed in the File Info dialog.
The problem I'm running into is finding the functions necessary to set these properties in the File Info dialog, as currently they are all entirely blank.
As a simple example, if I wanted to have the Document Title, Author, Description and Keywords read "Hello, world!" after I've read in an image, what functions would my plug-in have to call to set each of these text fields?
Is there a struct that my plug-in needs to modify, or a group of get/set functions to change these properties?
Any information would be extremely helpful, as documentation on the subject is very difficult to find in the SDK.
Thanks a lot!
Jack

Thanks for your help, Toby.
I've got an idea of how to configure the properties at this point. Simple properties work now, but I am still running into a bit of trouble setting complex options such as the Caption tag. I create a handle, populate it with the null-terminated string for the caption, and then I use setPropertyProc to link that handle to propCaption. The code would go something like this:
>Handle h = sPSHandle->New( captionLength );
>if( h )
>{
> Boolean locked;
> Ptr p;
>
> sPSHandle->SetLock( h, true, &p, &locked );
> // In here, use memcpy to copy a typical C string into p
> sPSHandle->SetLock( h, false, &p, &locked );
>
>sPSProperty->setPropertyProc(kPhotoshopSignature,propCaption,0,0,h);
>}
Basically when I run my plugin and open a file, the Description field is still blank, as it was before I tried to populate the fields.
Is there something wrong with my approach? Incidentally, I also encounter the same problem when I use the same property and handle suite methods that you do (FormatRecord->PropertyProcs and FormatRecord->HandleProcs instead of sPSProperty and sPSHandle respectively). From looking at other available code online, I'm assuming that there isn't a difference in behaviour. Please correct me if I'm wrong! :)

Similar Messages

  • Extracting "File Properties" metadata from Photoshop CS3

    After processing scanned images in Photoshop CS3, I am up loading them to a DAM solution that has the capability to extract embedded metadata using custom defined keys. I would like to know the syntax/structure of embedded metadata labels that display in the "File Properties" template of Bridge CS3 (e.g. File Size, Dimensions, Color Space) so that I can extract that metadata.
    Thank you!

    I have this printer and use Leopard, but I don't have this problem I am useing the 6.2 driver. There are two drivers on their website, I am using only the driver that came with the machine. I would re-install the driver. Secondly and this caught me up a bit at first. You open the CS print manager, press print and then the Epson driver emerges, there i s no direct access from CS3 to the driver. Secondly in the Epson driver there are two or three set of drop down menus, the one that permits setting the paper profile is not exactly where you expect it, just have a look through all the menus(I am not sitting in fronto of my mac right now so I am of limited help). Good luck.

  • Extracting "File Properties" metadata

    After processing scanned images in Photoshop CS3, I am uploading them to a DAM solution that has the capability to extract embedded metadata using custom defined keys. I would like to know the syntax/structure of embedded metadata labels that display in the "File Properties" template of Bridge CS3 (e.g. File Size, Dimensions, Color Space) so that I can extract that metadata.
    Thank you!

    In Preferences>Metadata there are two choices for dimensions - inches and cm, check the box for your poison.

  • How do I set file properties (win XP) ?

    Does anyone know how to set/modify a windows file properties inside Labview ? For exemple : change the author, the comment... etc.
    Thank you !
    J.K.

    Hello,
    It is not possible with advanced file I/O LabVIEW VIs.
    There is a possible workaround by using low level Windows functions in a dll.
    Perhaps the easier would be to set your properties at the top of your file.
    You will find some explanations here :
    http://forums.ni.com/ni/board/message?board.id=170&message.id=85101&requireLogin=False
    regards
    Marc L.
    NIF

  • Office File Properties - Metadata

    Hi all,
    How can I populate the actual contents of a file (word, excel,...) with metadata values? And the reverse... extract custom metadata field value from a Microsoft Office document and then use these value to populate metadata fields on the content server.
    Thanks,

    Hi,
    I think that you can populate metadata automatically with the "Content Categorizer" component.
    You can : - populate the metadata with the Word file properties
    - populate the metadata with some references that are included in the Word document.
    For the reverse side, I think you have to develop your own component...
    I hope it will help!!
    Romain.

  • Extract 'File Properties' Metadata

    I am looking for a way to extract all the information in the File Properties to a .csv. I have downloaded the Export Metadata script and it, works except I cannot include the File Properties in the Schema field. I hope there is a way to modify this script to include the File Properties.
    Eric

    Thanks
    Good Luck.
    My
    Si
    tes

  • File Properties - Metadata

    Can someone please tell me how I can get file sizes to show in millimetres and not inches in the Metadata File properties window.

    In Preferences>Metadata there are two choices for dimensions - inches and cm, check the box for your poison.

  • Author metadata separated by semi-colons truncated in file properties and "Get Info"

    I'm using Acrobat Professional 9.0 (CS3) for Mac to edit the metadata for a collection of PDFs to be made available on the web. When I enter the data, I am inputting a list of authors separated by commas, like this: Smith J, Watson C, Brown J. If I click on "Additional metadata", the data I've already entered is transposed into the various XMP fields. And the commas separating the author names are changed to semi-colons. I gather that this happens because XMP wants to separate multiple authors with semi-colons, and Acrobat wants the metadata in XMP fields to match the metadata stored for the file properties. Fine.
    However, if I save such a PDF and then use Get Info on my Mac (OSX 10.4) to look at the file properties, the list of authors is now truncated where the first semi-colon appears. The list is also truncated in Windows XP if I right-click and select properties. The list is also truncated when I look at the file properties in Preview on my Mac, or if I look at file properties using FoxIT, or using Adobe Acrobat Reader 7 or earlier. The only way a site visitor will actually be able to view the full list of authors in a file saved this way is to use Adobe Reader version 8 or later.
    I would like to preserve XMP/Dublin Core/etc metadata in the proper format in the XMP code, but would also like users of standard, popular file viewers to be able to access the full list of authors. Is there a way to do this with Acrobat 9?
    Also, once I've saved a file and the XMP metadata has been altered, Acrobat seems to permanently change the way that the authors are listed in the file properties. I cannot manually change those settings any longer without Acrobat overriding my changes and converting commas to semi-colons, or surrounding the entire list of authors in quotation marks. Is there a way to get around these Acrobat overrides and manually take control of my metadata again?
    Does Windows Vista read the authors list correctly in the file properties if it is separated by semi-colons?
    It seems to me that in an attempt to get XMP metadata working smoothly across the entire CS line, Adobe has jumped the gun somewhat and is now forcing Acrobat users to use "file properties" metadata that is really only fully compatible with Adobe products. Is there a way I can get some backwards compatibility on this?
    Thanks for any suggestions or insight anyone can provide to this vexing issue.
    Phil.

    Bridge has some pretty powerful and helpful features. However, I am unable to figure out how to access the non-XMP "file properties" fields through Bridge, and if I add metadata via Bridge, then I run into the same problem regarding the use of semi-colons to separate authors.
    If I had more time, or a larger set of files I might investigate the use of ExtendScript to import all my metadata from an Excel file (where it already exists) into the PDF file properties and XMP metadata.
    The best solution for my case though appears to be to use Acrobat 9 and to do the double-edit process for each file. I should be able to just cut-and-paste the metadata from the Excel file, and then if I save the Authors list to the end, I can simply paste it once into the XMP field (through the Advanced metadata button) and then return to the regular file properties page and paste it again in there, where Acrobat will add quotes around it.
    Lastly, if anyone else happens to find this post and is looking for similar information, I would recommend searching in the Bridge forum as well as the Acrobat forum.
    Phil.

  • Why isn't ratings information set in lightroom showing up in windows explorer file properties?

    I am using Lightroom 3.4 64 bit on Windows7 64 bit.  When I apply keywords and set a rating in lightroom, only the keywords show up in the file properties in windows explorer, and FastStone viewer.  The ratings information is not shown.  Is this a known problem, or is there a way to fix it?

    I am using Lightroom 3.4 64 bit on Windows7 64 bit. When I apply keywords and set a rating in lightroom, only the keywords show up in the file properties in windows explorer, and FastStone viewer. The ratings information is not shown.
    Hmm, are you remembering to do Metadata > Save Metadata To File after you change the rating in LR?
    LR and Windows 7, Vista, and even XP (if you install Windows Live Photo Gallery) share metadata using industry-standard fields, and Windows' manipulation of the metadata is pretty robust.  In particular, they'll share the rating via the metadata field XMP:Rating.  I just verified this with LR 3.4 and Windows 7, but I'm pretty sure it also applies to earlier versions of LR 3:
    1. In LR 3.4, change the rating of an image.
    2. Metadata > Save Metadata To File
    3. In Windows Explorer, right-click the image file and select Properties.
    4. Observe the new rating on the Details tab.
    5. Change the rating on the Details tab.
    6. In LR, do Metadata > Read Metadata From File.  Observe the new rating in LR.

  • Is it possible through labview to set and read window¿s based file properties​?

    Any file in XP operating system has file properties associated with it, such as, size, location, when the file was created, modified and last accessed. I know that Labview has the ability to access the size and modified property. Other file types such as image format types jpg, bmp and tif have additional associated properties such as: title, subject, author, and comments. Is it possible through labview to read and set these properties programmatically?

    Hpopenoe wrote:
    > Any file in XP operating system has file properties associated with
    > it, such as, size, location, when the file was created, modified and
    > last accessed. I know that Labview has the ability to access the size
    > and modified property. Other file types such as image format types
    > jpg, bmp and tif have additional associated properties such as: title,
    > subject, author, and comments. Is it possible through labview to read
    > and set these properties programmatically?
    Well, you can most probably do that by calling Windows API functions.
    Note however that the properties you mention are not generic Windows
    file properties but file specific internal attributes. Explorer does at
    least in XP handle some of those properties and shows them to the user
    but does so with internal file type handlers to extract the properties
    from the file.
    I'm not sure those file type handlers are actually available for other
    applications than Explorer without quite some work. If they are
    available they are certainly not part of the standard Win32 API but most
    probably part of the Windows shell component and I would guess not just
    through normal API function calls, but through the shell namespace
    enumeration, which is built on COM interfaces, something you only can
    call from standard programming languages, most of them are done in C++
    (and if you are a little more persistant in standard C).
    So you are likely to need to either write your own DLL doing the nitty
    gritty work of calling the shell interface and using that DLL in LabVIEW
    or find an Active X component which does the work for you. No doubt
    there is such an Active X component somewhere but how good and expensive
    is always a big question.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to Open Multiple Files into One Image with a Format Plug-in?

    Basic overview question:
    I'm interested in creating a format plug-in that will open multiple image files and combine them, then provide one image to Photoshop for further work.
    1.  Can an .8bi plug-in receive notification of multiple files to be opened?  (Not unlike Camera Raw).  Or does one absolutely need to use an .8ba Import plug-in to do this?  I would prefer .8bi.
    2.  Assuming yes, could the latter parts of the plug-in interface be used to open just one combined image?
    Thanks!
    -Noel

    1) An import plugin (8bi) doesn't get file information - it has to provide it's own open dialog.  Only a file format plugin gets a file, but only one at a time.  (ACR has some special magic)
    You might want to take a look at the PhotoMerge and MergeToHDR setups with a script driving a plugin.

  • Editing metadata in the file properties window

    Hi,
    I’m using Win XP SP3 on a “normal” Desktop-PC. Since my problem is not connected to hardware I think that description is enough but I do not know which software information is required. So you may ask. Important is maybe that I am running Adobe Acrobat and Reader simultaneously on the same machine.
    The problem: I always changed and edited some of the metadata of my PDF files by bringing up the file properties window of the PDF (right click - properties). Next to the “General”-Tab is the “PDF”-Tab. You can see the title, author, topic, dates and PDF-Version of the document. The first four fields where always editable textboxes. I get used to put in some comments and other important information because I didn’t want to use any tool. Now the complete window is locked. Is this because of the new 9.3.3 Reader update? I updated so many times and never anything like this happened. How can I turn back to the old behavior?
    I do not want to edit those information in Acrobat by choosing File and then propertis because it takes much more time because i have to open the file (if it is one its fine) but if there are more where the same info shall be in I'd like to use the built in function of the properties sheet in windows.
    With kind regards
    DragJo

    At first I asked that question by mistake in the wrong forum so I put in it here. But it has been answered there http://forums.adobe.com/message/2973589
    so I mark this as answered, too.

  • Editing metadata in the file properties

    Hi,
    I’m using Win XP SP3 on a “normal” Desktop-PC. Since my problem is not connected to hardware I think that description is enough but I do not know which software information is required. So you may ask.
    The problem: I always changed and edited some of the metadata of my PDF files by bringing up the file properties window of the PDF (right click - properties). Next to the “General”-Tab is the “PDF”-Tab. You can see the title, author, topic, dates and PDF-Version of the document. The first four fields where always editable textboxes. I get used to put in some comments and other important information because I didn’t want to use any tool. Now the complete window is locked. So my question is why did this happen? Shall this be a Feature of the new 9.3.3 update? If yes I just can say it isn’t. And my question would then be: How I can turn back to the old behavior?
    With kind regards
    DragJo

    Thanks,
    I just ran the Acrobat repair installation and I got the expected function back. In addition it does not matter any longer which icon I click (reader or acrobat) to open Acrobat. The reason for having both installed is just that I needed a "pdf viewer" from the first minute after having installed the OS and installing Acrobat needs much more configuration in my case then just the "tiny" Reader equivalent. The best thing: I did not realize any other problem.
    Kind regards,
    DragJo

  • Set a file properties to hidden

    how to set a file properties to "hidden" in windows??
    is there anyway of doing that?? help

    how to set a file properties to "hidden" in windows?In WindowsExplorer right click on the icon representing the file and choose "Properties". In the "General" tab and click the "Hidden" check box in the "Attributes" section near the bottom of the dialog box.
    The File class doesn't offer a setHidden() to match isHidden(), so I would guess that this isn't possible in Java without resorting to Runtime.exec() or similar to set the attribute with a command. Windows has an attrib command that does this.
    attrib +h foo.txtEdited by: pbrockway2 on Jan 2, 2008 6:56 PM
    Too slow!

  • [svn] 1657: Rebuilt our modified Batik and Velocity JARs after setting the file properties correctly on modules /thirdparty.

    Revision: 1657
    Author: [email protected]
    Date: 2008-05-09 17:37:18 -0700 (Fri, 09 May 2008)
    Log Message:
    Rebuilt our modified Batik and Velocity JARs after setting the file properties correctly on modules/thirdparty.
    Modified Paths:
    flex/sdk/trunk/lib/batik-all-flex.jar
    flex/sdk/trunk/lib/velocity-dep-1.4-flex.jar

    Hi DST
    This is a great effort and gesture. thank you on behalf of all the newbies.
    PJ

Maybe you are looking for