Re: Cumulus Find/Replace Script
Re: Cumulus Find/Replace Script
- Subject: Re: Cumulus Find/Replace Script
- From: Wim van Ommen <email@hidden>
- Date: Wed, 11 Apr 2001 22:38:26 +0200
>
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
Sorry that this is a working script, but you were to far from the solution.
tell application "Cumulus S5.0"
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
tell front collection
find every record matching ("Notes contains " & answerOne as
string)
select every record
end tell
set recordList to ID of every record of selection of front window as
list
repeat with r in recordList
set value of field "Notes" of record id r of front collection to
answerTwo
end repeat
end tell
Cheers,
Wim.
--
- Wat is the comparision between computers and airconditioning?
* As soon as you open windows it stops working.