Find and Replace simple action crashes Illustrator CC
I am now trying Creative Cloud and I came with this bug. When I use a simple action to find and replace a text string in my file it will crash the Illustrator.
My actions is pretty simple:
Find > "aa" (I do have to check all the options to work)
Find and Replace > "aa" to "2014.01.29"
This action works well if I use it once by the Edit menu, but if I close the Illustrator and reopen, it'll not work again and will crash the software.
Everyday I do update my action to actual date, so the action will work normally but sometimes I do have to close the app and I have to make the action again and again everytime.
This was a problem already in CS5, last version that I used.
I'm using Windows 8.
Msot likely this isthe problem of the action playing back to fast.
Actions Flyout >> playback options > set to altast 1 second
You will need to change this setting each time you resart illustrator
Similar Messages
-
Find and replace crashes Dreamweaver 5.5
When trying to use find and replace dreamweaver always crashes. I've tried clearing the cache from instructions of this link and it didn't work. http://forums.adobe.com/thread/494811
Please help!Does the issue occured after you made any H/w or S/w changes on your MAC(may be after upgrading your OS)?
If so, have you tried restoring dreamweaver's preferences? Follow the link below.
http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
Make sure you backup all your current preferences if you need them again. -
Dreamweaver cs3 international edition crashes while "Find and Replace"
When i try to perform Find and Replace in Adobe Dreamweaver CS3
the program halts and crashes everytime.
aditional info:
Adobe Dreamwever CS3
international version (translated GUI)
Version 9.0 Build 53
Windows Vista
Pentium Core2duo 2gb ram
best wishes..
ozgur zMr David Powers thank you for your quick,
sorry to say but
the link did not work for me.
i am so ashamed to use a program that crashes while doing a simple "search and replace" action! which i had paid more than 900$.
and also it is so interesting that adobe has released new version CS4 instead of updating the buggy CS3. so the ppl who bought CS3 are dumped!
here i attach the crash error dump file that Dreamweaver creates in its configuration directory.
http://rapidshare.com/files/230314270/Dreamweaver_crash_log.mdmp
i hope it helps to diagnose and SEARCH and REPLACE the BUG.
best wishes
o.z.
edited by: OzgurZ (inserted the rapidshare link for the dump file)
Message was edited by: OzgurZ - NOT answered yet. -
Folder action to find and replace text and change line feeds
I want to use a folder action to find and replace text and change Mac carriage returns to DOS line feeds inside text files.
The text to be replaced is: "/Users/wim/Music/iTunes/iTunes Music/Music" (without the quotes)
This text has to be removed (i.e. replaced by an empty string)
The text occurs many times within each file.
The files are playlists exported from iTunes in the M3U format (which are text files). They contain Mac carriage returns. These need to be changed to DOS line feeds.
I have found the following two perl commands to achieve this:
To find and replace text: perl -pi -w -e 's/THIS/THAT/g;' *.txt
To change carriage returns to line feeds: perl -i -pe 's/\015/\015\012/g' mac-file
I know that it's possible to make a folder action with Automator that executes a shell script.
What I want to do is drop the exported playlists in M3U format in a folder so that the folder action will remove the right text and change the carriage returns.
My questions are:
Is it possible to make a folder action that executes command line commands instead of shell scripts?
What is the correct syntax for the two commands when used in a folder action shell script? Especially, how do I escape the slashes (/) in the string to be removed?
Thanks for your helpOk, I've include an applescript to run a shell command. The applesript command quoted form makes a string that will end up as a single string on the bash command line. Depending on what you want to do, you may need multiple string on the bash command lines. I've included some information on folder actions.
It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on. Here is an example.
Author: rccharles
For testing, run in the Script Editor.
1) Click on the Event Log tab to see the output from the log statement
2) Click on Run
For running shell commands see:
http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
on run
-- Write a message into the event log.
log " --- Starting on " & ((current date) as string) & " --- "
-- debug lines
set desktopPath to (path to desktop) as string
log "desktopPath = " & desktopPath
set unixDesktopPath to POSIX path of desktopPath
log "unixDesktopPath = " & unixDesktopPath
set quotedUnixDesktopPath to quoted form of unixDesktopPath
log "quoted form is " & quotedUnixDesktopPath
try
set fromUnix to do shell script "ls -l " & quotedUnixDesktopPath
display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
on error errMsg
log "ls -l error..." & errMsg
end try
end run
How to set up a folder action.
1) right click on folder. click on Enable folder actions
2) Place script in
/Library/Scripts/Folder Actions Scripts
3) right click on folder. click on attach folder action
pick your script.
Create a new folder on the desktop & try.
You can put multiple folder actions on a folder. There are other ways of doing this.
Here is my test script:
on adding folder items to this_folder after receiving dropped_items
repeat with dropped_item_ref in dropped_items
display dialog "dropped files is " & dropped_item_ref & " on folder " & this_folder
end repeat
end adding folder items to
How to make the text into an AppleScript program.
Start the AppleScript Editor
/Applications/AppleScript/Script Editor.app
In Snow Leopard it's at: /Applications/Utilities/AppleScript Editor
Copy the script text to the Applescript editor.
Note: The ¬ is typed as option+return. ption+return is the Applescript line continuation characters.
You may need to retype these characters.
Save the text to a file as an script and do not check any of the boxes below. -
How can I create an action that uses "Find and replace"?
Hi there,
I'm trying to create an action that will use "Find and replace" to change certain words and phrases in my .psd-files. These are words and phrases I change a lot (I'm translating emails and website banners) and I would like to speed up that process using actions.
When I tried to create the action I got the error message "The object "in contents of all text layers" is not currently available".
Then I tried "insert menu items" and chose "Find and replace" and then did my change, but then it stopped when the FAR-window popped up. That's what I want to skip, so it just changes my words and phrases that I want.
Is this possible?
Best,
CarlAnyway, in the Script in that other thread the function replaceText takes two Strings, so something like
function main () {
var myDocument = app.activeDocument;
replaceText ("replace this", "with this")
would be a possibility. -
A Script to Find and Replace Layer Names
Are there any scripts to find and replace layer names?
There is an excellent script available for Photoshop which allows you to not only replace words in layer names, but also insert words as Prefixes, Suffixes and Sequential Numbers.
The illustrator version of this script only allows sequential numbering: It doesn't offer find and replacing of words.
Ideally, it would be great if there was something that could do multiple find and replaces in one go:
(e.g.
You have layers like this Car, Dog, Bat
You enter: car(Option1), dog(Option2), Bat(Option3)
Your layers then become: Option1, Option2, Option3).big_smile, that's a very good start! Step 1 of Learning How To Script is indeed, adjusting an existing simple script to make it do more complicated things. (And usually then "break something", which is also a required part of the process.)
You are correct in your observation this is repetitive stuff. For one or two different items that wouldn't be a problem, but in longer lists you soon get lost.
The usual way of working with find-change lists is to build an array:
var layernames = [
[ 'FHairBowlBoy *Hair', 'Hairboy1' ],
[ 'FHairCurlyafroBoy *Hair', 'Hairboy2' ],
[ 'FHairSpikyBoy *Hair', 'Hairboy3' ],
The general idea is to loop over all names, check if the current layer name is "layernames[i][0]" (the left column) and if so, rename it to "layernames[i][1]" (the right column). If you know how to write a loop in Javascript, then you can implement this right away.
However ..
A more advanced way to do this doesn't even need loop to over all layernames -- instead you can immediately "get" the correct name per layer! It's magic! Almost!
The trick is to use a Javascript object instead of an array. Javascript objects are nothing special; Illustrator's 'layers' is an array of objects, and each object "layer" has a property "name", whose value you can read and set. What I do here is create a new object, where the "name" part is the original layer name and its value is the new layer name. All you need to check for per each layer is if there is a property 'object.originalLayerName', and if so, assign its value to that layer name.
This looks a bit like the array above, except that (1) you use {..} instead of [..] to create an object, and (2) you add "name:value" pairs instead of "value" only (actually, the 'name' of a value in an array is simply its number).
So this is what it looks like:
// JavaScript Document
var doc = app.activeDocument;
// name indexed object
var layernames = {
'FHairBowlBoy *Hair':'Hairboy1',
'FHairCurlyafroBoy *Hair':'Hairboy2',
'FHairSpikyBoy *Hair':'Hairboy3'
// 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];
Enjoy! -
I have to do complicated reformatting of an entire site. It's been simplified to a series of find and replace tasks for each file. Each find and replace string has been saved as a .dwr file. Currently I have to load and execute each .dwr file.
How do you batch process or automate this task in Dreamweaver? In other words, queue up a series of .dwr files to be executed consecutively?OK here we go.
This example, a simple Dreamweaver Command Extension, will execute two Find and Replace commands in one go. (It can be any number of Find and Replace commands.)
The first command replaces "the" and "this" with "phe" and "phis". The second command replaces <ul> ... </ul> with <ol> ... </ol>. (These of course can be any Find and Replace.)
You need two files: a HTML file (for the UI) and a Javascript file (for actions). I named them "Find and Replace Test.html" and "Find and Replace Test.js". (They can be any name.)
Find and Replace Test.html
<!DOCTYPE HTML SYSTEM "-//Adobe//DWExtension layout-engine 10.0//dialog">
<HTML>
<HEAD>
<Title>Find and Replace Test</Title>
<script src="Find and Replace Test.js"></script>
</HEAD>
<BODY>
<form>
<p>Are you sure?</p>
</form>
</BODY>
</HTML>
Find and Replace Test.js
function canAcceptCommand() {
return true;
function commandButtons() {
return new Array("Go!", "doIt()", "Cancel", "window.close()");
function doIt() {
dreamweaver.setUpFindReplace({
searchString: "th(e|is)",
replaceString: "ph$1",
searchWhat: "document",
searchSource: true,
useRegularExpressions: true
dreamweaver.replaceAll();
dreamweaver.setUpFindReplace({
searchString: "<(/?)ul>",
replaceString: "<$1ol>",
searchWhat: "document",
searchSource: true,
useRegularExpressions: true
dreamweaver.replaceAll();
window.close();
Basically you can call any number of this pair of functions in the script:
dreamweaver.setUpFindReplace(findAndReplaceObject);
dreamweaver.replaceAll();
Place these HTML and JS files in this directory:
Dreamweaver App Directory/Configuration/Commands/
Then in Dreamweaver, open "Insert" window. (You need to have a HTML file open in order to make the Insert window active.) At the top of the Insert window there's a category dropdown menu ("Common" etc.). Do alt + click (ctrl + click) - then you'll see an item "Reload Extenesions" at the bottom of the dropdown. This will load this extension to DW. (Alternatively you can restart DW to load the extension.)
Now it's ready to run the Extension. Open a HTML document you want to modify. Go to "Commands" on the menu bar. At the bottom of the dropdown there should be an item "Find and Replace Test". Select and enjoy
Notes
This example is set to perform the Find and Replace on the current document. You can change the scope to the entire site, or the selected files, etc, just like in the Find and Replace dialogue box. The API doc is here: http://help.adobe.com/en_US/dreamweaver/cs/apiref/WS5b3ccc516d4fbf351e63e3d117f9e09bcf-7ed a.html
You can use dreamweaver.setUpComplexFindReplace(xmlQueryString) command instead. xmlQueryString is basically <dwquery> ... </dwquery> in your .dwr files, you can copy from your .dwr files. However xmlQueryString needs to be one continuous string (no line breaks), which can be a pain The doc: http://help.adobe.com/en_US/dreamweaver/cs/apiref/WS5b3ccc516d4fbf351e63e3d117f9e09bcf-7ed 9.html
Command Extension general example in the doc: http://help.adobe.com/en_US/dreamweaver/cs/extend/WS5b3ccc516d4fbf351e63e3d117f53d6ec3-7fe 6.html
I hope all of these make sense...
Kenneth Kawamoto
http://www.materiaprima.co.uk/ -
How do I find and replace text in PHP files?
How can I in CS3 make sitewide changes to the text in PHP pages without changing variable names etc that have the same name?
For example if I have an installation of a PHP forum and I want to change every instance of the word 'forum' to 'message board'...
If I used the 'inside tag' search with " as the tag, then if "" contained a variable called 'forum' it would also be changed and therefore corrupt the code....
Is there a simple way around this?
Thanks!
I'm using CS3 on Windows Vista.It looks like you're trying to find and replace source code, so you may be able to look at the various places that are looked at when finding and uncheck the ones that don't apply.
But, if it's all source code then that won't help. One thing that may work is to expand the search option - for example if the work "forum" that you're wanting to change it preceded by another word, or character or something that sets it apart, then do you find on that. You can expand that search phrase as far out in either direction that you need to to make it different, if of course that is practical in your situation.
The only other way I can think of is to somehow create an exception rule, but I'm not sure if that's possible or how to do it. -
Dumb Q: problem with Find And Replace window in Flash 8
Dear Flash Group,
apologies if this is trivial, it's my first day using Flash.
I downloaded a Flash project from
http://www.flashorb.com/articles/benchmark_files/flash-benchmark.zip.
This
flash calls into a web service at localhost:8080. I used the
'Find and
Replace' window within Flash Professional 8 to locate the
string
'localhost:8080' and replaced it with plain 'localhost'.
However, when I 'Debug the Movie' (Ctrl-Shift-Enter), it
still tries to
access port 8080! Obsiously, my replace command did not do
what I thought it
would do. I opened the FLA file in a binary editor, and saw 4
more
references to 8080, One if them in 'Properties' of a
WebServicesConnector,
but I cannot figure out how to find the other occurences.
Checking on google, I see lots of people having similar
problems, but no
solutions
Any ideas?
Regards, /george
PS. What do you guys do for code completion - is there a tool
that would
bring Flash on par with an professional IDE?george,
> when I 'Debug the Movie' (Ctrl-Shift-Enter), it still
> tries to access port 8080! Obsiously, my replace
> command did not do what I thought it would do.
Agreed.
> I opened the FLA file in a binary editor, and saw 4
> more references to 8080, One if them in 'Properties'
> of a WebServicesConnector, but I cannot figure out
> how to find the other occurences.
Might they be the result of that WebServicesConnector
reference?
> Checking on google, I see lots of people having
> similar problems, but no solutions
That's really odd, actually. I'm on these boards every day,
and I've
never heard of this issue. I don't *think* the Find/Replace
dialog visits
panel contents, such as the Component Inspector panel, but I
wouldn't swear
to that.
> What do you guys do for code completion - is there
> a tool that would bring Flash on par with an
professional IDE?
Well, Flash is a professional IDE, of course. By definition,
if you pay
for something, you have acquired a professional product or
service. I know
what you mean, though. Flash itself rocks, but the Actions
panel can be
glaringly weak. Personally, I use SE|PY to edit ActionScript.
http://www.sephiroth.it/python/sepy.php
Sorry I can't speak to your other issue. :-/
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design." -
How do I include a line feed in the replace section of the
find and replace feature of Homesite 5.5?
Converting many lengthy files from <pre> and <tt>
formats into CSS. Presently the target pages have paragraphs broken
into short lines of text with CR/LF's on every line. I wish to
revert the paragraph back to 'wrapped' text with a single CR at the
end of the paragraph.
I can 'find' and eliminate the " ¶ " symbol from each
line, but I do not know how to "replace " text that should include
this symbol.
text</p><p>¶
This is some sample text to¶
show graphically the problem¶
I am having.</p><p>¶
New Paragraph¶
When what I want is :-
<p>This is some sample text to show graphically , the
problem I am having.</p>¶
<p>New paragraph
Presently I can add hash marks (##) where I wish the
paragraph to end. I then globally remove all the "¶"'symbols
that appear in the text. What I want to do now is replace the ##
with code which would produce the following two lines
</p>¶
<p>
I have tried many different codes, such as chr(13) and \r,
but they all just insert the code as straight text.
Can anyone clue me in?
Thanks, gil das far as special chars in simple F-and-R, I replace some
non-ascii chars by copying from a doc and pasting into the dialog
field.
That wouldn't work for CR/LF, so you have to use the extended
search and replace there as you found out.
Note there is also a function for "Replace Double Spacing
with Single Spacing" (on the menu, under Search).
Probably no help for this case, but good to know.
BTW, be careful with your extended search and replace on
CR/LF. If your lines don't end in a space and a CR/LF, you might
want to replace CR/LFs with a space. Otherwise the last word of one
line might be butted against the first word in the next line with
no space when the CR/LF is removed.
Of course that's not a great solution since it adds a lot of
spaces where you have CR/LFs, and you may not want them all
there...
There is a Remove Returns script that might be of use to you.
It's a lot more manual than you probably want for doing lots of
files.
http://www.wilk4.com/asp4hs/list5.htm#removereturns
let us know here if you find some better solution please,
good luck,
jeff -
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 to find and replace text in Excel with Automator
I am new to Automator. And I would like some help how I can create a service that will allow me to find and replace certain text in Excel. I noticed that there is an action to do this for Word documents, but not for Excel document.
Any suggestions how I can do this?
Thanks so much for your help.Easiest way to do it is the following:
- Open the PDF file in Acrobat.
- Go to Tools - Forms - More Form Options - Export Data.
- Save the form data as an XML file somewhere on your system.
- Open XML the file in a plain-text editor (I recommend Notepad++).
- Let's say you want to replace all the years in the dates from "2013" to "2014". Do a global Search&Replace of "2013-" to "2014-" (I added the dash just to make sure that only date fields are edited).
- Save the XML file (maybe under a new name).
- Go back to the PDF file, and now go to Tools - Forms - More Form Options - Import Data.
- Select the edited XML file and import it.
- Done! -
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 multiple words at once?
I need to be able to find and replace words into queens English. For example, I need to replace all instances of "color" with "colour," "tire" with "tyre" etc.
I'm new to scripting, so simple answers would be appreciated :)Hi hobs707,
Please use the below code for your required output:
Replace ("color", "colour")
Replace("tire", "tyre")
//Replace("hobs707", "hobs007") just copy and paste and edit the contents as your wish
function Replace(input, output)
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.findWhat = input;
app.changeTextPreferences.changeTo = output;
app.activeDocument.changeText();
If the above answer is correct please provide Correct Answers for me.
Regards
Beginner
Maybe you are looking for
-
Error while accessing remote server using applet in jsp page
hii.. We are accessing a data repository MDSPlus. Its used for storing data such as signals in tree like structure. We r coding for client side in JSP . For this we are invoking applet which uses jar files of jScope(java tool for displaying waveforms
-
Listening to event from custom component
I have a main.mxml file, and 2 custom components: component1.mxml and component2.mxml I want to dispatch an event from component1 and handle it in component 2. I'm able to do this by handling the event first in the main.mxml then passing it on. But i
-
How to customise the URL on endsession button and point it to a third-party Application?
Hello , I have a scenario where i want to redirect to a third-party application instead of OPA summary screen on hitting the close-->end session button. How to customize the URL behind the end session button to point to the third-party URL? Thanks, C
-
Hi Experts, I just started working in CRM Module. Can any one provide me with some good CRM material. Please let me know the database tables that are generally used in CRM Module. Thanks in advance. Regards, Samantak
-
I am new to scripting but i have manged to put this script together to compose an email but can anyone advise how i can add 2 or 3 email address to this rather than just one, or an address from a group? Also i need to add some text to the main body,