Re: TextEdit Slash SearchReplace impossible (was Basic Script Blues)
Re: TextEdit Slash SearchReplace impossible (was Basic Script Blues)
- Subject: Re: TextEdit Slash SearchReplace impossible (was Basic Script Blues)
- From: ba95 <email@hidden>
- Date: Sat, 21 Nov 2009 08:10:33 +0100
Le 21 nov. 09 à 07:56, email@hidden a écrit :
Well, I just tried your script as modified below.
I copied everything between the ------s to the clipboard and your
script ran perfectly.
So that's not where the problem is.
What are the "blah blah blah other searchreplace operations" doing?
Same SearchReplace job.
Are they using the same handler?
Yes.
What applications are involved in this process?
TextEdit
What application is the clipboard first created in?
TextEdit
The backslash is the appleScript escape character, but the slash may
be an escape character for another ap.
You may also try:
set TheText to my SearchReplace(TheText, "eqUI//l", "equili")
set TheText to my SearchReplace(TheText, "equi//ibration",
"equilibration")
Tried. Same issue.
NB:
When I do a "manual" search replace of "eqUI//l", directly in TE
(command-F), it works OK (!?).
Try this too: open your script in script editor.
Insert these commands after you get the text from the clipboard:
log theText
log class of theText
Then open the apple event log and run the script.
Look a the log and see if it tells you anything useful.
Good idea.
I'm going to try it.
HTH
IHAL (it helps a lot ;-))
MAny thanks.
BA
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden