The next time you start up ChemDraw there will be a 'Scripts" menu in the top menu bar and you will be able to access it from within ChemDraw. If you install the applescript in the folderĪpplications:CS ChemOffice 2008:CS ChemDraw:ChemDraw Items: You can check the metadata has been installed using the ExifTool command. ExifTool will add the metadata and also create a copy of the original PNG file at the same location. The first part of the script below simply asks the user to select the image file that you want to add chemical metaadata to, it then generates the POSIX path to the file since ExifTool requires UNIX style paths. The last part creates the shell script telling ExifTool to embed the metadata into the selected image file. The next part uses OpenBabel to generate a canonical SMILES. We then tall ChemBioDraw to get the SMILES string, with a little checking to make sure a structure is selected. Leave ChemBioDraw open with the structure in place. You also need OpenBabel and the easiest way to install is to install the ChemSpotlight plugin from hereįirst draw the structure in Chemdraw and save it as a PNG, ignore the warning that chemical information will be lost, we are going to embed it in the metadata :-). If you have installed ExifTool anywhere else you will need to install the configuration file in the appropriate place. sudo mv /Users/Chris/Desktop/ExifTool_config /usr/bin/.ExifTool_config ExifTool supports many different metadata formats including EXIF, GPS, IPTC, XMP, JFIF, GeoTIFF, ICC Profile, Photoshop IRB, FlashPix, AFCP and ID3, as well as the maker notes of many digital cameras by Canon, Casio, FLIR, FujiFilm, GE, HP, JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta, Nikon, Nintendo, Olympus/Epson, Panasonic/Leica. ExifTool_config (note the leading period!). ExifTool is a platform-independent Perl library plus a command-line application for reading, writing and editing meta information in a wide variety of files. The downloaded file needs to be installed in the same folder as exiftool which if you installed it using the binary installer will be usr/bin. # new PNG tags are added to the PNG::TextualData table: # The %Image::ExifTool::UserDefined hash defines new tags to be added This new configuration file will allow you to add metadata for SMILES, molfile and sdf to PNG files. The part of the file that adds the tags is shown below. To save you time you can just download the file here.
![exiftool for mac exiftool for mac](https://images.squarespace-cdn.com/content/v1/4f3b434c8754e3c85b69cfb7/1454303261326-ULXI6L4CAV1LNAPP9EZT/ke17ZwdGBToddI8pDm48kFT2C2n4BB5q7C0mxkK7LcIUqsxRUqqbr1mOJYKfIPR7LoDQ9mXPOjoJoqy81S2I8N_N4V1vUb5AoIIIbLZhVYxCRW4BPu10St3TBAUQYVKcMsVfHGF5jkSCYBzOv11y2OVzRPpuBHPMWX2CeKciTOEYHCSrLnWncUI5p6YelhLX/ExiftoolTut-0.jpg)
The file and full instructions can be downloaded from the ExifTool website but you need to download the source not the MacOSX binary. To allow the addition of custom tags you need to edit and install the exiftool configuration file. ExifTool is a platform-independent Perl library plus a command-line application for reading, writing and editing meta information in images. This script again relies on the excellent ExifTool by Phil Harvey (). In the previous tutorial (Applescript Tutorial 8) I showed how to use applescript to extract the information from the PNG file and then display the structure in a couple of chemical display packages in an editable form.Ī couple of people have asked for a tool to embed metadata into images and this script shows how to add SMILES string to a PNG file using ChemBioDraw. As we move to a more web-centric view of the world it is apparent that much of research information will be only available via the web, whilst images of chemical structures are usually adequate for a human viewer the chemical structure cannot be indexed and subsequently searched. Rich Apodaca has been discussing embedding molecular information in images of molecules, such as a PNG file depicting a 2D structure.
![exiftool for mac exiftool for mac](https://host.easylife.tw/files/ExifTool.png)
![exiftool for mac exiftool for mac](https://static.macupdate.com/screenshots/211756/m/photostocktool-screenshot.png)