View filed instructions (that s under the IPTC Core metadata).

Hi all

I m new to programming scripts in Photoshop... and tried everything but was not able to modify the script below. Let´s explain that this script is in the folder by default Adobe Photoshop and work to show the camera model used for the current image.

Now... the challenge... I want to change the script when you run the TI watch a field entitled Instructions (that s located in the tab the IPTC Core XMP metadata (in Photoshop > Open Image > go to the file menu > option File Info and see the IPTC Core tab > training).)

Can someone please help me to change these lines. This can make it very simple for you, but it s actually very difficult for me; This basic script is what I have and works very well to display the camera model:

try {}

var xmpString = activeDocument.xmpMetadata.rawData.toString ();

var tiffModelLength = (' < tiff: model > ') .length;

var tiffModel = xmpString.search ("< tiff: model > ');

var tiffModelEnd = xmpString.search ("< / tiff: model > '");

var tiffModelStr = xmpString.substr (tiffModel + tiffModelLength, tiffModelEnd - tiffModel - tiffModelLength);

If (tiffModelStr.length > 0) {}

Alert (tiffModelStr + locate (' $$$ '));

}

check the exif data

var exifModelStr = ";

var exifData = activeDocument.info.exif;

for (var i = 0; i < exifData.length; i ++) {}

If (exifData [i] [0] == 'Model') {}

}

}

} / / end try

{} catch (e)

/ / always wrap your script with try/catch blocks so that you do not stop production

/ / delete the comments below to see the error for debugging

/ / alert (e);

}

---
I thank very you much for any help.
Gustavo.

This is one of the functions that should give you the information of x...

#target photoshop
var xmp = activeDocument.xmpMetadata.rawData;
var Instructions = parseMetadata(xmp,"photoshop:Instructions");
alert(Instructions);
function parseMetadata(xmp, tag) {
  var re = new RegExp('<' + tag + '>(.+)');
  var m = xmp.match(re);
  if (!m) {
    re = new RegExp("<[^:]+:" + tag + ">(.+)');
    m = this.xmp.match(re);
  }
  return (m ? m[1] : '');
};

Tags: Photoshop

Similar Questions

  • How can I clear my card data that appears under the search categories cards?

    How can I remove card slots that appear under the search card categories? I have not saved favorites and I already deleted locations lately, but for some reason any previous locations appear under the different search category.

    Click on "Favorites" you show in your screen shot with zero places.

    Then, click "Recent" down to the Center.

    Then click on 'Clear' at the top left.

  • I forgot my password for the keychain, it ask me to put my password in the "login" keychain but I don't know. Following other instructions that I deleted the "login" keychain and it solves nothing. I can now connect with iCloud?

    I forgot my password for the keychain, it ask me to put my password in the "login" keychain but I don't know.

    Other instructions that I deleted the "login" keychain and it solves nothing, it keeps "restore default".

    I can't connect to my iCloud on my Macbook so have nothing here.

    I don't know the first things on MacBooks and how to sort this point please help me?

    https://support.Apple.com/kb/PH21765

  • Is it possible to print the chart of the sound waves that show under the images in the project window?

    I use iMovie 9.0.8 and that you want to print, or export the graphic sound waves that show under the thumbnail images in the project window. Is this possible? and if so, how?

    You can take a screenshot using the command, shift and 4 keys and drag the icon in the shape of cross on the area. When you release the mouse button, an image is saved to your desktop.

    QuickTime Player 10 allows to record the screen if you want to capture the movement.

  • Do you know if you can acquire data from a microcontroller that runs under the PLUS + 1 environment, using the NI 9201 platform?

    Hello world

    Do you know if you can acquire data from a microcontroller that runs under the PLUS + 1 environment, using the NI 9201 platform? I need to build a test environment in labview, but entries must be purchased from the microcontroller MC024012 Sauer-Danfoss. The problem is that this microcontroller interface provides the programming amiente MORE + 1 Sauer-Danfoss. Can you help me?

    Thank you

    Elza Figueiredo

    double post and bad advice

  • stuck with the date of the IPTC core

    I usually model when not corresponding date change is not in a real and successful. Now does not work, daTE is stuck to date and the IPTC core and I can actually change from there but I prefer to change the model

    (top icon on the right)

    I have tools/purge cache for folder and restarted B by pressing the option key.

    Also in the language of tex and accounts > region, I'm in the wrong country

    Problem is I don't like the date format of the IPTC core, I prefer the 06/06/11 to 06/11/06

    Thank you

    Problem is I don't like the date format of the IPTC core, I prefer the 06/06/11 to 06/11/06

    In my opinion, you don't get a model because that fixed information and you want to have different values.

    And if you like it or not, IPTC s a global standard and it might not be a good idea to change that because other applications or users also depend on this format.

    If you want the date format you want, you can choose to do a batch rename the parameter, for example for a series of images using the format yy-mm-dd_Filename_sequencenumber.

    If you use yyyymmdd_filename_sequencenumber your files have a sort order in the finder

  • Second Process Explorer that run under the NEST 6200; as svchost.exe that runs under the NEST 6200

    I found, when the use of Process Explorer, that a second version of the Explorer P. works too, but its icon (left) is a standard and not the true icon of the Explorer P..  This second version ran under the NEST 6200, which I believe has to do with a modem.  I have a modem on my Vista machine, but it is not used (no telephone connection).  I went into the folder where P. Explorer runs and found procexp.chm, and when I tried to open the file, Windows said it was a program.  To disable, I renamed it, and now I'm not running.  Also, I found of svchost.exe running under the NEST 6200, but with no description, co. name, path or command line.  I have known big bed (over 500 MB), using svchost.exe, from time to time.  I think having a virus.  Can someone tell me what I have and then tell me how to remove from my machine?  (Also, I've known a slow machine, usually after starts.)

    I have two versions of svchost.exe on my machine.  Tests for a virus showed neither to be a virus.  I tried to delete the version that is not in the c:\windows\system32 folder but am unable to do so.  Can someone tell me how to delete such a file, or to replace it with the correct version?

    Hello

    Thanks for posting your question in the Microsoft community!

    After the description of the question, I understand that your computer is very slow. I'll be happy to help you on this question.

    Let us try the following methods.

    Method 1: I suggest you perform the clean boot and check if the problem persists.

    How to perform a clean boot for a problem in Windows Vista, Windows 7 or Windows 8
    http://support.Microsoft.com/kb/929135

    Note: Follow how to reset the computer to start as usual after a repair by article KB929135 clean boot to reset the computer in normal mode.

    Method 2: Virus scanner online by using the Microsoft safety scanner.

    Microsoft safety scanner
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: when you perform online virus scanyou will lose some data which are affected by the virus. Microsoft is not responsible for the loss of this data.

    See also the link: Slow PC? Optimize your computer for peak performance
    http://www.Microsoft.com/athome/Setup/optimize.aspx#fBid=kmc757u4Zlo

    After trying the steps above suggested, giving us the results. If you are able to solve the problem concerning the performance or let us know additional troubleshooting results.

  • I hate hate hate the new box that opens under the search bar in the latest version (have any suggestions off the power). Is it possible to get rid of it?

    After updating firefox, now a second search bar that appears below the find toolbar regularly every time as I start typing in there. He tells me that I'm looking with google (thanks, I wondered!) and the duplicate search input field, exactly as it appears in the toolbar and gives me the opportunity to change my search parameters (which I won't do so unless there is a setting that will make this box to disappear). WTF is the point? I hate it and it's stupid constant popping up and down. I've turned off suggestions and it still appears. I only got the new version for about 10 minutes and it's already making me want to never to use the new search toolbar.

    If you want to restore the window previously used independently to manage search engines, you can enable or disable this pref to false with a middle-click on the topic: config page.

    • topic: config page: browser.search.showOneOffButtons = false

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • The drop down menu boxes that appear under the heading of Firefox do not fill. A form of box on the screen, but it is empty. Given zero no has not solved the problem.

    The file, editing, display and help tabs that were on the previous version of FireFox Menu bar top are apparently incorporated into the "FireFox" drop-down box in the latest version of the browser. I was unable to open those tabs earlier, so by the recommendation of the Support Forum, I have Firefox on my laptop. Now not only the tabs above are missing after this reset, but the drop down menu does not open in any submenus. What I see now is a box on the surrounded black screen, but sub menu selections such as save as, print, copy etc are not shown in the box. This is why the Navigator is not functional in its current state.
    Does anyone have a fix for this problem that will not delete my favorites and other content stored on Firefox? Please save me to return to Internet Explorer.
    AJJC

    Try disabling hardware acceleration in Firefox.

  • CS5, IPTC core, only author shows in the content

    Metadata > IPTC core > creator, title of the post... > apply. Only the name of the creator s in the content, (as the author) not show other items. No idea why?

    Thank you

    First of all, where I am: Bridge, I opened a folder, by clicking on the

    Metadata tab gives a grey Panel dark with the thumbnails on the left,

    What do you call the metadata tab, in my view, it is actually the metadata workspace?

    (In my opinion the metadata, workspace is very unhelpful, but that aside)

    My goal: to ensure that the person on the other end of the mail the

    legends. I realized a good part of it, but not all.

    In the preferences, all the options are checked, so basically I can "write".

    all I want, but I only need to title and author.

    Preferences for bridge metadata gives you option to check or uncheck but

    It is only to see the lines that you check are visible in the metadata

    The Group of experts. If you have the option "Hide empty fields" also checked (by default

    areas) with no info in it does not display.

    But the IPTC in the information file is to have always all the fields written in it.

    I discovered that if I write these (description and author) in Photoshop

    file\info, they appear simultaneously in the bridge in both the lighter gray

    Panel to the left, in the white with pencils AND near fields of the

    thumbnails in the dark gray Panel.

    Bridge reflects only the info you have filled, only the main window

    the metadata workspace shows very little content and you're not

    able to select what information you want to display next to the inches from where my

    qualification 'useless'...)

    However, the metadata Panel itself can be a great help for you. You can do

    a model for the IPTC / file info. This can be done in PS and bridge.

    For PS open file info and will have to fill in the fields you think that the

    same information for each file (your name address of copyright, etc.) and when finished

    Click Export.

    For bridge (where you can also open file info) you have the possibility to use

    the metadata Panel. Upper right panel is a small icon that gives you

    a fly on the menu. Here you can choose to create a template, but you can also

    Choose to add a model (when having a created model).

    This is a significant time savings that we will you add the same info you want to add

    for all of your files at once. Select the files you want to edit and choose

    Add metadata and click on the model that you want to add.

    Now need time to save files, but all the data is here!

    Have several files that require the same description/caption simply

    Select the files and editable in the IPTC core metadata fields

    article you can write this once and they are written all the selected

    files when finished.

    In addition to this Batch rename (rename the tools/batch) allow you to create a very easy

    to use the naming convention with auto adding shot sequence number date and a

    many more options.

    What is left for me to understand: if my data are incorporated in file\info, and

    to be more precise it takes file\info\save to the web because it seems that a

    a different title with the exception of web trumps file\info

    Not sure I understand, you mean the mobile tab of SFW in info file? Or the

    files after using the save for web option to create a file for the web?

    I check that the data is there, which means that I don't have to write

    nothing more, then what is the purpose of the grey over light panel with the

    small pencils?

    These fields allow you to add info custom metadata should you so wish.

    Better you should fill in as much as possible in the IPTC using the

    model.

    Leaving you with only having to add a few fields with information customized which

    changes by file/topic. Description, keywords, creation date, city, province,

    countries are fields that can be read by many applications and will also be

    used to search for files using keywords or phrases.

    What is confusing, it is, and I restate the old question, if you write

    creator of the IPTC core alongside the little pencil, which will appear next to

    the thmbnail in the grey Panel dark, if the tile is selected, of course,

    but the next question, job title will not appear even if I click on apply in the

    pencils down.

    If there is still space metadata work, forget it. If you fill

    in this field or have completed using a model and it shows in the

    metadata Panel, it is saved in there

  • I got negatives on a CD. The instructions say to "run the Photo on the CD Viewer '.» How can I do this?

    I got the negatives on a CD instead of local printing. The instructions that came with the CD says: 1) Insert the CD into your computer [what I did];

    (2) run "photo Viewer for Windows: on the CD." Use the photo viewer to see photos & save them to your computer.

    [I did not #1 because I do not know how to do "... on the CD" etc etc] [Can someone tell me how to make this you?]

    If J tips do not help, download and install IrfanView (it's free).  Start IrfanView, click file > open, navigate to your CD-ROM drive, and then select the first file.  Once the file is open, you can use the left/right arrows in the menu bar of IrfanView to come and go through your negatives.

    You will see that IrfanView is a very powerful and versatile image viewing application.  Among other things, you can display many different types of image files, conversion between types (for example, to convert a BMP to JPG file) and resize the image (useful for emailing) files.

    Although you could save the files you open and view them by clicking file > save on each of them, it is easier to save all the files at once:

    • Put the CD in the drive
    • Open my computer
    • Double-click the icon for your CD drive
    • Click Edit > select all
    • In the right pane, click "copy the selected files.
    • In the context menu, navigate to the location where you want to save the files (probably in my pictures - you will need to click on the + sign next to My Documents to see)
    • Click the copy button
  • Tool using capture to capture a Web page which continues under the view of screen

    How to capture an entire web page with tool captures if the page continues under the view of the screen?  When I pull the slider down, the screen does not scroll down.  I use Widows Vista Home Premium.  Thank you!

    Hi SSOMERFIELD,

    This is normal. You will not be able to scroll to capture a Web/window page that continues under the screen using the cutting tool.

  • How to find the media that are listed under the heading "Current project" but is no longer used in the timeline?

    Good day everyone.

    Been working on a fun project for a while now and overtime, I added the audio, images and YouTube videos in my project that later, I decided not to use in the timeline panel.  These media (for example, a specific song or image) are always loaded when I load the project and are included in the assets of the project, of course.  The reason being, I never deleted from the project.

    Now, I probably have about 30 to 40 cases.  It is time to clean house and I want to know if there is a command or a way to get the first (ss12) to highlight, gold banner somehow let me know which media, well listed and loaded, is not used in the timeline panel.

    Any chance this feature exist?

    Best.

    Love_Green_Turtles

    For your consideration... Try on a new mini test project before using it on a project of 'true '...

    Open an active project

    Click on the Options tab of Control Panel

    In the Panel Options Select display

    Select in the List View view

    In list view all files that are in the current project and the timeline will have a green dot in the used column.

    If you delete a file from the timeline, the green dot next to the involved file will disappear.

    You should be able to go through the list of assets/open project view and clear all entries that do not have a green dot next to them.

    Another safety net to consider... make a copy of the 'real' project and try the above on the copy.

    Please let us know if we have targeted your question and if the works above for you.

    Thank you.

    RTA

  • Can I make the legs more dark and under the bookmarks bar?

    I can't read the tabs, they are too light. I also want that they under the bookmarks bar. I can make these changes?

    Maybe look at the extension Classic theme restaurant to see if that can change the color of tab in a way that seems best for you.

    • You can check the settings of the extension of the CTR via the Preferences button on the page "tools > Modules > Extensions.
    • You can find additional toolbar buttons and additional toolbar settings in customize (view > toolbars > customize)

    See also:

  • Favorite of the entrances to the toolbar not appearing is not in the space provided for them under the Navigation bar.

    Using Firefox 3.6.13 and 4.0b8. Both do not display the entries in my bookmarks bar. The item exists. I have used Firefox for years and has always presented this toolbar. Confirmed that it still exists and was not inadvertently trashed by watching them a point and registration when they choose manage bookmarks. Element is selected for display in the drop-down (display-toolbars Tools-Bookmark Toolbar), the space where it would normally view my entries appears directly under the Navigation bar, but it is empty without entries displayed.

    On the view menu, select Toolbars and then customize to open the Customize dialog box toolbar. With the toolbar Customize dialog box displayed, to an icon labeled "Bookmarks toolbar items" in the bookmarks toolbar. If she is not there, just drag and drop the icon called bookmarks from the Customize dialog box toolbar on the bookmarks toolbar. There will be 2 icons called bookmarks, that you want to have an icon that looks like a sheet of paper (it does on Windows, I think it's the same thing on the Mac).

Maybe you are looking for

  • message for imap logs

    I have messages during extraction hurt from Gmail via imap with thunderbird. I get the message cannot connect to the server. How can I get more informationwhy it has problems connecting? I am able to send a message to smtp.google.com. So yes, the pas

  • MacBook Pro very slow...

    I ran out of Apple Care and I need a cleaning of... Is there a site where I can go and learn to less than the files to remove to clean my Mac Book Pro slow? Thank you Patti Painter

  • Address bar has unwanted keywords "search for" appearing

    For no apparent reason my address bar now unwanted shows in terms of 'finding '. As I type these words will appear with an icon of a magnifying glass located next to them. I want to stop and I can not find a solution. When I type in the address bar I

  • No Edge 15 Broadcom 802.11ac none hosted network management and stability problems

    I have a new edge 15 that came with Windows 10 64-bit pre-installed. I want to be able to run the soft AP WiFi so I can connect to my wifi adapter. The WiFi card is a Broadcom 802.11ac and according to other computers using Dell with the same chip, b

  • Can't play cod on bottom of my laptop

    I had to have my resetting the computer (PC World) and I can not enter my productcode as partially missing the n in my notebook - please help