• 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
Re: problem with list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with list


  • Subject: Re: problem with list
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 18 Nov 2010 18:10:22 -0800

>
>
>> So, the error is coming from the toList() handler defined in your
>> script object, which you neglected to include in your email.  But it
>
> why do u say that? there are 2 refs to rec in the loop thru each element of recList...

I know the answer to that question!  He says that because you have provided too little information for anyone to make anything but an educated guess. And as educated guesses go his was pretty good.

I seem to recall there's a condition in AppleScript where the value of a variable becomes undefined in certain circumstances, like when you set it to a missing value in a handler, or something, and that would be my educated guess, but we have no way of knowing because we're not seeing enough of your script to say.

It could also be a ghost in the machine for all we know!

I would recommend that when anyone is posting this kind of question to the list, before you post, try to reduce the script to the simplest possible scenario where the problem still exists. If we can simply copy and paste from your email into a script and run it that's even better.

This will help everyone help you figure out what's going on.

Yes, help us help you.

I try to do this whenever I have a question like this, and I try to post as simple an example as possible that still illustrates the problem.

I have found that just doing that, simplifying the script, removing variables (not appleScript variables, but irrelevant parts of the script) often helps me figure out what's going on.

HTHUHY

ES _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >problem with list (From: tom wible <email@hidden>)
 >Re: problem with list (From: "Mark J. Reed" <email@hidden>)
 >Re: problem with list (From: tom wible <email@hidden>)

  • Prev by Date: Re: problem with list
  • Next by Date: Re: problem with list
  • Previous by thread: Re: problem with list
  • Next by thread: Re: problem with list
  • Index(es):
    • Date
    • Thread