• 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: AppleWorks scripting - database question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleWorks scripting - database question


  • Subject: Re: AppleWorks scripting - database question
  • From: T&B <email@hidden>
  • Date: Mon, 5 Aug 2002 02:10:23 +1000

How do I move the record into view?

As you discovered, you set the current record property.

(If you have any suggestions on
how to improve the script as a whole, that would also be much appreciated!
)

How about this:

tell application "AppleWorks 6"
tell document "JobCard.cwk"
set jobList to value of field "Job Name" in every record
choose from list jobList with prompt "Select Job Card" \-
OK button name "Select" \-
without multiple selections allowed \-
and empty selection allowed
set jumpLoc to first item of the result
set jumpID to id of first record whose value of field "Job Name" is jumpLoc
set current record to record id jumpID
end tell
end tell

Tom
T&B
http://www.tandb.com.au/appleworks/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: fields in appleworks
  • Next by Date: Misc Eudora questions
  • Previous by thread: Re: fields in appleworks
  • Next by thread: Misc Eudora questions
  • Index(es):
    • Date
    • Thread