Deleting condition formats but saving the contents

Hello all,
I hope someone from Adobe is monitoring this list, as there is lots of stuff that requires either more work on the ExtendScript coding or on the documentation.
I have almost finalized my conversion from unstructured FrameMaker documents with lots of conditional texts to structured FrameMaker, in which attributes take over the role of the conditions. I now want to delete the condition formats but keep the contents. This is possible via the menu: when I delete a condition format, I get a dialog that allows me to keep the content as unconditional text instead of throwing it out. Guess what ? The Delete() method for a CondFmt object does not take any arguments, and the default method is throwing out the content.
I can do a TextSelection on everything in the document and apply unconditional formatting to it, but that does not include the text in tables. And it is a hassle, as there should really be a way to tell the Delete() method for CondFmt what to do with the content. The options in the dialog should be available via ExtendScript somehow.
Thanks in advance for a quick reply. My deadline is approaching quickly !
Jang

This problem has been driving me crazy for weeks, and I'm pleased to finally declare victory.
The main snarl I ran into was the propVal.osval, which uses an (undocumented) array data type named Objects to hold the CondFmt objects, and it has no constructor, so it's not easy to reset. You can reset the isval all day long without effect, and building your TextPropVal from scratch has a nasty habit of crashing Frame. It's late here, so please excuse the uncommented code, but the following will make all text in your main flow unconditional, allowing you to delete your CondFmts without deleting the text.
var findProps, foundRange, foundCond;
var doc = app.ActiveDoc;
var firstPgf = doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
var docStart = new TextLoc(firstPgf,0);
var currCondFmt = doc.FirstCondFmtInDoc;
var findProps = AllocatePropVals(1);
          findProps[0].propIdent.num = Constants.FS_FindCondTextInCondTags;
          findProps[0].propVal.valType = Constants.FT_Strings;
          findProps[0].propVal.ssval[0]= currCondFmt.Name;
