AppleWorks - every record whose visible is true
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.