Cumulus Find/Replace Script
Cumulus Find/Replace Script
- Subject: Cumulus Find/Replace Script
- From: "T.J. Mahaffey" <email@hidden>
- Date: Tue, 10 Apr 2001 15:38:41 -0500
Ok, new puzzler.
We're working on a script that will give us a Find-and-Replace capability.
For instance, we'd like to find all records whose notes field contains a
particular string, then REPLACE that string with a different user-defined
string. Here's what we've done so far. I know this is a long way from a
working script, but it gives you an idea of what we're trying to do.
My question is, could someone give us a nudge? We don't want a working
script from someone, we wouldn't learn anything that way, would we? We
mainly want to know that we're on the right track and maybe what our next
move might be. We seem to have jumped from some very simple Finder scripts
into some MONSTER feature-creep. lol
tell application "Cumulus 5 Client"
tell front collection
display dialog "Please enter the old string." default answer "" with
icon 1
set answerOne to (text returned of result) as string
display dialog "Please enter the new string." default answer "" with
icon 1
set answerTwo to (text returned of result) as string
if field "Notes" of records contains answerOne then
set answerOne to answerTwo
end if
end tell
end tell
Many thanks in advance.
T.J. Mahaffey
email@hidden