Metadata keywords

I use Bridge to append Metadata to the Keywords field. I would like the  script below to get a a total file count of the PDFs containing ONLY the keyword "correction" on selected folders & output that info to a text file.
I'm having difficulties  with mdfind & mdls. I have no knowledge on Terminal commands. Let's say I have a 4 folders with 200 pdfs each some of them have the keyword "correction"  I want the final result on the text file be:
folder 1 CORRECTS= 50  
folder 2 CORRECTS= 58 
folder 3 CORRECTS= 115  
folder 4 CORRECTS= 35
I'm just need the correct syntax code to make this work
set target_folder to choose folder with prompt "Choose target folders" with multiple selections allowed without invisibles
set results to ""
repeat with i from 1 to (count target_folder)
  set thisFolder to (POSIX path of item i of target_folder)
  --->>>> THIS iS THE PART I NEED HELP WITH -----<<<<
  set fileCount to paragraphs of (do shell script "mdfind '  kMDItemKeywords == correction' -count") & quoted form of thisFolder
¬--& " -type f  -iname *.pdf | wc -l"
  set results to (results & "" & tab & "CORRECTS=" & tab & fileCount & return)
  --->>>> THIS iS THE PART I NEED HELP WITH -----<<<<
end repeat
set theFilePath to (path to desktop folder as string) & "PDF correction count.txt"
set theFile to open for access file theFilePath with write permission
try
  set eof of theFile to 0
  --write results to file theFilePath
  write results to theFile
  close access theFile
on error
  close access theFile
end try

I have three PDF documents on my Desktop that each have a correction keyword in them. The following syntax will restrict the mdfind to looking only in that Desktop folder, and find the case-insensitive word "correction."
If you use wc -l after the mdfind, you will get a multiple left space padded text item. By using the count of paragraphs, this results in a a nice neat integer value.
set thisFolder to POSIX path of ((path to desktop) as text)
set results to ""
set fileCount to count of paragraphs of (do shell script ¬
      "mdfind -onlyin " & quoted form of thisFolder ¬
      & " -name 'kMDItemKeywords == \"correction\"cdw' *.pdf")
log fileCount
-- result: 3
set results to results & name of (info for thisFolder) & space & "CORRECTS= " & fileCount & return
-- result: Desktop CORRECTS= 3

