• 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
AW: Using the filter form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re4: magic integer converter number 62? - Joking???
  • Next by Date: Re: number of items in a folder?
  • Previous by thread: One Page at a time in Word
  • Next by thread: Reading large files
  • Index(es):
    • Date
    • Thread