while (currCondFmt.ObjectValid()){
          foundRange = doc.Find (docStart, findProps);
                    while (foundRange.beg.obj.ObjectValid())
                    foundCond = doc.GetTextPropVal (foundRange.beg, Constants.FP_InCond);
                    foundCond.propVal.isval = new Ints();
                    while(foundCond.propVal.osval.length>0)
                                        foundCond.propVal.osval.pop();
                    doc.SetTextPropVal (foundRange, foundCond);
                    foundRange = doc.Find (docStart, findProps);
          currCondFmt = currCondFmt.NextCondFmtInDoc;
          findProps[0].propVal.ssval[0]= currCondFmt.Name;

Similar Messages

  • Deleted photo stream but saved the photos in a new album

    hi i deleted my photo stream but saved the photos in a new album in my ipod touch but when i deleted it the photos are cannot be found! are there any chance to get those photos recovered? really need help with this. thanks!

    No. Since when you create photo albums by using photos from PhotoStream the album only is a pointer to the photo ub PhotoStream
    How do I delete photos from My Photo Stream?
    You can delete photos from your photo stream the same way you delete other photos from your iOS device or Mac. Just select the photos you want to remove, then tap the trash icon or click Delete. On your PC, select the photos you want to remove from your photo stream, right-click, then select delete. When you delete a photo from My Photo Stream on one device, it will be removed from the Photos tab and your albums and iCloud. Photos imported from My Photo Stream to other devices won’t be deleted. Learn more about deleting photos.
    What happens to my photos if I turn off My Photo Stream?
    If you sign out of iCloud or turn off My Photo Stream on an iOS device, all the photos in the My Photo Stream album are removed from that device. Any photos from My Photo Stream that were imported to the Recently Added album and the Photos tab will also be removed. The photos from My Photo Stream on your other devices aren't affected. Photos from My Photo Stream are saved on the iCloud server for 30 days from the date you uploaded them to My Photo Stream. If you sign in to iCloud with the same Apple ID and turn on My Photo Stream on another device, those photos will automatically download to this device.
    My Photo Stream FAQ - Apple Support

  • How do I Delete a Folder but Not the Contents?

    I imported other project into mine, but I want to keep only compositions and delete map which come with import.
    Here is picture:
    http://i.imgur.com/vKz8s.png
    How do I do it?
    Thank you,
    Jackie Chan.

    As Rick said, just shift select the comps and the solids and drag them into the project panel.  Then click the particle folder and press delete.
    If you would like to create a new folder click this button:

  • How can I import not only apps from the old iphone to the new iphone, but also the content of the apps?

    How can I import not only apps from the old iphone to the new iphone, but also the content of the apps?

    You can sync apps as you normally would, but I do not believe this copies over app specifc data (i.e. saved game status/scores).
    You can always restore your new device with a backup from your old device.

  • Index document with Oracle Text from an ECM without saving the content

    Hi,
    I have documents in a ECM (Alfresco, UCM and more) and I would like Oracle Text to index the document without saving the content. I want to save space and not have redundant information. I would use Oracle Text to search for document's identification (ID) and fetch the document from the ECM using the ID.
    Is it possible ?
    Do I have to use Secure Enterprise Search ?
    Thanks
    Simon

    I want to save space and not have redundant information.The database space or the disk space (in OS)?
    If it the database space, it is not possible to index/serach without storing the file conetents.
    using , FILE_DATASTORE you can save the file in the disk (OS) and index them.
    When you remove the file, you need to re-index it.
    I donot see any other ways.
    Do I have to use Secure Enterprise Search ?SES also uses Oracle Text as its base. It also uses FILE_DATASTORE. But the re-indexing part is automated using crawlers.

  • When converting word to PDF and reducing the size, the formatting changes how can i keep the format but reduce the size?

    When converting word to PDF and reducing the size, the formatting changes how can i keep the format but reduce the size?

    The original file is 32 MB:
    15 MB is images
    15 MB is Content stream
    2 MB is everything else
    After the PDF/A-1B save as:
    The file is 182 MB
    Almost 100% is Images
    It is an architecture portfolio with many complex images.  Is there a setting when I change to PDF/A that can limit the growth of the image files?

  • Can conditional formatting refer to the value in another cell

    Is there a way for conditional formatting refer to the value of another cell instead of entering the value in the conditional format box?

    wwjd is right. no way of doing that.
    WWJD, two wuestions:
    1) do you have the new office 2008 for mac beta (is it out?), how close is it to the new features in Office 2007 for windows, if you do?
    2) why do our pictures keep getting cut off after a day of posting. I posted a pic yesterday and its already not showing on the page the next day. Do they not load them after the question is marked as solved?
    thanks,
    Jason

  • I purchased (and have now deleted Aperture from my computer and want to use only iPhoto.  How do I delete Aperture albums but keep the pics in iPhoto?

    I purchased (and have now deleted) Aperture from my computer and want to use only iPhoto.  (Aperture was simply too much program for me.)  How do I delete Aperture albums but keep the pics in iPhoto?  Please accept my apologies in advance if this is a dumber than dumb question.  I simply want all vestiges of Aperture to go away with losing all my albums.  Any help would be appreciated!

    Aperture added  a second view to your library.
    You now have an additional section in your Source list , called events. But this section lists exactly the same events that you are seeing in the "Events" view. Don't delete anything from there, or you will delete your photos. But you can press the "Hide" button to collaps that section. But someday you may want to use this list. It makes it very easy to move photos between events.

  • How do i use conditional formatting to edit the color of other selected other cells?

    I have been playing around with the conditional formatting feature of Numbers, I have figured out how to change font and background color of the cell i am working with.
    However what i am looking to do is apply a background color formatting to another cell (i.e. F2) if conditions are met in (B2).
    the end game is this,
    I want to make a column of check boxes, and using contional formating i want adject cells to change color (I.e. the example above: if (B2) is a check box, then when unchecked the reffered Cell (F2) does nothing, but when check the color of (F2) changes)
    I can make this happen with Logic equations, the give (i.e. F2) some letter or number value, then using conditional formats i can have the color change. but this leaves that particular cell useless to me (i.e. F2) I am not free to enter or edit text in that cell. (i.e. =IF(B2=TRUE,"Paid","Due") ----> then add a conditional statement that chages color when the value is either "Paid" or "Due")
    How do i have F2 change color, when B2 is checked and still retain the ability to enter information (or potential have another formula) in F2? (The Cell is not used up by "Paid" or  "Due" it is editable just like any other cell)
    is there anyway to change cell characteristics like font, color, and background color inside a formula, because in that way i would be able build it manually
    i tried using the formula editor inside the conditional format pane, but the only infor it will allow me to retain is one partictular cell. i cannot add modifiers like "+" or "=" or anything else. what is that space used for then?
    thanks for anyones help

    MC,
    You can do what you want in Numbers. It requires an auxiliary column and it's a bit tedious to set up because conditional formatting by comparison to another cell isn't relative, so each cell has to be programmed individually with no option to Paste or Fill to other cells in a range.
    For explanation purposes, let's say your checkbox is A2, your cell to be conditionally formatted is B2, and your auxiliary cell is  C2. To have the format of B2 determined by the checkbox status in A2, you will:
    1. In C2 write: =IF(A, B, " ") The " " is any string or value that you don't expect to encounter in B normally, and using the space character means you don't have to worry about having it visible if C is in View.
    2. In B2 use Conditional Format: "Equal To" cell C2 and set your text and fill attributes to be used when the box in A is checked.
    That's it. Do that for every cell in the range.
    Jerry

  • Can I delete an "event" but not the photos? Turn album in2 an event....how?

    If I get this right, an event basically equals every unique import of photos. Yet what am I to do if I dont want an event for every import, most especially when people email me one photo that i save to iphoto, that to me isnt a event. I spent hours upon hours creating 'albums' of what have now been coined my events.....so how do i take all the contents of one album that i created in iLife '07 and turn it into an event, even if the photos could have come from various imports along the way? iLife is telling me it's impossible, but there has to be a work around.
    So basically I want to be able to delete events, but not it's photos.
    And how do I turn my previous albums from iLife '07 & that include photos from various imports to one event in iLife '08.
    Thanks,
    Chris

    Chris
    If I get this right, an event basically equals every unique import of photos. Yet what am I to do if I dont want an event for every import, most especially when people email me one photo that i save to iphoto, that to me isnt a event. I spent hours upon hours creating 'albums' of what have now been coined my events...
    Not quite. Events are NOT albums, they are an updated version of the Rolls feature in v6. As with v6, every import created a Roll, but you can move pics between Events, create and edit them and so on, just like you could with Rolls. Your albums are not affected by this activity.
    Regards
    TD

  • How to "Save for web" just the layer effect but not the content area?

    I fill the area with white, then add outter glow to the layer. Now I want to "Save for web" the outter glow effect but not the white area. I want the white area to be transparent. If I delete the white area, the layer effect goes away, if I merge the layer with another to flatten (think then I can delete the white middle while keeping the layer effect stay),  the layer effect look totally different after flatten.

    Set the fill to 0% in the layers panel (not the opacity). Then save for web as a PNG24, with transparency checked.

  • Notes displays title but not the content

    Was a Yosemite beta user. Since updating to the shipping version of Yosemite, Apple's Notes app will display the title/date of each note, but when I select a title, the content of the note does not display. These notes, synced through iCloud, display as usual on my iOS devices. Ideas?

    How many Notes are affected?
    If you do not have a great many of them, use this workaround:
    Quit Notes on your MacBook Pro.
    De-select Notes in iCloud.
    On your iOS device, edit one of the missing Notes. Make any arbitrary change; it does not matter.
    Repeat for each of the missing Notes.
    On your Mac, select Notes in iCloud again, then launch the Notes app. The missing Notes will reappear as they are downloaded from iCloud.
    If you have a great many Notes: do you have a Time Machine backup?

  • I can see my external Hard Drive on AEBS and the folders on it but not the contents of the folders

    I have a MacBook Pro running OS X 10.7.2 connected to my wireless and wired network through my AEBS.  Connected through a USB hub I have a printer and Digital Research external HDD.  When I click on the shared folder I see my HDD and can even click on it to see the folders but am unable to see the contents of any folders.  I have checked permissions on all folders when connected directly to the laptop and all seems fine.  When connected directly to the laptop I can view all files on the HDD.  I can view the contents of all the folders from my iPad when using FileBrowser but not through the MacBook.
    Does anyone have any ideas as to why the contents of the folders are not showing when accessing through AEBS?
    Help is appreciated.

    Did you map the drive? It won't show up in Explorer automatically like a jump drive or an external drive plugged directly into the PC will.
    You didn't mention the OS you're running, but what you want to do is choose "Map a network drive" and you'll see the router listed as a network device. Click on it and you should see the external drive listed. You can map it from there. 

  • HT3529 New 7.0 version update changes the way text messages are presented.  In the new version, I cannot figure out how to delete individual texts.  I can delete entire strings of messages, but I want to delete old texts, but keep the recent texts

    The new version of the software for my iPhone 4 changed the way text messages are managed. 
    I can no longer delete individual texts from a text "conversation."  I also have not figured out how to forward texts, which I was able to do in the prior version.
    Anyone know a way to edit out individual messages without losing the entire string?
    Anyone know if there is a way to forward messages?

    When you have the conversation open, if you tap & hold on a message bubble, you should get a new menu pop-up.  It should have 2 options "Copy" and "More..."  If you select the "More..." option it will then let you select one or more message bubbles and delete the selected ones by hitting the trach can icon in the lower left corner.  As for forwarding, you probably just select the "Copy" option, then paste the contents into a new message...

  • Pings work but not the content

    Hi All,
    I have a server 10.56.3.40 trying to access a page 10.56.10.11 which is the VIP address for the content delivered by 10.56.3.50, 60 and 70.
    I can ping 10.56.10.11 from 10.56.3.40 but when I access the webpage www.net.com (DNS resolves this to the VIP address 10.56.10.11), I cannot access it.
    I have the load balancer sitting in between a firewall and the server vlan203 (10.56.3.x).
    The VIP address for the contents are 10.56.10.x. The CSS has 2 interfaces (one to fw with ip 10.56.10.3 and one to server vlan 203 with ip 10.56.3.3.). I have the following config
    !************************* INTERFACE ********
    interface 1/1
    bridge vlan 999
    description "Failover link to secondary"
    interface 2/1
    bridge vlan 210
    description "Link to VIP vlan (firewall)"
    interface 2/2
    bridge vlan 203
    description "Link to dmz servers"
    !************************** CIRCUIT *********
    circuit VLAN999
    ip address 10.56.99.3 255.255.255.0
    redundancy-protocol
    circuit VLAN210
    redundancy
    ip address 10.56.10.3 255.255.255.0
    circuit VLAN203
    redundancy
    ip address 10.56.3.3 255.255.255.0
    !************************** SERVICE **************
    service 10.56.3.50-443
    ip address 10.56.3.50
    port 443
    keepalive frequency 10
    keepalive type ssl
    keepalive port 443
    active
    service 10.56.3.50-80
    ip address 10.56.3.50
    port 80
    keepalive frequency 10
    keepalive type http
    keepalive port 80
    keepalive uri "/lbcheck.asp"
    active
    service 10.56.3.60-443
    ip address 10.56.3.60
    port 443
    keepalive frequency 10
    keepalive type ssl
    keepalive port 443
    active
    service 10.56.3.60-80
    ip address 10.56.3.60
    port 80
    keepalive frequency 10
    keepalive type http
    keepalive port 80
    keepalive uri "/lbcheck.asp"
    active
    service 10.56.3.70-443
    ip address 10.56.3.70
    port 443
    keepalive frequency 10
    keepalive type ssl
    keepalive port 443
    active
    service 10.56.3.70-80
    ip address 10.56.3.70
    port 80
    keepalive frequency 10
    keepalive type http
    keepalive port 80
    keepalive uri "/lbcheck.asp"
    active
    !*************************** OWNER ****************
    content www.net.com
    add service 10.56.3.50-80
    vip address 10.56.10.11
    add service 10.56.3.60-80
    add service 10.56.3.70-80
    protocol tcp
    port 80
    active
    !**************************** ACL ***********
    acl 1
    clause 1 bypass any 10.0.0.0 255.0.0.0 destination 10.56.3.0 255.255.255.0
    clause 2 bypass any 192.168.0.0 255.255.0.0 destination 10.56.3.0 255.255.255.0
    clause 100 permit any any destination any
    apply circuit-(VLAN210)
    acl 2
    clause 10 permit tcp 10.16.3.0 255.255.255.0 destination 10.16.10.0 255.255.255.0 eq 80
    clause 20 permit tcp 10.56.3.0 255.255.255.0 destination 10.56.10.0 255.255.255.0 eq 443
    clause 30 bypass any 10.56.3.0 255.255.255.0 destination any
    clause 25 permit tcp 10.56.3.0 255.255.255.0 destination 10.56.10.0 255.255.255.0 eq 25
    apply circuit-(VLAN203)
    acl 3
    clause 1 permit any any destination any
    I do not see any asymetric routing. But not sure why port 80 traffic is not accessible from vlan203.

    classic nat issue.
    When x.x.3.40 goes to the vip, the destination address is changed to one of the servers ie: x.x.3.50.
    Now, the response from x.x.3.50 must be sent to....x.x.3.40
    They are on the same subnet, so x.x.3.50 responds directly to x.x.3.40, bypassing the CSS.
    You need to do client naton the css to nat request from the servers.
    service servicex40
    ip address 10.56.3.40
    active
    group servernat
    vip address 10.56.10.11
    add service servicex40
    active
    If more addresses need to be nated, you may want to use acl to do this.
    This has been discussed many times, so you should be able to find sample configs and documentation.
    Regards,
    Gilles.

Maybe you are looking for