• 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: AS-Studio breaks list limits?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS-Studio breaks list limits?


  • Subject: Re: AS-Studio breaks list limits?
  • From: Paul Berkowitz <email@hidden>
  • Date: Wed, 14 May 2003 12:05:52 -0700

On 5/14/03 11:46 AM, "julifos" <email@hidden> wrote:

>> How are you making your lists? I believe there may be another limitation
>> when concatenating over and over again. Do you 'set end of theList to
>> newItem'?
>
> Yes!
>
> #####################
> tell application "Microsoft Entourage"
> set msgList to {}
> set i to 1
> repeat
> try
> set msgList's end to message i of folder "7850 messages"
> on error msg number n
> display dialog "" & i & return & msg & return & n
> exit repeat
> end try
> set i to i + 1
> end repeat
> end tell
>
> msgList
> #####################
>
> But today all works fine! (perhaps yesterday all worked ok, too?)


It could be that for more robustness you should

set idList's end to (ID of message i of folder "7850 messages")


and just store a list of numerical IDs or string coercions of same. I think
that's probably particularly advantageous if you're going to keep the list
as a script property (or in user defaults in Studio), but maybe just in any
case. It must use much, much less memory. Then when you come to use the
list later on, just

set theMsg to message id (item i of idList)

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: AS-Studio breaks list limits? (From: julifos <email@hidden>)

  • Prev by Date: Re: OS version?
  • Next by Date: Lowest value of list
  • Previous by thread: Re: AS-Studio breaks list limits?
  • Next by thread: moving files to a date named folder
  • Index(es):
    • Date
    • Thread