• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cumulus Find/Replace Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Cumulus Find/Replace Script
      • From: Wim van Ommen <email@hidden>
  • Prev by Date: wanted a real sort
  • Next by Date: Re: applescript-users digest
  • Previous by thread: Playing QuickTime Movie w/Dialog Director
  • Next by thread: Re: Cumulus Find/Replace Script
  • Index(es):
    • Date
    • Thread