• 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: Why do I get this error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why do I get this error?


  • Subject: Re: Why do I get this error?
  • From: kai <email@hidden>
  • Date: Thu, 20 Apr 2006 10:09:33 +0100


On 20 Apr 2006, at 09:07, I wrote:

Introducing parentheses should cause a change in the sequence of evaluation and fix the error:

Incidentally, another way to do this might be:

------

script make_pack (* just for fun *)
set p to {}
repeat with s in «data utxt2660266126632662» as Unicode text
repeat with c in {"A", "K", "Q", "J", "10", "9", "8", "7", "6", "5", "4", "3", "2"}
set p's end to c & s
end repeat
end repeat
p
end script
property newPack : run make_pack


set thePack to newPack's items
set theDeal to {}
set theLength to count thePack
repeat until theLength is 0
	set foo to random number from 1 to theLength
	set end of theDeal to item foo of thePack
	set item foo of thePack to missing value
	set thePack to thePack's text
	set theLength to count thePack
end repeat

theDeal

------

---
kai


_______________________________________________ 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: Why do I get this error?
      • From: "Adam Bell" <email@hidden>
References: 
 >Why do I get this error? (From: Michelle Steiner <email@hidden>)
 >Re: Why do I get this error? (From: kai <email@hidden>)

  • Prev by Date: Re: Apply User and Groups to Items in a Folder
  • Next by Date: Directory referencing conventions
  • Previous by thread: Re: Why do I get this error?
  • Next by thread: Re: Why do I get this error?
  • Index(es):
    • Date
    • Thread