• 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
Re: Cumulus Find/Replace Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Cumulus Find/Replace Script (From: "T.J. Mahaffey" <email@hidden>)

  • Prev by Date: Scripting dropping a file onto a droplet
  • Next by Date: Usefull One Line Script for OS9
  • Previous by thread: Cumulus Find/Replace Script
  • Next by thread: Re: applescript-users digest
  • Index(es):
    • Date
    • Thread