• 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
Bug with "missing value"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug with "missing value"


  • Subject: Bug with "missing value"
  • From: David Crowe <email@hidden>
  • Date: Mon, 13 Jun 2005 16:07:34 -0600

Title: Bug with "missing value"


I have a list of fields from the AddressBook, let's call it "x".


The following code does not find any matches with the constant 'missing value':

                                repeat with aField in x
                                        if aField = missing value then
                                                set end of thePerson to ""
                                     
else
                                           
set end of thePerson to aField
                                        end if
                                end repeat


But if I change it to:

                                repeat with i from 1 to (count x)
                                      
if item i of x = missing value then
                                            
set thePerson to thePerson & {""}
                                      
else
                                           
set end of thePerson to item i of x
                                    
end if
                         
end repeat

Then it works.

I have a workaround, so a solution is just a matter of interest, but this does seem wierd to me. Perhaps one of the AppleScript gurus on the list can discuss the subtlety that I've bumped into.

- David Crowe
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Bug with "missing value"
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Binary math operations (and, or, etc.)
  • Next by Date: crop left half of image via script
  • Previous by thread: Re: Printing a window
  • Next by thread: Re: Bug with "missing value"
  • Index(es):
    • Date
    • Thread