Script to enumerate, and interactively modify File Properties (eg. meta-data)

Hey Script Guys:
I am analyzing SharePoint capabilities for a customer and there are some things that they need that is not there, but so far it seems it is but can't be seen.
First two things are:
'Stored Procedures' - That is a way from within a rule or workflow to interact with an interpretive host.  Right now I use REXX, which has the INTERPRET function.  I can write a script into a text element, send it there, and get the results.  Handy,
but rough.  This is especially handy in validation situations, or re-mapping of data.
A way for metadata to be plugged into a file easily without using the Properties dialog (like read it from document fields, etc) so the Content Routing can be cleaned-up to be more fully automated.
Bear in mind I grew-up on Motorola Assembler, BAL and MASM to develop  ASIC's, process controllers, operating systems and compilers, so alot of this shell programming is still a little weird.  Be nice
JgEarl (FOG) sends...

File properties in WIndows are not part of the file. Some are part of the directory entry like the LastWriteTime and ReadOnly flag.
In Windows Explorer file properties like the internal properties of an MSWord document or an Adobe PDF file can be exposed if the vendor provides a support DLL that Explorer can use to expose these. They are not normally available to any program directly. 
They are only available via the "Shell" (Explorer) or via the application that manages the document.
In SharePoint the "library" or other container manages a set or properties defined by SharePoint.  For MS documents we may be able to use "shell" methods to tattoo the SharePoint library with this information.
None of this has much of anything to do with scripting.  It is e3xternal to the scripting system and can be accessed by the product specific support DLL such as the dll installed by MSWord and Adobe.
To access these things through the shell in script we must instantiate the "Shell" object.  In SharePoint we can do this prior to loading the document or we can load documetns that Sharepointas nan installed DLL for.
At this time I am not sure as to how SP does this.  I recommend posting in the SharePoint developer forum for information on how to access and build these extensions DLLs.  I believe you can also look it up in the SharePoint SDK.
Outside of serverside code or using a custom library I do not see how you can do this.
You can, of course, always generate a file of name/value pairs describing your files.  You can also add almost anything to the SharePoint library structure or create custom types to display your custom metadata.
¯\_(ツ)_/¯

