Remove ALL xml

My company is changing processes away from an xml based workflow, so we have hundreds of InDesign files that need to have the xml removed. I'm writing a script that will do it automatically, but I'm having problems untagging all of the text. Most files have a structure like this:
My starting script here:
/*REMOVE TAGS*/
myDoc.xmlElements[0].xmlElements.everyItem().untag();
try{
myDoc.xmlInstructions[0].remove();
catch(e){};
myDoc.deleteUnusedTags();
var myRoot = myDoc.xmlTags[0].name;
$.writeln(myRoot);
myDoc.xmlTags.itemByName(myRoot).name = "Root";
/*END REMOVE TAGS*/
gives me this result:
I need help untagging the text leftover in the 'Root' tag so that my final result is this:
Any advice?

@T-Stevens – we already had that solved here.
See the following:
Re: "Untag Frame" menu action is invalid [CS5 Win XP]
Here the "long" version:
Hans Haesler at www.hilfdirselbst.ch once wrote the following snippet:
app.documents[0].xmlElements[0].xmlElements.everyItem().untag();
The root element might be left over now.
Gregor Fellenz did the following "hack" to get rid of it as well:
var tempRect = app.documents[0].rectangles.add();
tempRect.markup(app.documents[0].xmlElements[0]);
tempRect.remove();
Don't know, if that will work for you…
Also see the following thread in German about it:
<Root>-Tag von Rahmen entfernen - Adobe InDesign Skriptwerkstatt - HilfDirSelbst.ch - Forum
Also the alternative solution with a script menu action by Hans Haesler:
<Root>-Tag von Rahmen entfernen - Adobe InDesign Skriptwerkstatt - HilfDirSelbst.ch - Forum
Uwe

Similar Messages

  • How to reduce the version of a pdf 1.7 to 1.5 & how to remove all the embedded xml form ?

    Hi Team,
        I am using adobe acrobat x pro. I have a pdf file of version 1.7 which showing embedded xml forms. I tried to remove all the 'embedded xml form' by  using Adobe Live cycle Designer ES2.  Then i tried to reduce the version by using Adobe acrobat x pro but it's still showing that there are some 'embedded xml form' for which it's not allowing me to reduce the vesion of pdf file in Adobe Acrobat x pro and also i want reduce the version of the pdf 1.7 to 1.5. Can you please guide me the step to reduce the pdf file version and how to remove the embedded xml form from the pdf file ?

    If the PDF is the same one from the link in your post here:
    http://forums.adobe.com/thread/1174643
    That PDF being protected may have something to do with why you cannot do what you'd like to.
    Be well...

  • [svn:bz-trunk] 21260: Update the qa-frameworks. zip to remove all comments from the base xml when merging config files.

    Revision: 21260
    Revision: 21260
    Author:   [email protected]
    Date:     2011-05-16 07:46:54 -0700 (Mon, 16 May 2011)
    Log Message:
    Update the qa-frameworks.zip to remove all comments from the base xml when merging config files.
    Modified Paths:
        blazeds/trunk/qa/resources/frameworks/qa-frameworks.zip

    Try options=('!makeflags') in PKGBUILD.

  • Remove Empty XML Tags using module parameters

    Hi All,
    In my lanscape I have two PI Systems.
    My scenario is an IDOC reaches 1st PI system gets converted into an EDIFACT and then goes to the 2nd PI and from there it gets routed to the respective AS2 Party.
    I am using SOAP to pass message between the PI systems and B2B Toolkit's AS2 Adapter for the communication with AS2 party.
    The issue is when the message is getting converted from IDOC to EDIFACT there are a few feilds with occurence 1..1 and due to these fields i get an empty XML tag at the output. These empty XML tags give me an error in the B2B Toolkit's AS2 Adapter Receiver Channel
    I cannot change the occurence in the structure of the EDIFACT nor can I use an XSLT mapping to remove empty tags before the message reaches the Communication Channel.
    I want to know if there are any module parameters which i can use either in SOAP Channel or the AS2 Channel to remove the XML Tags.

    Hi Muni,
    "1..1 means, you must send some values for that fields. try to find out why these are not getting any values."
    This empty tag is expected. Before using B2B Toolkit's AS2 Adapter we used to use Seeburger's AS2 Adpater and the message used to get executed successfully with these empty tags.The issue is coming only when we are using B2B Toolkit's AS2 Adapter.
    "if you want to stop sending(the fields which are not needed in target) you can you can disable the fields in the message mapping."
    I cannot disable the feild in the mapping as some other message may use this field.
    Thanks,
    Farhaan

  • How to remove all special  characters

    Hi,
    I want to remove all (128-223)the special characters that come in the mapping from the URL
    http://www.danshort.com/ASCIImap/
    128-223 ,I mean if any characters that come in between these numbered characters I have to remove in mapping.
    please suggest.
    thank you,
    Sri

    HI Sri
    You can use the Java code as given above
    Other method can be XSLT
      <xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
                <xsl:output  method="xml" indent="yes" omit-xml-declaration="yes"/>
                <xsl:template  match="/source node">
                      <target node>
                            <xsl:value-of  select="replace(.,'sepcial character','')"/>
                      </target node>
                </xsl:template>
          </xsl:stylesheet>
    Thanks
    Gaurav

  • How can I remove all content between two tags using Find/Replace regular expressions?

    This one is driving me bonkers...  I'm relatively new to regular expressions, but I'm trying to get Dreamweaver to remove all content between two tags in an XML document.  For example, let's say I have the following XML:
    <custom>
    <![CDATA[<p>Some text</p>
    <p>Some more text</p>]]>
    </custom>
    I'd like to do a Find/Replace that produces:
    <custom>
    </custom>
    In essence, I'd like to strip all of the content between two tags.  Ideally, I'd like to know how to strip the CDATA content as well, to return the following:
    <custom>
    <![CDATA[]]>
    </custom>
    I'd much appreciate any suggestions on accomplishing this.
    Many thanks!

    Thanks much for your response.  I found David's article to be a little thin with respect to examples using quantifiers in coordination with the wildcard metacharacters; however, I was able to cobble together a working expression through trial and error using the information he presented.  For posterity, here’s the solution:
    Find:
    <custom>[\d\D]*?</custom>
    Replace:
    <custom>
    <![CDATA[]]>
    </custom>
    I believe this literally translates to:
    [] = find anything in this range/character class
    \d = find any digit character (i.e. any number)
    \D = find any non-digit character (i.e. anything except numbers)
    *? = match zero or more times, but as few times as possible (i.e. match multiple characters per instance, but only match one instance at a time, or none at all)
    I’m still not sure how to effectively utilize the . wildcard.  For example, the following expression will not find content that ends with a number:
    <custom>.*?[\D]*?</ custom >
    I'm presuming this is because numbers aren't included in the \D metacharacter; however, shouldn't numbers be picked up by the .*? expression?

  • How to remove all hyperlinks at once?

    Hi guys,
    I want to know how to remove all hyperlinks in a text at once. I know how to remove one link at a time. But it's time consuming if you paste a text with a lot of hyperlinks.
    Thanks,
    Adriano.

    Duplicate your document for safe then drag and drop the icon of the copy of the icon of this script saved as an application.
    --[SCRIPT remove links]{code}
    Enregistrer le script en tant qu'Application ou Progiciel : remove links.app
    Déposez le sur le bureau par exemple.
    Glisser-déposer l'icône d'un document Pages sur celle du script
    va éliminer tous les Hyperliens et signets prédsents dans le document.
    On peut également qlisser déposer un fichier index.xml.
    +++++++
    Save the script as an Application or an Application Bundle: remove links.app
    Store it on the desktop for instance.
    Drag and drop the icon of a Pages document on the script's icon
    to remove the Hyperlinks and Bookmarks embedded in the document.
    We may also drag & drop an index.xml file.
    Yvan KOENIG (Vallauris, FRANCE)
    16 février 2009
    enhanced 17 février 2009
    --=====
    property removeBookmarks : true
    true = remove the bookmarks
    false = don't remove the bookmarks *)
    property removeLinks : true
    true = remove the Links
    false = don't remove the Links *)
    property liste : {}
    --=====
    on open (sel)
    set theDoc to (item 1 of sel) as text
    tell application "System Events" to tell disk item theDoc
    set nn to name
    set uti to type identifier
    set isPackage to package folder
    end tell
    if nn is "index.xml" then
    my traiteIndex(theDoc)
    else if uti is not in {"com.apple.iwork.Pages.Pages", "com.apple.iwork.pages.sffpages"} then
    error "Not a Pages document !"
    else if isPackage then
    -- here the document is a package
    if theDoc ends with ":" then set theDoc to text 1 thru -2 of theDoc
    tell application "Finder"
    set the_index to (theDoc & ":index.xml")
    set indexGzAvailable to exists file (the_index & ".gz")
    set indexAvailable to exists file the_index
    end tell -- Finder
    if indexGzAvailable then
    if indexAvailable then tell application "Finder" to delete file the_index
    my expandIndex(the_index & ".gz")
    my traiteIndex(the_index)
    else
    if indexAvailable then
    my traiteIndex(the_index)
    else
    error "No Index available !"
    end if
    end if -- indexGzAvailable
    else
    -- here the document is a flat one
    tell application "Finder"
    set cont to (container of file theDoc) as text
    set name of file theDoc to (nn & ".zip")
    end tell -- Finder
    set theDocZ to cont & nn & ".zip"
    my expandDoc(theDocZ, theDoc)
    tell application "Finder"
    set name of file theDoc to (nn & "yk")
    set theDocF to cont & nn & "yk"
    set the_index to (theDocF & ":index.xml")
    set indexAvailable to exists file the_index
    end tell -- Finder
    if indexAvailable then my traiteIndex(the_index)
    end if -- nn …
    end open
    --=====
    on traiteIndex(theIndex)
    local theKey1, theKey2, theKey3, theKey4, theKey5, itm, itm1, itm2, itm2
    my nettoie()
    (* Lis le contenu du fichier Index.xml *)
    set texte to read file theIndex from 1
    if removeBookmarks then
    (* supprime les descripteurs de signets *)
    set theKey1 to "<sf:bookmark sf:name"
    set theKey2 to "</sf:bookmark>"
    if texte contains theKey1 then
    set my liste to my decoupe(texte, theKey1)
    repeat with i from 2 to count of my liste
    set itm to my decoupe(item i of my liste, theKey2)
    set itm1 to item 1 of itm
    set itm1 to text (1 + (offset of ">" in itm1)) thru -1 of itm1
    set itm2 to my recolle(items 2 thru -1 of itm, theKey2)
    set item i of my liste to (itm1 & itm2)
    end repeat -- i
    set texte to my recolle(my liste, "")
    end if
    end if -- removeBookmarks
    Here are samples of Hyperlinks in the index.xml file
    --link to bookmark
    <sf:p sf:style="paragraph-style-32">
    <sf:bookmark sf:name="page 3" sf:ranged="true" sf:page="3">
    page 3
    </sf:bookmark>
    <sf:br/>
    --link to URL
    <sf:p sf:style="paragraph-style-32">
    <sf:link href="http://discussions.apple.com/thread.jspa?threadID=1905618&amp;tstart=0" sf:style="SFWPCharacterStyle-7">
    <sf:span sf:style="SFWPCharacterStyle-7">
    Change cell color if number is different from previous cell
    </sf:span>
    </sf:link>
    <sf:br/>
    --link to an other Pages document
    <sf:p sf:style="paragraph-style-32">
    <sf:link href="pages:///Users/yvan_koenig/Documents/Sans%20titre%20-%20copie.pages#un%20 signet%20externe">
    <sf:file-alias sf:file-alias="0000000001ae000200010c4d6163696e746f7368204844000000000000000000 000000000000c45c8cef482b00000008a77c1853616e73207469747265202d20636f7069652e7061 67657300000000000000000000000000000000000000000000000000000000000000000000000000 000000360f06c5c03419000000000000000000010002000009200000000000000000000000000000 0009446f63756d656e747300001000080000c45c70cf0000001100080000c5c0260900000001000c 0008a77c0008a76f00006bdf000200414d6163696e746f73682048443a55736572733a7976616e5f 6b6f656e69673a446f63756d656e74733a53616e73207469747265202d20636f7069652e70616765 7300000e0032001800530061006e00730020007400690074007200650020002d00200063006f0070 00690065002e00700061006700650073000f001a000c004d006100630069006e0074006f00730068 0020004800440012003455736572732f7976616e5f6b6f656e69672f446f63756d656e74732f5361 6e73207469747265202d20636f7069652e7061676573001300012f00001500020012ffff0000"/>
    <sf:span sf:style="SFWPCharacterStyle-7">
    vers autre document
    </sf:span>
    </sf:link>
    <sf:br/>
    if removeLinks then
    (* supprime les descripteurs de liens *)
    set theKey1 to "<sf:link href="
    set theKey3 to "<sf:span sf:style="
    set theKey4 to "</sf:link>"
    set theKey5 to "</sf:span>"
    if texte contains theKey1 then
    set my liste to my decoupe(texte, theKey1)
    repeat with i from 2 to count of my liste
    set itm to my decoupe(item i of my liste, theKey4)
    set itm1 to item 2 of my decoupe(item 1 of itm, theKey3)
    set itm1 to text (1 + (offset of ">" in itm1)) thru -1 of itm1
    set itm1 to item 1 of my decoupe(itm1, theKey5)
    set itm2 to my recolle(items 2 thru -1 of itm, theKey4)
    set item i of my liste to (itm1 & itm2)
    end repeat -- i
    set texte to my recolle(my liste, "")
    end if -- texte contains
    This piece of code takes care of a bug in the save as Pages '08 process.
    A link to an other document is not completely disabled so the 'disabled' link remains blue.
    The link is stored this way:
    <sf:p sf:style="paragraph-style-32">
    <sf:span sf:style="SFWPCharacterStyle-7">vers autre document</sf:span>
    <sf:br/>
    when it would be:
    <sf:p sf:style="paragraph-style-32">
    vers autre document
    <sf:br/>
    if texte contains theKey3 then
    set my liste to my decoupe(texte, theKey3)
    repeat with i from 2 to count of my liste
    set itm to my decoupe(item i of my liste, theKey5)
    set itm1 to item 1 of itm
    set itm1 to text (1 + (offset of ">" in itm1)) thru -1 of itm1
    set itm2 to my recolle(items 2 thru -1 of itm, theKey5)
    set item i of my liste to (itm1 & itm2)
    end repeat -- i
    set texte to my recolle(my liste, "")
    end if -- texte contains
    end if -- removeLinks
    set lineFeed to ASCII character 10
    if texte contains (lineFeed & lineFeed) then set texte to my recolle(my decoupe(texte, lineFeed & lineFeed), lineFeed)
    if texte contains (return & return) then set texte to my recolle(my decoupe(texte, return & return), return)
    set eof of file theIndex to 0
    write texte to file theIndex
    my nettoie()
    end traiteIndex
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local t
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to ""
    return t
    end recolle
    --=====
    on nettoie()
    set liste to {}
    end nettoie
    --=====
    (* Expands the zip file z in the container d, z and d are pathnames as strings *)
    on expandDoc(z, d)
    do shell script "unzip " & quoted form of (POSIX path of (z)) & " -d " & quoted form of (POSIX path of (d))
    end expandDoc
    --=====
    on expandIndex(f)
    do shell script "gunzip " & quoted form of (POSIX path of (f))
    end expandIndex
    --=====
    on lisIndex_xml(f)
    local t
    try
    set t to ""
    set t to (read file f)
    end try
    return t
    end lisIndex_xml
    --=====
    on compactIndex(nDoc)
    local aliasNDoc
    set aliasNDoc to nDoc as alias
    write leTexte to aliasNDoc starting at 0
    do shell script "gzip " & quoted form of POSIX path of aliasNDoc
    end compactIndex
    --=====
    --[/SCRIPT](code}
    Yvan KOENIG (from FRANCE samedi 14 mars 2009 20:55:42)

  • Remove all facebook imagery from skype

    Hi, I want skype to stop harassing me to join facebook or to import my facebook friends. I do not use face book and will never use facebook. There must be a way to remove all the face book banners from the skype home page? remove any and all integration between facebook and skype? please, some one tell me how to do this. Is there a registry key or an edit to the config.xml or shared.xml ?? I am so over being told I need facebook.. I just want rid of it.. thanks
    Solved!
    Go to Solution.

    All you have to do is click "No thanks, I don't wan to connect to Facebook right now" to eliminate the larger window.    The "Import your Facebook friends" option will still remain on the Skype homepage because it's part of the page.  Short of either blocking the Skype home page or possibly using ad blocker software there is no way to remove that.  You can always set your Skype to compact mode and never open Skype home if you don't want to see that window.

  • Help: XMLTYPE need to remove all blankspaces "between nodes"

    Hello,
    In a table containing a XMLTYPE column, we've got indented XML.
    For each row in this XMLTYPE column, we would need to remove all the numerous blankspaces located in between all ">" and "<"
    Basically, we would like the XML to be without its indentation.
    Is REGEXP_REPLACE the best way to do it ?
    How can we do it ?
    Thanks for your help,
    Olivier

    Maybe XMLSERIALIZE might help
    Regards
    Etbin

  • How to remove the XML attribute value in Indesign file by javascript

    Hi all,
    How to remove the XML attribute value in Indesign file.

    Try this,
    if(elm.xmlElements[i].xmlAttributes[j].name == "aid:pstyle" || elm.xmlElements[i].xmlAttributes[j].name == "aid:cstyle")
    Vandy

  • Removing an XML Schema through Enterprise Manager

    Hi all,
    I have created an XML schema using the Enterprise Manager. But the problem is that I can't remove it. When I use the menu option to remove the XML Schema, I get the following error:
    VBO-8051: XML Schema cannot be dropped.
    ORA-31000:Resource [User].[SchemaName] is not an XDB document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 80
    ORA-06512: at line 1
    If anyone has any thoughts they would be greatly appreciated.
    Thank you,
    Mike

    What was the URL used to register the schema. Is this the same URL that was passed to delete schema. You can check the list of registered schemas with the following query
    SQL> desc user_xml_schemas
    Name Null? Type
    SCHEMA_URL VARCHAR2(700)
    LOCAL VARCHAR2(3)
    SCHEMA SYS.XMLTYPE(XMLSchema "http:
    //xmlns.oracle.com/xdb/XDBSc
    hema.xsd" Element "schema")
    INT_OBJNAME VARCHAR2(4000)
    QUAL_SCHEMA_URL VARCHAR2(2839)
    SQL> select schema_url from user_xml_schemas
    2 /
    SCHEMA_URL
    http://localhost:8080/home/SCOTT/xsd/purchaseOrder.xsd

  • [svn:fx-trunk] 8690: Remove all of haloclassic since it is not supported any longer

    Revision: 8690
    Author:   [email protected]
    Date:     2009-07-20 12:32:14 -0700 (Mon, 20 Jul 2009)
    Log Message:
    Remove all of haloclassic since it is not supported any longer
    bugs:http://bugs.adobe.com/jira/browse/SDK-20729
    qa: no
    checkintests: pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20729
    Modified Paths:
        flex/sdk/trunk/build.xml
        flex/sdk/trunk/frameworks/build.xml
    Removed Paths:
        flex/sdk/trunk/frameworks/projects/haloclassic/
        flex/sdk/trunk/frameworks/themes/HaloClassic/

    Gordon, it looks like its been a while since you made this post.  Not sure how valid it is now...   I am particularly interested in the LigatureLevel.NONE value.  It seems that it is no longer supported.
    How do I turn of ligatures in the font rendering?
    My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase.  Is there any way (even roundabout) to turn ligatures off in flash?
    Thanks,
    Om

  • Completely remove all LF from a file and output it with no LF or CRLF

    My organization receives an XML file from an outside entity and we're getting <LF> (newline) characters in the middle of some records. Is there a way to remove all <LF> characters without inserting a <CRLF> after every line?
    I tried using the following, but it puts in a <CRLF> after each line:
    Get-Content $inputfile| foreach-object {$_.replace("`n","")} | out-file $newfile -Encoding ascii
    Essentially I want to end up with an XML file that is a continuous long line with no new lines or carriage returns.
    [email protected]

    Try this:
    $content = Get-Content $inputfile| foreach-object {$_.replace("`n","")}
    $content -join(" ")| out-file $newfile -Encoding ascii
    -Robert

  • Firefox hangs on opening requiring force quit I have snow leopard mac It hangs when I try safe mode. I need to know how to remove all traces of firefox on my mac so I can reinstall. I have tried terminal as advised on firefox webpage. Please advise m

    Firefox hangs on opening requiring force quit I have snow leopard Mac It even hangs when I try safe mode. I need to know how to remove all traces of firefox on my mac so I can reinstall. I have tried terminal as advised on firefox webpage. Please advise me
    == This happened ==
    Every time Firefox opened
    == I tried to update firefox add-ons ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    Try a new profile. See [[Recovering important data from an old profile]]

  • I recently ran monolingual and removed all but the intel-64 bit architectures.  Now my iphoto will not open.  Here's the message  that I get. Process:         iPhoto [3543] Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto Identifier:

    I recently ran monolingual and removed all but the intel-64 bit architectures.  Now my iphoto (along with Idvd, garage band, imovie) will not open.  Here is the message that I get.
    Process:         iPhoto [3543]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         ??? (???)
    Build Info:      iPhotoProject-4750000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [109]
    Date/Time:       2011-06-10 21:48:59.821 -0500
    OS Version:      Mac OS X 10.6.7 (10J869)
    Report Version:  6
    Interval Since Last Report:          -4164908 sec
    Crashes Since Last Report:           8
    Per-App Crashes Since Last Report:   11
    Anonymous UUID:                      45357CCD-011B-482E-A2EA-CF42096F1321
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
      Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
      Reason: no suitable image found.  Did find:
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
    Model: iMac10,1, BootROM IM101.00CC.B00, 2 processors, Intel Core 2 Duo, 3.06 GHz, 4 GB, SMC 1.53f13
    Graphics: ATI Radeon HD 4670, ATI Radeon HD 4670, PCIe, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 2.1.14.5
    Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: Built-in Ethernet, Ethernet, en0
    Serial ATA Device: ST31000528ASQ, 931.51 GB
    Serial ATA Device: OPTIARC DVD RW AD-5680H
    USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0608, 0x24300000
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8502, 0x24400000
    USB Device: External HDD, 0x1058  (Western Digital Technologies, Inc.), 0x0901, 0x26400000
    USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0x26500000
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x04500000
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8215, 0x06110000

    Please let me know when you find a fix. I did the same thing and have tried every suggestion I can find online. The message I get is...
    Process:         iPhoto [4991]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         ??? (???)
    Build Info:      iPhotoProject-6070000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [142]
    Date/Time:       2011-06-13 23:39:38.485 +1200
    OS Version:      Mac OS X 10.6.7 (10J869)
    Report Version:  6
    Interval Since Last Report:          -1643976 sec
    Crashes Since Last Report:           35
    Per-App Crashes Since Last Report:   12
    Anonymous UUID:                      D4811036-EA8D-479D-8D9F-11E2FC8F6D4C
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
      Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
      Reason: no suitable image found.  Did find:
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
              /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow: mach-o, but wrong architecture
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
    Model: MacBookPro7,1, BootROM MBP71.0039.B0B, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.62f6
    Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.131.36.9)
    Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: Hitachi HTS545025B9SA02, 232.89 GB
    Serial ATA Device: MATSHITADVD-R   UJ-898, 3.5 GB
    USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0x26100000
    USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8507, 0x24600000
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06600000
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8213, 0x06610000
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x06500000
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x0236, 0x06300000
    I have reinstalled Mac OSX 10.6.3 and done the updates from there.
    I have reinstalled ilife 11 from disk and done the updates.
    I have deleted all the suggested files and then redone install and updates.
    I have tried just reinstalling iphoto and doing updates.
    Is there any way to get a replacement -  /Library/Frameworks/iLifeSlideshow.framework/Versions/A/iLifeSlideshow
    file with the right architecture?

Maybe you are looking for