Similar Messages

  • Want to remove the metadata/keywords panes... and it looks like I should be able to!

    But I can't, and it makes me sad. Tempt me by using the same tab motif of the palettes within Photoshop, where tabs can be torn off into new panels, and removed for the workspace, and then cruelly deny me tabbed palette functionality.
    This is the second of two observations about Bridge, both of which are focusing on the use of inappropriate UI conventions for functions within the application. Don't make a field look like it can accept typed input if it can't. Don't make a thing look like a tabbed palette if it isn't one. There are other UI conventions you can use that won't cause the confusion (but of course, the better option in both observations is to make the things in fact what they look like they are.)

    Deebs, that hides the whole pane. I want the metadata/keywords gone, but still see the favorites.
    And, as a UI designer, I want the UI to behave like the UI implies it will behave. They appear to be tabbed palettes but do not behave like tabbed palettes.
    So you may want to keep your sarcasm to yourself.

  • MetaData Keywords, - How do they work? How can I get them to sync so that my colleague can see them!

    Hello,
    I work with a couple of other people who use Adobe Bridge (CS2) on Windows XP computers. We have a extensive amount of photographs that we are trying to organise. To do this we want to add some kind of tag like say, 'People, grass....etc' so that they are searchable by this info as well as there file name. I've played with adding to the Description on the Metadata window and then applying it as well as adding keywords. Although the keywords work for me (i.e. are searchable-come up on my results), my colleague on her computer gets nothing up on the search, - we've tried all the search options, keywords, all metadata....etc. Vice-versa, she's added loads of keywords to photo's but when I search them by these keywords - I get absolutely nothing
    We are both accessing the same photo's folder on the same server. Can anyone help? It's driving us mad. We really need to get this kind of thing working! Any suggestions????? Is there some kind of syncing setup we need to do??? We don't have a manual as thats with IT. If anyone can help, or even offer links on tutorials, we would be extremely grateful
    Any assistance, greatly appreciative.

    I remember something similar months ago and did a quick search. Hope this link describes your problem, as it does offer a solution.
    http://www.adobeforums.com/webx/.3c05f313/2

  • Editing and sharing custom metadata/keywords through Adobe Drive in Adobe Bridge

    I am part of a four-person video production unit operating within a local governmental entity. We are currently using four licenses of Adobe Master Collection CS5, and are about to get access to dedicated SAN storage.
    We would like each user to have the ability to assign specific keywords to any given video clip (or remove keywords from clips) within Adobe Bridge, and have the three other users see the same results. I've noticed that Bridge alone will allow for keywords to be added or removed, but this list is specific to each user. Importing one list into other users' profiles is a start, but would no longer work, once keywords are added or taken away.
    The overview page for Adobe Drive 3 says that it, "allows users to edit and view custom metadata/properties through Adobe Drive in Adobe Bridge," but I haven't found any explanation in either the website, forums, or user's guides that delves any farther into this area. If we incorporate Adobe Drive/Bridge into our workflow, will we be able to share/sync keywords between users? Is there some other (affordable) solution that would let us do this?
    Thanks for any insight you might be able to offer.
    Chuck

    Hi,
    Thanks for sharing your case.
    The keywords you mentioned is XMP metadata, if all your digital assets are managed by ADEP CQ DAM service, you can use AD3 with built-in ADEP connector to communicate with the DAM server, then, I think it can meet your requirement, it means, the keywords can be set by one user through metadata panel in Bridge, and can be viewed by other users.
    for custom properites, it's different from XMP metadata, it refers to the properties of one asset which is managed by a Content Management service. users have to use another UI to edit/view them in Br after AD3 is installed.
    here are some requirements to use it.
    1) CMIS 1.0 compiliant server should be used to manage all your digital assets
    2) use the built-in CMIS with AD3 to connect to the server.
    if other kind of servers are used, you should develope a custom connector through AD SDK to enable custom properties feature as well as some other handler required by AD SDK
    thanks 

  • Bridge CS6 - AVCHD metadata & keywords

    Recently made the transition to AVCHD video & CS6.
    On my media drive, I have a footage folder where I dump the contents of my memory cards.  I copy over the entire AVCHD file/folder structure.
    I'd like to organize this footage in Bridge CS6 by editing metadata and applying keywords.  However, I'm unable to do either.  When trying to edit metadata, I get a "This property cannot be modified" error.  When trying to apply a keyword, I get a "The file xxx.MTS cannot store XMP metadata. No changes will occur" error.
    There has to be a way to do this...am I overlooking anything?  Or is Bridge unable to do this?

    Any other ideas?
    I'm afraid it is not possible because AVCHD doesn't seem to be supported in Bridge. Their are many file formats used in the world, some very easy to add to the support list but some very difficult or even impossible due to different reasons. Placing a Feature Request for supporting file formats you are missing should be the first thing to do.
    Here are the Google search criteria I used:
    "avchd .mts adobe bridge"
    And there are a lot of posts about it.
    check this one also:
    http://forums.adobe.com/thread/778555
    Maybe a solution would be converting them to an other format?
    http://www.avchdconverter.org/

  • Can't change metadata, keywords, colors

    In Bridge of CS3.  I have tried purging cache, resetting to default workspace, and automatically exporting cache to folder when possible.
    The problem cropped up recently.  I was able to add date, location etc to thousands of recent files, but now I am finding files all over that can't be updated thus.  There seems no pattern, I was adding colors to a lot in a folder and then many would not accept it.  The same files would accept a rating.  I couldn't change the description on a whole batch that was misnamed, nor could I delete the old one.
    some other strange behavior.  All added metadata disappeared from some.  And on some RAW files with added dates,that is lost in a created tiff.
    Some tiffs have the modified date instead of the original created date in the info under the thumbnail, which is set for file name, created date and size.
    I have gone to folder properties and changed from read only if set. but it doesn't affect all files in a folder
    the message is "There was an error writin metadata to [file name here]"
    Sometimes the RAW file is unchangeable but its tiff is, other times neither.
    This is all from the IPTC core.  If I go into file info in Photoshop I can change, I just discovered.

    As with almost all my problems, there is apparently no solution, so I am going to try reinstalling photoshop. So can someone at least tell me what is likely to be overwritten so that I can protect it.  And where they are stored? EG Web Gallery templates?  Keywords?

  • Metadata, Keywords, Ratings, In/Out Markers for MOVs do not Travel Outside of LR4

    Consistency in the handling and displaying of metadata (along with severe slowness issues) for video files across the CS line needs to be addressed. I just completed an intense seesion of keywording, metadata entry, and cataloging of MOV files in LR4. I was expecting the work to translate to all products in the CS line. To my chagrin, none of the cataloging work transfers into Bridge, OnLocation, or Premiere, we just expected that keywording and metadata entry would be consistent throughout the line.
    Back to square one on this task.... On the plus side, at least we caught this pitfall in the first week rather than at the end of a cataloging marathon. I dislike complaining...however, you should know that trusting Adobe and LR4 just cost me four days of my time/labor and several hundred dollars in (wo)man hours. Test the metadata fields (between software you intend to use for handling your files) early in the game; This is the unfortunate lesson of the day.

    Please add your opinion and vote about LR's handling of video metadata to this feedback topic:
    http://feedback.photoshop.com/photoshop_family/topics/lr4_beta_video_tagging_not_complete
    (That's the official forum for providing feedback to Adobe.)

  • CS4 Bridge Preview/MetaData/Keywords Panels out of window

    More than not, I run the Bridge app maximized to fill my screen (2560x1600).  When I came after a long break, or overnight, the window is no longer maximized. This morning it was resized to 1918x1168.  The bad part about it is the Preview, Metadata, and Keywords panels (normally on right edge of window) were off the right side of the window. They are still have check marks by them in the Window menu.  The Content window extended past the right side of the window (thumbnails were extending past the right side of the window, some thumbnails partially clipped by the window).  I must do a Window->Workspace->Reset Workspace to get them back.
    Any suggestions on how to fix this?
    WinXP SP3+, NVidia GeForce 295 (latest driver), Screen Saver: Blank, 9 minutes (display Welcome Screen), Turn off monitor after 30 minutes, HD after 1 hour.

    Hi,
    i had the same problem , and thanks to the 1st post:
    "  I must do a Window->Workspace->Reset Workspace to get them back. "
    now i have the file info panes back., at least yet

  • Can I make iPhoto metadata keywords viewable for my PC friends?

    When I export JPEGs from iPhoto 7 and burn them to a CD, they keep all the keywords I have assigned to them as long as I read the CD on a Mac, but if I give the CD to someone using a PC, all the keywords are gone. I've read somewhere that Apple doesn't use conventional IPTC metadata. Is there some magic program that will allow a PC to see my keywords? I've tried Graphic Converter, but can't seem to find the right formula of checkboxes in their GUI to make this happen. Any and all ideas welcome from everyone! Thanks.

    Joseph:
    Are you selecting the export option to include the keyword and title when you export the photos to a folder on the desktop before burning to disk?
    If you're using the Share->Burn menu option in iPhoto that's not the way to create a disk for use by PCs. Use the File->Export->File Export menu option. Set the Kind to jpeg, Quality to whatever you need, Size to whatever you need, check the checkbox to include keyword and title, File name whatever you need or give them new file names. That will give you new files with ITPC standard keyword and description and title fields filled in by iPhoto.
    The window will look like this.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Metadata, keywords and collections

    This may be a dumb question but I would like to be sure.
    Is everything that I type in the metadata trough bridge and all the keywords that I assign to a file staying with that file/photo/video/photoshop etc.
    So if I give that file to someone else, he opens it in bridge, he can also find it using that keyword...
    Can these keywords and metadata be used by other management software?
    Is it possible to share collections over LAN or internet? If we have a a lot of organized assets in one computer, everyone is using that and if one user make a collection on his computer, others can see that collection in their bridge.
    Thanks for help

    Boy a lot of questions!
    Is everything that I type in the metadata trough bridge and all the keywords that I assign to a file staying with that file/photo/video/photoshop etc.
    Keyword file is in user/app data/roaming/adobe/keywords
    Can these keywords and metadata be used by other management software?
    Keywords, and some metatdata, but not all, are imbedded on the file.  So other software,such as Windows Explorer, can read them, even if you send the photo to someone else.
    Is it possible to share collections over LAN or internet? If we have a a lot of organized assets in one computer, everyone is using that and if one user make a collection on his computer, others can see that collection in their bridge.
    Collections are like a spreadsheet with the addresses of the photos on your computer.  So they can not be shared by sending a collection to another.  When you get into a networked situation you have lost me as I don't use them.  If the other person can access the others' computer and look through thier files I guess they could.
    Hope this helps.

  • How to implement metadata keyword tags

    Can someone please advise me on how to implement meta keyword tag <meta name="keyword" content="..."> for individual community page? We have a set of keywords for each community page. I know we can just add the line above to base page layout if they are common keywords to all the community page but not sure whats the best way to add unique set of meta keyword tags to individual community page? FYI - We are using UCM for managing content for our site.

    I always did this using a property on the page object.
    1. Create a new property called "meta-keywords" and associate it to the community pages object through the global object property mapper utility.
    2. Edit your community page and add any keywords you desire.
    3. Write a custom tag for said property that takes a uuid as input (this way you can migrate and the tag remains the same.
    4. same idea works for any meta tag.
    Note: you are limited to 255 characters this way.
    Or you can probably code some kind of tag that reads from UCM as well, but i always did it the above way.
    Here is a tag example:
    public class MetaPropertyCurrentPage extends ATag {
         private OpenLogger log = OpenLogService.GetLogger(
                   OpenLogService.GetComponent(PTDebugHelpers.COMPONENT_PORTAL_COMMON),
                   "customizations.tag.standard.MetaPropertyCurrentPage");
         public static final RequiredTagAttribute UUID;
         public static final ITagMetaData TAG;
         static {
              TAG = new TagMetaData("currpageproperty",
                        "Displays the value of the property in the current page from the uuid.");
         UUID = new RequiredTagAttribute("uuid", "The UUID for the property you want to open.",
    AttributeType.STRING);
         @Override
         public ATag Create() {
              return new MetaPropertyCurrentPage();
         @Override
         public HTMLElement DisplayTag() {
              log.Info("Entering meta lookup");
              String objectid;
              String classid;
              HTMLElement result = new HTMLElementCollection();
              IEnvironment env = GetEnvironment();
              AActivitySpace owner = TaskAPIUICommon.GetEnvTypeObject(env);
              //get pageid
              int pageid = TaskAPIUICommunity.GetCurrentCommunityPageID(owner);
              //check if not a community page
              if (!TaskAPIUICommunity.IsCurrentPageCommunityPage(owner))
                   return result;
              //convert to objectid
              try
                   Object[] objectAndClassId = ((IPTMigrationManager)(((IPTSession)GetEnvironment()
                   .GetUserSession()).OpenGlobalObject(PT_GLOBALOBJECTS.PT_GLOBAL_MIGRATION_MANAGER,
                   false))).UUIDToObjectID(GetTagAttributeAsString(UUID));
                   objectid = objectAndClassId[PT_MIGRATION_OBJECT_COLS.PT_MOC_OBJECTID].toString();
                   log.Info( "found objectid" + objectid);
                   classid = objectAndClassId[PT_MIGRATION_OBJECT_COLS.PT_MOC_CLASSID].toString();
                   //check to make sure its a property
                   if (Integer.parseInt(classid) != PT_CLASSIDS.PT_PROPERTY_ID)
                        return new HTMLComment("UUID does not belong to a property");
              catch (Exception e)
                   log.Error(e, "error getting the objectid from the UUID.");
                   return null;
              //now get the property from it
              IPTSession session = (IPTSession)GetEnvironment().GetUserSession();
              IPTObjectManager objMgr = session.GetPages();
              IPTPage page = (IPTPage)objMgr.Open(pageid, false);
              log.Info("Page name: " + page.GetName());
              IPTQueryResult qresult = page.GetObjectProperties().GetSinglePropertyData(Integer.parseInt(objectid), PT_PROPIDS.PT_PROPID_PROP_VALUE);
              if (qresult.Data() != null)
                   IPTObjectManager objMgr2 = session.GetProperties();
                   IPTProperty prop = (IPTProperty)objMgr2.Open(Integer.parseInt(objectid), false);
                   String propName = prop.GetName();
                   log.Info("Property name is: " + propName);
                   String value = (String) qresult.Data()[1][0];
                   if (lang.equalsIgnoreCase(propLocale) && value != null && !value.equalsIgnoreCase(""))
                        result.AddInnerHTMLString("<meta name=\"" + propName + "\" content=\"" + value + "\" />");
              else
                   log.Info("Property Value not found.");
              return result;
         }

  • Spotlight not finding metadata keywords

    I can get spotlight to find my images with keywords on the MacHD, but not on the external drive. I formatted it with the Disk Utility as MS-DOS so I can also use it with XP. It will bring up the photos filenames. Any idea why it's noting finding the keywords? Thanks

    There is a way to do a one time (or multiple over a 20 day period) writing of keywords, comments and titles to the original files. Follow the first 9 steps of Tutorial #1 and that will get you those items written to the actual original files.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Alt Text, tooltip, metadata & keywords.

    I own a photographic stuido so our (3) sites are image driven with anywhere from 50 - 300 + images per site. I have been manualy entering Alt text and tool tips for the purpose of raising search visibility however with that many images/graphics it is way too time consuming. If there were a "fill all" option that would be great. Then I could go in and change a few words around in each image and not have to type everything over 200 times. Is that possible. Cut and paste is a step up but still tedious.

    Hi Alan,
    Please refer to the following link Alt Text on Photoshop Button
    Regards,
    Aish

  • How can I integrate metadata and keywords in Lightroom with those in Photoshop, Bridge, and Photoshop Elements? In other words, is there a way to retrieve common metadata templates from all modules? Thanks!

    Keyword and Metadata Integration throughout Adobe Modules

    Thanks! That's helpful.
    What I mean by "common metadata", is a unified, updated, most current metadata, which I could update in each program. That is without overwriting the metadata, but appending new keywords to the metadata I created in the previous program.
    I use Bridge, then Lightroom and finally Photoshop. That's the regular workflow: Bridge for preliminary sorting and and adding some keywords; Lightroom for organizing and picking the best images; finally, Photoshop for processing. I got Photoshop Elements on trial. Doesn't work for my purposes.
    I need to share and update the metadata / keywords when I go from one program into another. Can't retrieve metadata I set up in Bridge into Lightroom. Same happens with Photoshop, where I can't retrieve keywords I add in Lightroom. It's tedious to write up the keywords again.
    Thanks for your efforts!

  • Can you apply keywords and metadata for only some subfolders at import?

    I thought I should make a separate thread for my second LR file import question.
    It seems that LR authors assumed that most users would download single events or projects but that isn't the case with me.  I'm just an amateur with a Canon 30D and a 4 gb CF card.  I can get hundreds of raw files on that card and many times I won't download the contents of the card to my computer until I have taken pictures at several different events.  So I may have a birthday and a campout and some landscapes in the download and the same keywords or metadata may not apply to all of them.  LR allows me to group these different events by date in different subfolders but it looks like the metadata/keywords that you can add at download apply not to individual subfolders but to the entire download, is that right?  If I've misunderstood or overlooked something how do you apply different keywords or metadata to different subfolders at download?

    As you have discovered, Lightroom applies the same keywords, metadata and any develop settings to every photo during import. The workaround to break the import down into individual events by only selecting one shoot at a time in Import dialog thumbnail window. Deselect ALL of the thumbnails then use the keyboard modifiers such as Opton/Alt, Cmd/Ctrl or Shift to select the particular shoot that you want to import.

Maybe you are looking for

  • Downloading Java

    I am trying to download java 5.0 to a Windows Vista computer and I keep getting an error message that states the file failed to create a destination file. Does anyone know what that means?

  • Mega Stick 511

    I'm having a problem with my mega stick.  accidentally erased some settings from it and now I don't have any of those fun startup logos. Help!!!

  • Labview executable immediately quits on WIndows XP

     Greetings, Short description of the problem: I build an executable of my Labview 2010 (32-bit) project on my Windows 7 (64-bit) development machine and it runs fine. When I attempt to run the .exe on a different Windows 7 (32-bit) machine it runs fi

  • IPod Software Update frozen

    When I fired up iTunes, I got repeated messages that there was an update to the iPod software. I think it was the OS, and it was either 3.1.2 or 3.2.1 (it's frozen right now, can't check) and is 238.3MB. When it downloaded, it started to update my iP

  • OS X Mountain Lion will not download

    I'm trying to download OS X Mountian Lion update and it will not download on my Mac Book Pro. I've purchased it and it says it's "downloading" although in about and hour the download progress bar has not moved. I've tried restarting the computer, pau