AW: Using the filter form
AW: Using the filter form
- Subject: AW: Using the filter form
- From: "Hoelzer, Manfred" <email@hidden>
- Date: Thu, 22 Feb 2001 13:25:06 +0100
Thank you John for that hint.
Up to now I only found a reference in ASLangG that: "The Filter reference
form specifies application objects only." and for address in Palm Desktop
this is true. I couldn't imagine that this filter functionality has to be
reinvented with every application.
Manfred
I believe that Palm Desktop just doesn't do filters.
Filters require coding on the application side, so it's often neglected.
>
> hi, Scripters
>
>
>
> I've tried in vain to substitute a repeat-loop with a filter construct.
>
> It is surely very simple to make the commented line in the script below
>
> working.
>
> The examples in AS Language Guide ("whose", "where" in conjunction with
>
> "it") were enlighting but I could not make it work with Palm Desktop.
>
>
>
> Do you know how the correct syntax should be?
>
>
>
>
>
> ------------------------------ Script ------------
>
> set partPhone to "1313" -- just one extension
>
>
>
> tell application "Palm(tm) Desktop"
>
> set thePerson to the full informal name of name info of address 3 --
just
>
> that a value is assigned to thePerson
>
>
>
> repeat with addr from 1 to count of every address
>
> if full phone of phone 1 of address addr contains partPhone then
>
> set thePerson to full name of name info of address addr
>
> end if
>
> end repeat
>
> -- set thePerson to first name of name info of every address whose ->
>
> (full phone of phone 1 of it contains partPhone)
>
> end tell
>
>
>
> display dialog thePerson
>
> ------------------------------ Script ------------
>
>
>
> thanks in advance and ...keep scripting ;-)
>
>
>
> Manfred
--
--------------------------------------
John Kawakami
email@hidden
No war in Colombia. Bush + Cocaine = Trouble.