Similar Messages

  • VB Script to find the last modified file and time in a directory

    Hi,
    I am new to VB script i need a script to find the latest modifed file and last modifed time in a directory(Contains  folders and sub folders inside it). it has to go through all the folders and get the latest file and last modifed time.

    Thanks it worked for me Get-ChildItem C:\Users\sujith.reddy.komma\Desktop\Suj1\* -recurse |?{-not $_.PsIsContainer} |Sort LastWriteTime -desc | select -first 1 now in my script i have hard coded the directory i need to run this script in different
    servers from one location i will put all the different paths in one text file and ineed to pass them to this script can you help me with this?
    Essentially you are incrementally asking us to write each line for you.  I recommend freeing yourself of this misery and leraning PowerShell.  THe answers to all of your questions are learned in the first few hours of study.
    Start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    ¯\_(ツ)_/¯

  • IPhoto '09 - original and (un)modified files

    Hi there, just beginning to use this software and am confused.
    I have my original photos on my hard drive. When I import them into iPhoto, I get two additional copies - one in the iPhoto Library Originals folder, and another in the Modified folder, despite the fact I have done nothing to modify them. So, I end up with three copies. Sure, I can delete the original hard drive ones, but then I still have two copies taking up scarce disk space.
    Question is, why am I automatically getting an iPhoto Original copy and a Modified copy? Some googling tells me that if a photo has been rotated, this will be the case. But this is also happening for photos originally taken in landscape format. Does it, then, happen for any photo taken on a camera with an autorotate function?
    How can I solve this problem so that I have just one (Original) photo in my iPhoto library (original original still available elsewhere, and a modified version only being created if I actually do something to the photo subsequently in iPhoto?
    Thanks so much!

    Okay, thanks, Larry. You know before you answered I did go ahead and delete the Modified folder to see what would happen (bearing in mind I have the original originals in two other places). (Sorry for the contrariness.) I deleted it while iPhoto was open, and it was simply instantly recreated, which was a bit of a surprise. Then I closed iPhoto and deleted it, then reopened iPhoto, and no Modified folder was created.
    Everything looks good in the iPhoto library - SO FAR, of course - though a right-click does give the options for "Show File" (just points to hard disk root directory) and "Show Original File" (points to iPhoto Originals folder).
    I am going to leave it like that and see if anything happens (if it does I'll report back for others to hear). Worst comes to worst, I just delete everything, create a new Library and reimport again. I won't rely on iPhoto as my only source of originals...
    Thanks again.

  • Why does Bridge CS6 destroy my SWF files after inputting Meta Data?

    I save a swf file to my hard drive.  Then I open Bridge, select the swf file, and type some Meta Data into the panel on the right.  As soon as the data saves and the preview window refreshes, the preview renders completely white (Bridge can no longer preview it).  If I open the file in Flash, some layers and text are now missing.
    It seems that the act of writing meta-data to the swf file actually destroys portions of the file, and I have to go back to the original and re-export.
    We have reproduced this problem on both Mac & PC, on swf files of varying compression & XMP settings.  It is fairly consistent.
    Has anyone run into this and if so does anyone have any suggestions?

    Not a expert on swf files, but this article says you can not use Bridge to add metadata to SWF files.  So maybe that is why you are running into problems.  http://forums.creativecow.net/thread/190/862442

  • File Rename in Meta Data back to 2.0 functionality

    In the past I could edit the filename in the meta data panel, now when I click I get the rename dialog.
    Is there a way to support both? i.e. click the edit box and you have free format, click the icon next to the edit box and you get the dialog.

    Renaming of individual images ought to work the same way as renaming a folder in Lightroom.
    To rename a folder, right-click on the folder name in the folder panel. A box pops up already populated with the existing name. Now just click in the box and edit the name any way you want.
    However, if you right click on an IMAGE, there is no "rename" option. You can press F2 instead, but then you get the renaming dialog box populated with the name of the PREVIOUS file you edited, not the name of the current image.
    Sure, you can edit the name in the Metadata panel, but I often don't have the panel open or I have it set to show "Large Caption" instead of the filename.
    It sure seems more intuitive to me to just right-click on the image. Adobe, please add this feature.
    Alan
    [Link removed]

  • File JDBC & Strange Meta-Data

    Hello,
    I just had a new problem:-(
    I hope anybody can help me...
    I want to Insert a File via Jython and JDBC..
    But imple SQL does not work without some strage MetaDate... like..
    Select * from DDAA
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=DDAASNP$CRLOAD_FILE=...........
    how i can generate this meta-Data with odi? i could not find any odiRef-Function to do this.....
    and than there is a simular stange problem...
    even when i INSERT to this JDBC-Connection a string and the string contains a comma I get an Error...
    thanks for any help....
    greetings

    Hello,
    i use the "com.sunopsis.jdbc.driver.file.FileDriver" JDBC-Driver for an File-Datastore.
    Now i want to INSERT and SELECT same data via Jython with direct SQL-Statements.
    BUT:
    A normal SQL-Statement does not work.
    I have to appende strange Code like...
    Select * from DDAA
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=DDAASNP$CRLOAD_FILE=...........
    The JDBC-Driver seams to read the Filename and seperator... from this generated code....
    I have copied this code from the Operator, by using normal SQL-Technologie...
    The API <%=snpRef.getTargetTable("METADATA_DESC")%> generates this "strage code"... BUT2: In Jython technologie of an IKM it occours the Error:
    "Exception getTargetTable("METADATA_DESC") : Es ist keine Zieltabelle vorhanden"
    He do not find the "TargetTable".. so hier cannot generate this code...
    Just when i copie this strage code from the operator and normal SQL-Statements work, I have the problem that i gen an error, wenn I INSERT a comma!
    But I have to INSERT a comma!
    The Technologie schould be FROM FILE TO FILE.... for this Project i do not have an Database for Staging Areas...
    You see my problem?
    Thanks....

  • Unnecessary and persistent modified files

    I just imported a BUNCH of images and arbitrarily it appears that iPhoto has made modified versions of most of the images. These duplicates are the exact same it appears to the originals, and are taking up unnecessary space. I've even deleted a few of the modified, but the drop menu for some of the images still says "Revert to Original". Sometimes, after selecting that, it still maintains a modified version. WHY is this happening, and HOW can I manage this so modifieds ONLY happen when I manually edit a photo?
    Any input appreciated,
    Very Frustrated Dan P.

    Once you get the original files outside of iPhoto you can use either Seashore orXee to rotate the file. Xee will do lossless rotation.
    There is a contextual menu application, PhotoTool CM that will losslessly rotate file. However, it may not be compatible with 10.5.7. I just got a new iMac and it doesn't show up in the contextual menu. It may be just my setup and other addons that is the problem. When it works it worked very will. If you're still at 10.5.5 give it a try and see if it will work for you. If you at 10.5.7 try it anyway. It just might be my setup.
    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 versions) 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. There are versions that are compatible with iPhoto 5, 6, 7 and 8 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: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.

  • Is there an alternative to Canon CameraWindow to import photos and rename the files to include shooting date?

    I've used Canon's CameraWindow software for years to import large quantities of photos direct from my SD card, specifically because it renames the files based on date taken and nicely orgnizes them into folders.  I save those to an external HD and import them to my iphoto library.  Now after moving to Lion, CameraWindow isn't compatible because it's a PowerPC app I guess.  I can't find any update via Canon.  I don't really use any of the other EOS Utilities, I just want to be able to rename those files by dates, which is why I don't use iphoto to import and I've seen that suggested in other places.  I'm happy to abandon Canon software all together if there is an alternative out there.  Thanks for any suggestions! 

    Most professional photo management software can batch-rename files using metadata such as date, and can organize into date folders on import. I know that Adobe Lightroom and the Photo Downloader in Adobe Bridge can do this, and I think Apple Aperture and PhaseOne MediaPro can too. All of these programs are maintained for OS X compatibility better than Canon and Nikon software are.
    Have you looked at Canon's camera software page? They have Canon software that works with Lion and later, the only question is whether the software for your specific camera has been updated.

  • Script to install and enable file and printer sharing windows 7

    Hello
    I posted this question on the Microsoft Partner Windows 7 forum and the support person told me that I should post it here.
    I have a Customer that was running Novell.  We will migrate them to Active Directory.
    The question I have is.  they did remove the file and printer sharing service on their Windows 7 workstations.
    Is is possible to have a command line or a script to install and enable the file and printer sharing for Microsoft Network?
    We need this enable in order to install the SCCM client remotely
    Greetings
    Gaetan Labrecque

    How are you going to connect to the workstations?
    File and print sharing are not needed for Group Policy to work.  GP can be used to re-enable file and Print Sharing.
    You will also  need to start by joining the machines to the domain.  That will be very difficult unless all have PowerShell and are configured for WinRM.
    This can be somewhat accomplished by using VBScript remotely but will require a very sophisticated admin to set up and debug in your environment.  I recommend hiring a consultant who has experience in conversions or is a master VBScripter in a domain.
    There is no easy answer.  It is not about File Sharing.
    Here is how to add roles and features with PowerShell:
    http://technet.microsoft.com/en-us/library/hh831809.aspx
    ¯\_(ツ)_/¯

  • Why does iPhoto 11 show both modified and original photo files for items I've never modified?

    I have been looking through some recent photos and noticed that File > Reveal in Finder displays a modified and an original file for images I've never modified.  The originals are in subdirectory iphoto > Masters and the Modified files are in subdir iphoto > previews.  This appears to happen strictly with photos taken on my iphone.  Any ideas?  It's eating up a fair amount of HD space, for no reason as far as I can tell.

    #1 is patently untrue; I go in there all the time via File > Reveal in Finder so that I can grab images to pull into other applications, mail clients etc.
    Actually it is patently true - what you are doing is not supported, is not necessary and is dangerous - you should only access the photos using the supported methods
    #2 - I thought maybe that was it too but it's on images both vertical as well as horizontal.  There's even images in there that are just still frames of videos taken on iphone.
    2 - the most common cause of un-expected "modified" versions is having the autorotate feature set on your camera - this causes a rotate flag to be set so that when yu import iPhoto does that and as always keeps the original and keeps the rotated version as mopdified
    Given that you provided no information about your work flow one can only guess at common reasons
    The jpeg preview of each video is also a modified version - as to why both vertical (portrait) and horizonal (Landscape) photos would have modified versions more information would be needed - the most likely cause is that you have made changes of some sort to them
    LN

  • Change config file properties programatically

    hi, all i have created one config file and from that file i am readindg data. Now when i click on this file it shows that this file is in read only format. Now in this same config file i want to write the data but when i try to write data by using write key function it gives me some error just like please check the permission of the file.
    For this config file i canot change its permission to archive permenantly. So Is there any way to change the file permission programatically from read only archieve and again from archieve to read only.

    You can change the file permissions programmatically using LabVIEW.  This allows you to temporarily change the permission and modify the file before restoring the permissions to their original settings.
    The Set Permission is found within the Advanced File Functions of the File I/O section of the Functions Palette.
    The information below is from the Context Help.
    R
    Message Edited by JoeLabView on 09-16-2008 08:07 AM
    Attachments:
    filePermission.PNG ‏33 KB

  • Has anyone else had problems uploading modifyed files to an external server

    Hi, My website bilyz.com has been running OK on two external servers, two different hosting providers, yet neither will allow me to upload modified files.
    Since both external servers will run my site OK this narrows the problem source down to my site construction (pre 2014 update) or to Muse software.
    The external servers will accept all my html files without a hitch but stalls at various images and not always the same image.
    Now I have totally rebuilt the site by stripping out all images, resizing them and remounting them into the slider widget but it doesn't make a difference.
    The external server technicians are at a loss to explain and after research have referred me back to Adobe Muse.
    Kind regards
    Bill Watters

    Thank you Aish
    As per your suggestion I published the unchanged site to Business Catalyst as bilyzcom.businesscatalyst.com and it uploaded without a fault. Then I made an alteration to the Gallery page where I changed one image in the slider and a small typo on the Design page. Then published again but this time I selected 'options' and clicked on 'modified files only' Result: The site uploaded perfectly and the altered pages showed the recent changes.
    So can we conclude that the source of the problem isn't in the Muse software?.
    However, If this problem only occurs with the external server since the update; it also stalls when uploading all files and with modified files so could it point to the recent Muse 2014 update?
    Yesterday I have also uninstalled my most recent version then re-installed it via the Creative Cloud File manager. . My copy is 2014.0.1.30 CL 785017
    I hope this gives you something to work on.
    I look forward to your reply.

  • Used Relocate Masters to new g-drive. Lost Aperature Library and meta data

    how i crashed aperature
    1.56 aperature
    all updates current
    tiger 10.4.11
    all updates current
    Goal was to move Aperature Library from MBP to g-drive.
    what i did:
    1. "Relocate Master" to g-drive. Success. Aperature still viewed all Files with all Meta Data normally.
    2. Collapsed "Library" in Projects Panel. Did not delete Projects. Did not delete any Photos.
    3. Preferences > Image Management > set new Aperature Library on g-drive.
    4. Uploaded new photos from a Canon and viewed them successfully.
    5. Ejected g-drive correctly.
    what Aperature is not doing now:
    1. no Projects show up.
    2. no Referenced Photos show up.
    3. no Vaults show up. Note: the Vault was originally on MBP, but I foolishly did not set one up on g-drive before moving. I also have a back up Vault on a different g-drive that is, unfortunately, not up to date with all current photos before move.
    4. Aperature Library on g-drive is there but can not open any files in it. [note: item 3 above]
    5. Image files listed in g-drive but won't open in Aperature but do open in Preview or Gimp, etc.
    6. Aperature does not show any Vaults nor does it access Referenced Files.
    *Can you help ?*
    *I guess these would be the questions:*
    1. How can I get the pics from the g-drive back into an Aperature Library with all the previous Meta Data attached to each Version?
    2. How do I get the Aperature Library - I put on the g-drive - to open in Aperature?
    3. If #1 is impossible - I guess I set up a Vault on the g-drive and move what I have from the back up Vault mentioned above.
    *Thanks for any advice !!!*

    If I an not mistaken, I may have read through your pdf's quite a while ago. I am still trying to digest them and then apply them to my needs. If I had known that small projects may be faster and easier to manage than larger ones I would have done my imports quite differently. I chose to use Aperture in the first place to organize and add information to photos. I archive old photos. In particularly from 350th Fighter Group, WWII in the Mediterranean. So one "Project" of mine is =/-5000 images in the form of TIFF scans. I imported all of these into 1 project. Then I started applying metadata and keywwords like crazy. This allowed me to start to sort the photos into categories and find multiple version of the same image. I started making stacks of all the multiples. Then with smart albums and smart web sites I was able to create what might now be smaller projects. Since I gather information from others by sharing these photos on a website, You are able to see the smart websites here.
    http://web.me.com/vizcarraguitars/350thFighter_Group_Blog/350th_FG_Blog/350th_FGBlog.html
    One cool thing is that various images reside in multiple smart webs based on common keyword. But now that I have all this organization, it seems it is time to put all my originals in a similar order via Aperture.
    By the way, my files are reference files unless I make the mistake of importing them without leaving them in there original location.
    I am thinking of starting over with blue folders. But I can't seem to get my head around it.

  • Can I copy meta data from a jpg and past to a tiff. I have CS6 photoshop

    How can I copy metadata from a JPg files and paste onto tiffs.  I send JPGs to stock agent and when they select I then send Tiffs and want to avoid re typing meta data if possible.  Also some pictures have similar meta data information and can I copy that and paste into another picture?
    Please give me keystroke information if this is possible as I get confused easily.  Use photoshop for dummies language if you can.
    thanks a lot  Gail

    You can copy&paste individual fields, but not the entire data. It's a moot point, anyway. PS will retain metadata e.g. when a file is saved using Save As... to a format that supports metadata and JPG and TIFF both do. also one would simply use Bridge to edit metadata in mass with multiple images selected...#
    Mylenium

  • LR5: Export video files doesn't write meta data

    When I export video files (e.g. MP4) from LR5, no meta data is written to the files when I expect at least the year and title to be written. 
    Files like mp4, m4v and mov all have well documented meta data fields.  Why doesn't LR support this?

    LR's support for video is incomplete.  Please see and vote on this topic in the official feedback forum:
    Lightroom: LR4 Beta: Metadata applied to videos in Lightroom isn't available in other applications

Maybe you are looking for

  • OS X's Equivilant to Windows Remote Desktop?

    I just ordered my first Mac today, a 1.66Ghz Mac Mini, and I was wondering if there is anything similar to the Remote Desktop functionality built in to Windows XP Professional, where simply by knowing the IP address of my computer, I can log into it

  • My safari won't connect to sever but I have wifi connection!?

    My safari won't connect to the internet but I have a connection?? How do I fix this

  • How does one fix/edit a scanned book which is in pdf format so that it may be read aloud...

    ...by the computer? When I try to utilize the Read Out Loud feature in Adobe Reader, it says that the page is blank because it sees it as an image, not text.  Is Adobe Acrobat capable of fixing this?  Could someone please teach me how?  If not, could

  • ORA-31466: no publications found

    i am getting below error, while Subscribe to a Source Table and Columns in the Source Table SQL> begin   2  dbms_cdc_subscribe.subscribe (   3  subscription_handle => :subhandle,   4  source_schema => 'U14365',   5  source_table => 'emp',   6  column

  • Table to get the list all the RFCs

    Hi Experts, Is there any way to get the list of all the RFCs which are using a particular communication user ? Can you please let me know any sap table such that it can provide the list of all the RFCs which are using a particular communication user