• 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
AppleWorks - every record whose visible is true
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleWorks - every record whose visible is true


  • Subject: AppleWorks - every record whose visible is true
  • From: Cornwall <email@hidden>
  • Date: Thu, 8 Aug 2002 23:59:57 -0700

This little script was intended to get the id of every visible record
of an AppleWorks database, but instead it returns the id's of every
hidden record. Is there a correct syntax lurking in there somewhere
(magic words?), or is it really broken?

tell application "AppleWorks 6"
activate
tell database of document 1
set recref to (id of every record whose visible is true)
end tell
end tell
-->id of every *hidden* record : (

Which leads to an absurd work around that is certain to break someday.

tell application "AppleWorks 6"
activate
tell database of document 1
set recref to (id of every record whose visible is true)
hide every record
repeat with arec in recref
show record id arec
end repeat
set recref to (id of every record whose visible is true)
end tell
end tell
-->id of every record of the 'original' found set (whew!)

Thanks
Corny
_______________________________________________
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: Eudora: Generate html email
  • Next by Date: Re: Need XOR solution
  • Previous by thread: Re: Eudora: Generate html email
  • Next by thread: Time/Date stamping
  • Index(es):
    • Date
    • Thread