Find and replace a table style
I have about 10 table styles in a document and I want to replace all of them with the #1 table style. Can this be done with Find and Replace?
You'll need to do this for each of the Table formats that need to be replaced.
Let's assume the desired format is "Format A" (a default FM style), and one of the formats to be changed is "Specs 2".
Click in any instance of a Specs 2 table.
In the Table Tag field, pull down and click on [Format A].
Click Commands > Global Update Options:
(*) All Properties
(*) All Tagged [Specs 2]
[Update]
If it works properly, you'll get a dialog:
OK to change all Format B tags to Format A?
[OK]
Additional global updates may be required to clean up any overrides.
Trying this on FM7 at home, it didn't always work. I don't know if newer versions are more stable. Personally, I never do it this way (probably because of prior experience), and I usually just hack the MIF.
Similar Messages
-
How to find and replace the table name/column name
We have just upgraded the application to R12. Have many reports developed in Oracle Reports Builder. There are many changes in R12 table and column names when compare with 11i. Please suggest a solution to change the table name or column name in multiple reports queries instead of doing manually.
A Google search may turn up a downloadable service manual for the Laserjet 4600.
You might also ask in the HP Enterprise Business Community Forum here.
Bob Headrick, HP Expert
I am not an employee of HP, I am a volunteer posting here on my own time.
If your problem is solved please click the "Accept as Solution" button ------------V
If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V -
Find and replace by text and style
We have a fairly large RH HTML project (300+ topics so far)
most of which have a specific heading in Heading2 style. We want to
change all of these to a style based on Heading2, but not use the
Heading2 style b/c we don't want them to show up in the TOC. I have
created a new style and can obviously open every topic and manually
select and change each one - but I'm hoping that one of your RH
gurus will tell me an easier way. Is there anything comparable to
MS Words Find/Replace that will search the whole project for a
specific word in a specific style?RoboHelp's Multi-File Find and Replace (in the Tools tab)
should be suitable for this job, and you can control each
occurrence as you choose. (Where this RH utility fails is when your
search string might sit on more than one line, which won't be the
case here.)
You'll run two replacement passes (spaces added to < &
> tags for proper viewing in this forum):
Replace < h2 > with < p class=YourNewStyle >
Replace < /h2 > with < /p >
The < h2 > and < /h2 > strings will never be
split between lines, so RH will catch every one.
BTW, Add me to the list of FAR boosters; it'll let you change
case, change file names, etc., etc., etc. Great tool!
Good luck,
Leon -
Do there is any way to redefine styles by find and replace or script
I have a some styles and i want to change same things in all styles like language, align and numbers digit and etc....,
So I ask if there is an easy way to do that except modify each style manual, like script?, I use inDesgin CS3, and CS4
Like in Find Font there is option to redefine styles but that for fonts only, So there is way to do that by find and replace ?
ThanksI'm not a "scripter" and I don't have a huge knowledge of what scripts are available, unlike some on here, but this is how I'd do it if I couldn't find what I wanted by googling.
-
Rename Layers: Find and Replace style renaming
In Illustrator, you can use the following to find and replace layer names:
var doc = app.activeDocument;
// name indexed object
var layernames = {
'Bob':'Bob Front'
// loop through all layers
for (var i = 0; i < doc.layers.length; i++)
//Set up Variable to access layer name
var currentLayer = app.activeDocument.layers[i];
if (layernames[currentLayer.name])
currentLayer.name = layernames[currentLayer.name];
In this script "Bob" will become "Bob Front". Is there something similar for Photoshop. Looking at the Photoshop scripting guide, this script should work as the active App document and layers methods exist in Photoshop.c.pfaffenbichler wrote:
What are
var layernames = {
'Bob':'Bob Front'
and
if (layernames[currentLayer.name])
supposed to do? Is that even JavaScript? …
Hi c.pfaffenbichler, yes, this is pure Javascript.
Try this little example:
var layernames = {'Bob':'Bob Behind'};
alert(layernames['Bob']);
// a variant
layernames['Bob'] = 'Bob in the middle';
alert("a variant: " + layernames['Bob']);
// another variant
layernames.Bob = 'Bob Front';
alert("another variant: " + layernames.Bob);
@big_smile,
your posted script works with photoshop (if you have only artlayers and one or more layers named with Bob)
var doc = app.activeDocument;
// name indexed object
var layernames = {'Bob':'Bob Front'};
// loop through all layers
for (var i = 0; i < doc.layers.length; i++) {
//Set up Variable to access layer name
var currentLayer = app.activeDocument.layers[i];
if (layernames[currentLayer.name]) {
currentLayer.name = layernames[currentLayer.name];
All you have to do is to loop trough all artlayers (and layersets), but here is Javascript a slowly variant. Use ActionManager code instead. You will find many examples here in forum.
Have fun -
Find and replace using wildcard
I've inserted table content using Insert/Table Objects/Insert Tabular Data in DWCS3 and want to remove unwanted code from the table insert.
Example:
<td width=156 valign=top style='width:117.0pt;border-top:none;border-left:
none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
mso-border-alt:solid windowtext .5pt;background:#FF8A50;padding:0cm 5.4pt 0cm 5.4pt'><p class=MsoNormal><span style='mso-bookmark:CurrentPosition'><span
style='font-size:10.0pt;font-family:Arial'>
The text between "width" and "Arial'" varies but these two start and end words are the same in each instance to be replaced - how can I find and replace using a regular expression wildcard? Have researched on web but not come across answer yet. I thought it might be simple and hopefully it is and I'm just having a shocker. Is it something like Find: "<td [^"]*> and Replace with: "<td>"? Am I close?
I'd appreciate anyone's help and thankyou in advance for your time.You might be able to sort this out with Commands > Clean Up Word HTML.
However, the following regular expression should also do what you're looking for (make a backup first). Put this in the Find field:
(<td)[\w\W]+?Arial\'(>)
Put this in the Replace field:
$1$2
Select "Use regular expression". -
Using applescript for Find and Replace All in Pages 2.0
i saw that Pages 2.0 is scriptable
i try to create a script for merge use to find and replace all occurence of a certain string using a script but Pages doesn't seems to respond to "Find" even using "System Events"
how can i do to use this function with a script
Thanx for any help
S.B.
ibook G3 Mac OS X (10.4.6)OK, here's another example. This one gets the text as a string and uses the offset property to find "[", presuming it to be a merge delimiter. (Pages' text doesn't support "offset of").
One failing of this scheme is that the offsets are incorrect if you have inline objects (pictures, shapes, tables, etc.). While it is probably possible to compensate for them, that's a trickier proposition.
<PRE>-- Example merge replacements:
property mergeText : {"[name]", "John Smith", "[address]", "1234 Anystreet"}
on lookup(mergeWord)
set theCount to count of mergeText
repeat with x from 1 to theCount by 2
if item x of mergeText = mergeWord then
return item (x + 1) of mergeText
end if
end repeat
-- If merge field is not found, delete it (replace it with the empty string)
return ""
end lookup
tell application "Pages"
repeat
tell body text of document 1
-- Get text as a string so that "offset of" can be used.
set allText to it as string
set startOffset to offset of "[" in allText
if (startOffset = 0) then
exit repeat
end if
set endOffset to offset of "]" in allText
select (text from character startOffset to character endOffset)
end tell
set mergeWord to contents of selection
tell me to lookup(mergeWord)
set replacement to result
set selection to replacement
if (replacement is "") then
-- Get rid of extra whitespace (space or return)
-- Do it in a "try" block to handle edge cases at start or end of text.
try
set theSel to (get selection)
set ch1 to character before theSel
set ch2 to character after theSel
if ((ch1 is " " or ch1 is return) and (ch2 is " " or ch2 is return)) then
select character after theSel
delete selection
end if
end try
end if
end repeat
end tell</PRE>
Titanium PowerBook Mac OS X (10.4.6) -
Find and Replace Issue Help Requested.
Hi all. I've been digging around for a couple of days and
can't seem to figure this one out. For starters, I have already
looked at the Regular Expression syntax and tried the MS word
clean-up option, but no luck. We have about 1,500 pages of content.
They are in DNN, so the pages are created dynamically.
Unfortunately, the page content was written in Word and then dumped
in DNN. We are trying to clean up the pages. We are grabbing the
content from Dot Net Nuke and putting it into Dreamweaver 8.0.2.
Then we are manually cleaning out things like:
<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" />
and
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"
align=left>
We are using the Find and Replace funtion in Dreamweaver to
clean out these commands, but I know from the documentation, there
is an easier way to clean these pages.
Bottom Line: Since the pages are dynamically built, I know I
have to grab the page content and put it in Dreamweaver manually
and then put it back in DNN, but I am trying to find a way (using
Regular Expressions or something) to look for all the little
variances of MSO, <?XML, etc. in a straight shot. I would like
to find a way to use a wild card to look for all tags that have MSO
or Microsoft or ?XML in them and then replace them with a null
value. From what I can tell, the Find would have to use a wildcard
because the advanced find features don't carry what I am looking
for. Something like Find \<?xml * [<-wildcard] to \> to
grab the entire tag. The Find tag command doesn't work because the
tags I need aren't listed. Also, because the content is dynamic, I
can't do a Fins and Replace against the entire site for these
commands, but it would be nice to "Find" all of these items with a
single pass since the "Replace" value is always null.
The wildcard syntax and multiple Find instances are the main
questions. The wildcards seem to be character or space specific.
Sorry for the long explanation - I just don't want to waste
anyone's time typing responses to things I've already tried to do.
Thanks in advance for any help. This is my first time back in
the forums in about 4 years.sadamec1 wrote:
> Well David, you Findmaster - it worked! (At least it
found and highlighted the
> code). Now, I need to dig through what you sent me and
compare it against my
> regular expression definitions to find out how to grab
the rest of these
> phrases. You're the best. Thank you!
Glad that it did the trick. Just to help you understand what
I did,
there are two main sections, as follows:
<\?xml[^>]+>
and
<[^>]+(?=class=Mso)[^>]+>
They are separated by a vertical pipe (|), so they simply act
as
alternatives.
The first one searches for <?xml followed by anything
except a closing
bracket until it reaches the first closing bracket.
The second one is more complex. It begins with this:
<[^>]+
This simply looks for an opening bracket followed by anything
other than
a closing bracket. What makes it more intelligent is the next
bit:
(?=class=Mso)
This does a forward search for "class=Mso". It's then
followed by this
again:
[^>]+>
That finds anything except a closing bracket followed by a
closing bracket.
The bit that you need to experiment with is (?=...). It's
technically
called a "forward lookaround". The effect is that the second
half of the
regex finds <....class=Mso....>.
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/ -
After upgrading to RH8, all instances of "em dash" symbols in projects are now appearing incorrectly. When we insert the "em dash" symbol, we always eliminate any spaces before and after the symbol. All projects that have been upgraded to use RH8 now add a space after the symbol, which is incorrect.
I have also installed the RH updates and opened a project that had not been upgraded before the update installs...same problem.
Due to the size of the projects, I have tried using the Find and Replace feature within the HTML view; unfortunately, this did not work.
Has this issue been addressed with Adobe? I ran into a similar issue with the upgrade to RH7, where the HTML coding for em dashes would come through in the design view and final .chm output file. Does anyone know of a Find and Replace feature within RH that will allow me to remove every instance where a space appears after the em dash symbol? I have found the FAR tool but would like to avoid it if possible, as I have read it can corrupt RH files.There was one other post recently about this but otherwise this problem had gone quiet so I don't know why you are seeing it in a project that was not opened before applying the patches.
So turning to FAR, it is not the program that corrupts files. It is what the user does with it. As we usually say, it can fix a project in minutes and wreck it in seconds. That is because the user has not thought about what the search might find. For example, you might search for "class" thinking about your topic content but of course FAR works a code level so it will remove all your style classes as well. That is where the corruption comes in, not the software itself. It's rather like blaming the car for the crash.
If you back up first, there is nothing to lose.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
Batch Edit Multiple HTML files | Find and Replace
Hi,
I would like to use Automator to automate (I know that sounds redundant) the following process.
1. Take a group of html files
2. Open each file so it can find and replace the script of any image folders
Example:
Change: img src="home_files/photo.jpg" to img src="images/photo.jpg"
3. Save & Close each file
I assume this this would have to be done in either AppleScript or Cocoa.
Any help would be greatly appreciated.
Thanks in advance.you most definitely don't need Cocoa for something like that. if all you need is a straightforward search and replace in a bunch of html files you can easily do this with a shell script. If you need some more involved search and replace you have to explain what it is exactly that you want.
to automate direct search and replace you can do something along the following lines in automator
1. get selected finder items (this will select your html files)
2. run shell script action with input passed as arguments
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
for f in "$@"
do
fl=`echo "$f"`
sed 's%home_files/photo.jpg%images/photo.jpg%g' $f > /users/$USER/.tmp.txt
cat /users/$USER/.tmp.txt > "$fl"
done
rm /users/$USER/.tmp.txt</pre> -
How do I find and replace recurring images?
I was wondering if I could find and replace recurring thumbnails in a document. I actually want to delete the specific thumbnail in mass.
Then Paste and Match Style option shift command v to remove the graphics.
It is under the Edit menu of most OSX apps.
There are also utilities that remove all styles and other formatting automatically for you when you do a simple copy and replace.
Peter
PS The Pages09_UserGuide.pdf is available from under the Help Menu. -
How can i find and replace xml tags?
Hi, i am using xml in my workflow and want to be able to remove certain tags if they contain particular text.
here is an example of my xml structure…
<entry>
<name>DEFAULT</name>
<tel>DEFAULT</tel>
<address>DEFAULT</address>
</entry>
I am using this initial structure to set the paragraph styles to be followed when the xml data is imported.
This leaves DEFAULT in place wherever an entry doesn't have any content for that field.
I want to be able to import my XML then run a script that removes any tags that include DEFAULT, - I need the entire xml tag to be removed not just the text, if i do a normal find and replace it will only remove the text not the tags which is causing problems with styling. I also want to remove the end of para/return (^p) that i've placed at the end of the line. So it would be the same as opening up story editor and removing the content + tags + hard return in there, but i want to automate the process…
So i think this is what i need to search for in each case
"<name>DEFAULT</name>^p"
and i want to replace it with nothing ""
Can this be done through scripting (ideally javascript)?
I have a little knowledge of javascript but am not sure how to search and target that kind of string in indesign...
using indesign cs5
many thanksHi,
Script should do it in two steps:
1. find all occurences of i.e. ">DEFAULT<"
2. remove whole paragraph which is a found_text's container.
For example this way -JS - (a textFrame filled with your text should be selected) :
var mStory = app.selection[0].parentStory;
app.findTextPreferences = null;
app.findTextPreferences.findWhat = ">DEFAULT<";
var myF = mStory.findText();
var count = myF.length;
while (count--)
myF[count].paragraphs[0].remove();
rgds -
In order to view my documents on my newly purchased Macbook Air I recently had to upgrade my 27" iMac to Numbers 3.2. The new version does fine for what I use it for except the new "find and replace" feature...It is TERRIBLE! It is so much slower than the older version. Plus I loved how the older version showed a table of all the matching word or items you're searching for and you could easily scroll through them to find the one that you were searching for.
My question is: Can you change the Find and Replace feature back to the way it used to be in version 2.3 or Number '09? If so, please show me how. I would really appreciate it.
The image below shows the new version on the left and the old version on the right just in case you don't know what I'm talking about...
Thank you.Hi The.Gav,
Sad to say, but that feature has gone in Numbers 3.2
This discussion may help (or not)
Numbers - How use Find like the previous version?
Regards,
Ian. -
Is there a way to find and replace prices in an Indesign document from a CSV file?
Is there a way to find and replace prices in an Indesign document from a CSV file. Currenty I have a catalog with codes and prices in tables. I need to find a way to look up the code (and new price) in the CSV file and overwrite the price in the current table with the new price. Does anyone know of a script to run this quickly?
Hi,
Try this
1) with all the images showing, got to Find -> By caption or Note
2) enter the caption you are looking for Image Description and click on OK
It should display all the ones with that caption
3) select a few images as a test
4) go to Edit -> Add caption to selected items
5) if you want to blank out the captions just check the box to replace the caption and click on ok
6) You will need to confirm the blank captions
You could use a similar procedure to change the caption to something else.
Good luck
Brian -
Question about Find and Replace PL/SQL option in Forms Builder
Dear All
I have a small question .
I am using Find and Replace PLSQ/SQL in forms Builder ( Edit - Find and Replace PLSQL) to search any code in a form.
Let say I am searching for EMP .
Then all the places is coming where EMP is used as well as EMPloyee , EMPloyee_Desc tables also coming .
So is there any way to serach only the EMP part .If you look closely to the right of the "Find What" field, you should see a button - "Expression". This allows you to add some logic to your search. Alternatively, depending on how you code, you could just look for spaces. For example, if you are looking for EMP and not EMPLOYEE, search for EMP with a blank space before and after it (assuming you code this way) or use something like this \bEMP\b This would work for me because I code the same way I write sentences - each work is separated by spaces.
<blockquote> EMPLOYEE := EMP || ' - ID';</blockquote>
In this example, seaching for EMP with a blank space after would find what I wanted. However, if you only search for a trailing blank, you may end up also finding words like tEMP. This is where have a blank space before each word is helpful.
Other, more valuable expressions could be written to accomplish your task. Refer to the Forms Builder Online help for more information about using Expressions in the Find and Replace search window.
Maybe you are looking for
-
Open Web Dynpro in same window
Hello Everyone! We've got a really really big problem. We use in our KM a Web Dynpro. In the Image Map we want to call this Web Dynpro and open it in the same window. But at the moment we are just able to open the Dynpro in another window. Is there a
-
has anyone else had a problem with data? after updating my phone to the new update, i have all this data, and keep getting notifications that my data is getting high. i never had this problem before.
-
Trying to debug cfc in flex project
I have cf builder as a plugin in flash builder I have a cfc in a flex project and when I try and add a cf debug config I get a message: Path for project must have only one segment. Any ideas friends
-
Word 2007 complex autofill date feature
I need to write the date in a heading (within the text body) and I need Word 2007 to autofill the consecutive dates into the following headings in the document. Example: I want to be able to write "Monday, 2/ 02" and I want Word to autofill "Tuesday
-
Forms - button to repeat a section/row
Hi All, This is the first time I've posted to the Adobe forum, so please forgive me if I sound like I have no idea - well, I don't really! I need to create a form that has a table/section that we would like our reader to be able to click a button an