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
Using the filter form
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Using the filter form
Subject
:
Using the filter form
From: "Hoelzer, Manfred" <
email@hidden
>
Date: Wed, 21 Feb 2001 09:48:06 +0100
>
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
Prev by Date:
Re: Fun with coercing to string
Next by Date:
applying a method to each item of a list
Previous by thread:
Re: Facespan versus Smile
Next by thread:
applying a method to each item of a list
Index(es):
Date
Thread