How do I parse "dc:format" from XMP?

Clearly, I'm new to XMP/XML for Photoshop. I'm building a script to handle illustrator files differently than PS files, and would like to do this through the XMP as it seems to be more stable than simply File("blah.txt").type, and the other methods require searching the filename, which the extension is left off of it when opening Illustrator in Photoshop. Plus since it keeps the font info, I may be able to use this for even more!
What I have is:
var xmp = new XMPMeta( activeDocument.xmpMetadata.rawData); 
alert(xmp.getProperty(XMPConst.NS_XMP,"dc:format"))
This of course doesn't work. Anybody have an good XML Parse 101 tips?

Make sure you load the XMP library:
if(ExternalObject.AdobeXMPScript == undefined) {
   ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');

Similar Messages

  • How can I copy cell formatting from one range to another?

    How can I copy cell formatting from one range to another, including text fonts, colours, borders, etc., so that, for example, I can reuse a formatted reconciliation table again in different parts of a sheet?

    Hi George,
    Wayne found the Spinning Beachball of Death, and you will find it too.
    Numbers is not good at handling large datasets. Might I suggest that you group your data into smaller sets (each month, perhaps?) and save each group in a separate Numbers document. Numbers will not link between documents, but you could have a summary Table within each document. Then comes the "clunky" bit of copying all those summary tables into a master document where you do the final processing of the data.
    Regards,
    Ian.

  • How to create a p7c format from a pem or der or cer

    Hi,
    Anybody knows how to create a p7c format from a pem or der or cer.
    I have checked the URL http://edocs.bea.com/wlibc/docs70/admin/cvcerts.html and
    other sites but didn't find anything useful.
    Thanks & Regards,
    Subodh

    On Windows double click the der or cer certificate. This should open it in the
    Certificate viewer.
    Open the Details tab, click on the Copy to File button and select pkcs #7 format.
    Pavel.
    "Subodh" <[email protected]> wrote:
    >
    Hi,
    Anybody knows how to create a p7c format from a pem or der or cer.
    I have checked the URL http://edocs.bea.com/wlibc/docs70/admin/cvcerts.html
    and
    other sites but didn't find anything useful.
    Thanks & Regards,
    Subodh

  • How can I move paragraph formats from one document to a new one?

    How can I move paragraph formats from one document to a new one?

    > How can I move paragraph formats from one document to a new one?
    Have both open.
    File > Import > Formats
    Import from Document: [ nameofsource.fm ]
    [ Deselect All ]
    [*] Paragraph Formats
    [ Import ]
    Now, do the existing paras in the importing document have exactly the same names?

  • How do you change the format from Windows to Mac

    Does anyone know how to change the format from Windows to Mac? When I first bought my iPod I had windows but now would like to change this. Also is anyone aware why some tracks pause for 2 seconds and then carries on.

    Restore the iPod in iTunes for Mac. Restoring will erase and reformat the iPod's hard drive, reload the software with the Mac version and put it back to default settings. Once the restore is complete follow the on screen instructions to name the iPod and automatically sync your songs and videos onto the fresh installation. Press Done and the iPod will appear in iTunes and start to sync. If you want to sync using selected playlists uncheck the box beside the sync automatically instruction and press Done, it will default to manual mode and you can choose whatever setting you like: Restoring iPod to factory settings with iTunes

  • How can we change page format from A6 to A4 in smart forms

    Hi,
    Currently smart form is printing output in A6 page.Now my customer wants in A4 page.How can we change the page format from A6 to A4.Now the output should print in A4 page instead of A6 page.
    I checked the page format in form attribtes it is DINA4.Do in need to change the page format here.
    Is there any settings for this.Plase advice.I appriciate your guidence in this regard.Thanks in advance

    Hi Vijay,
       As the form is formated to A4, now the one A4 sheet and take a print out as well take a print with A6 sheet check the difference.  If the data is not printed in right way then u need to do alignment.
    If it's printing in the same as it used to be, then check the settings in SPAD. 
    Br,
    Laxmi.Suryadevara

  • How to print in landscape format from SmartForms

    I already choose a landscape page format in my output option. But when it printed out from the Zebra Xiii 110 printer, it is still in portrait format. Did I miss anything?

    Hi Barry,
    I am not printing to Front End computer (Option F). Instead, I am using Option U, Printing using Berkerly Protocol to a remote computer. In this case, how would the print format such as print orientation can be set?
    Please let me know ASAP. Urgent.
    Thanks

  • How can I parse text color from PSD

    Hi all, I am writing a parser of PSD in Java, but I just can't find the color of each character; I thought they were in Additional Layer Information of Layer and Mask Information Section. I have a text layer with a string, and each character has different color.
    Please help. thanks.

    Modifying the properties of a control in a subVI do not modify the properties of a different control in the main VI. The data is the only thing passed back from the subVI. To modify the properties of the table in the main, you need to pass a reference to it to the subVI and modify it's properties. I've attached a modified llb that does what you want.
    Attachments:
    Main_color_Table_mod.llb ‏41 KB

  • How can i parse the number from the string each time automatic ?

    I have this two lines:
    last_file = fi[fi.Length - 1].FullName;
    string lastFileNumber = last_file.Substring(86, 6);
    In last_file i have: C:\\Users\\chocolade1972\\AppData\\Local\\mws\\My Weather Station\\radar_temp_directory\\radar000142.gif
    So i counted and found that the number in this case 000124 is starting from index 86 and length 6
    But for example on my brother pc the directory is shorter the name is not chocolade1972 so the index is incorrect.
    It's not 86.
    How can i use the Substring to find the correct index every time on any pc that have a differenet directory length ?
    In this case it's working fine on my pc for any image i can get the number no problems. But i want it to work also on other pc's.

    You can use Regex to match the filename you want. 
    Like Giovhan suggested you can first get the filename like:
    string result;
    result = Path.GetFileName(fileName);// in your example result = radar000142// in my regex I assume that a file can have a number of digits between 5 to 7 digits.Regex filenameRegex = new Regex("\d{5,7}");string number = filenameRegex.Match(result).Value;// by that way you can retrieve all numbers between 5 to 7 digits regardless of filename whether contains all 6 digits// or file that may contain 5 or 7 digits // You can play with the Regex code to decrease or increase number of digits by changing the numbers

  • BOXI3.0 How to choose certain data format from selected field?

    Hello there!
    Its been a while since my last post the question.
    I have one question.
    I have this PO_ID field. Example of the data:
    1. 72998
    2. FF15376
    3. 71794R
    4. WSSC 092008/0004
    5. WC/ 092008/0290
    6. MP20080911-1187
    There are a lot of style or non fix data format inside PO_ID field.
    My question is how can I choose only PO_ID type no.1 (72998) only show in the webi?
    Filtering is one way but what about formula or variable or any other method?
    Hope the expert can help me.
    Thank you very much.
    Best regards,
    Alias

    Alias,
    If there is any other simple solution, do inform
    Of course there is more than one way to skin a cat.  Here are a couple of ways:
    =if(substr[Po_ID];1;1) inlist ("0";"1";"2";"3";"4";"5";"6";"7";"8";"9");"Number";"Not a number")
    =if(substr[PO_ID];1;1)>="0" and substr([Po_ID];1;1)<="9";"Number";"Not a number")
    Personally I have more confidence in the first example, but the second example may work reliably.  It's just that I've used the first method more often...
    Thanks,
    John

  • How to change the date format from default to mm-dd-yyyy?

    Hi,
    There is a requirement to show the current date in an error message at the attribute level. That is, if the user input a date in a text field that is earlier than today's date, then an error message must immediately pop up with today's date in the message. To achieve this we are using a token expression in the EO ( Under Validation rules) . The token expression uses adf.currentDate to get today's date.
    The problem is that the expression extracts the date in the form of yyyy-mm-dd. What expression should I use to get the current date format in mm/dd/yyyy ? Can I modify the adf.currentDate expression in some way to get the desired format?
    Thanks,
    Anand

    You could write a custom EO method to return today's date in the specific format. Then access it via the Groovy adf.object expression.

  • How can I match the format from a Sony SD Card to work with my DV Pal tapes in FCP 7.3

    Hi, I'm having a Problem editing in the files from a SD Card and mixing it with my DV Pal film in the same project.
    It all seems to be working right through to completing it in DVD Studio Pro, but on looking at the DVD after the most of the film from the card is very bad, particularly if there was movement in the Scene,  I suppose I could describe it as ghosting.  I've tried a lot of different ways around it but with only minor success, any advise would be greatly appreciated.
    Thanks,
    Brendan

    Thanks David for the reply,   When I look at the Info on the Log & Transfer window it gives a number.mpg,
    when I transfer it,  I see it as Apple ProRes 422.   I shot it in PAL & as far as I can remember,
    PAL is progressive.
    Also I shot it it in Std. mode as the other Clips I need to use were filmed IN DV CAM std.
    again thanks
    Brendan

  • How to transfer ebooks (pdf format) from MBPro to new iPad Air?

    I just activated and set up my new Ipad Air. Woudl like to get my ebooks off the MBPro andn transfer them to the Air. I am afraid if I sync,  everything from the MBP will try to transfer over. Is that the correct way to do this though? If I plug in the USB cable to the MBPro can I select the files from the laptop I want to put on the iPad Air ?  I apologize if this has been addressed already in an ancient thread.

    The best way to select the files you want to transfer to your iPad - with control - is to use Dropbox. Not only can you transfer PDFs, but also just about any other file - even ePub books. It's also free, and really easy to use.

  • How canI change the date format from mm/dd/yyyy to dd/mm/yyyy in FirefoxOS?

    I have just received and am trying out things my new Alcatel Fire E with FirefoxOS 2.0.0.0 (just updated).
    It is usual in most operating systems to be able to customize the date and time settings (amongst other things). After a few fruitless hours fiddling with the phone and checking various forums, I've come to the conclusion that this is currently not possible on my phone with this version of FirefoxOS. Or have I simply missed something?
    Achim

    ''mohd.afzal97 [[#answer-710207|said]]''
    <blockquote>
    Can u please me the method of updating phone to 2.0
    </blockquote>
    Since I don't have the old version anymore, the following might not be 100% accurate. Note that my device is in English.
    Go to the Settings app and select "Device information". You can either choose "Check now" or select "System Updates" and then "Check for Updates". If there is an update available you'll be notified. What it won't tell you is which version the new one is, at least I did not recieve that information. I thoughT I was updating to 1.4.x, not 2.0.
    You should be given the choice to either update or not. You can ignore the update if you want (like if you don't have the time, or something.
    A couple of words of warning:
    1. Make a backup of any important data first.
    2. It takes quite some time to download all the update data and this might bust your limit depending on what your service provide allows. I avoided this by doing the update whilst connected to a WLAN (also known as WiFi) which has no data restriction. This can be set in "Check for Updates > Settings".
    Hope that helps.
    Achim

  • How to remove the HTML formatting from error sources

    Does anybody have a good way to strip the HTML mark-up that often shows up in the source field of an error cluster.  I would like to log the error source to a text file, and display the error source in a text control, without the HTML mark-up.
    I'm using LabView 8.5, but I'm sure a solution for an older version of LabVIEW can be easily adapted to the latest version.
    Thanks,
    Mark Moss

    smercurio_fc,
    that is what I get on my system (Win XP Pro SP2, LV 8.0.1 and newer). If you see it different there must be something different between my and your system.
    Message Edited by waldemar.hersacher on 03-10-2008 12:45 PM
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions
    Attachments:
    HMTLinSimpleErrorHandler.png ‏11 KB

Maybe you are looking for

  • SRM 7.0 Modify POWL for shopping cart check status screen

    HI Experts, The standard settings in check status for SC in SRM 7.0 is to display the sc with item level. This causes the SC number to be repeated (for no. of items in SC) and all links open the same SC in a new window. We want to display only the he

  • How Do You Create Folders for Bookmarks on the Bookmark page?

    I would like to take some of the bookmarks I have created on the IPT and place them into some kind of folder collection. Can this be done? I'm sure it is a simple solution, but it escapes me.

  • Verizon rep told me that the tracking info doesnt matter until we get an email from fedex?

    About 4 reps said the shipped/not shipped info doesnt mean anything but if it wasnt a pre order, when it would have shiped. And to not trust it until you get an email from fedex. So everyone shouldnt worry if it says processing, you will still get it

  • Why I can't export the table-TEST?

    "exp userid=system/manager file=c:\abc.dmp tables=HELP"(one of initial tables) does work, while "exp userid=system/manager file=c:\abc.dmp tables=TEST" throw"EXP-00011: SYSTEM.TEST does not exist"(I create the table-TEST when I logon OEMC with system

  • Screen Exit for CV04N

    Is there a screen exit for CV04N? Moderator message: please perform your own research before asking. Edited by: Thomas Zloch on Nov 24, 2010 11:00 PM