• 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: Fwd: How the heck do you get records to work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: How the heck do you get records to work?


  • Subject: Re: Fwd: How the heck do you get records to work?
  • From: Nigel Garvey <email@hidden>
  • Date: Fri, 23 Jan 2004 14:13:12 +0000

I wrote on Fri, 23 Jan 2004 10:01:14 +0000:

>Also - I don't know if this can still be done in Panther - there's a bug
>in the clipboard commands that can be exploited. :-) This is obviously
>not recommended:
>
> set foo to {one:"1", two:"2"}
> set bar to "two"
>
> set the clipboard to foo
> set fool to the clipboard
>
> repeat with i from 1 to (count fool) by 2
> if item i of fool is bar then
> set baz to item (i + 1) of fool
> exit repeat
> end if
> end repeat
> baz --> "1"

Thanks to Chris Stone for discreetly pointing out to me off-list that the
result of this script is in fact (and should be) "2".

NG
_______________________________________________
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.

  • Prev by Date: Re: Finding a list of things in FMPro
  • Next by Date: Re: styled text to record, ok. But record to styled text?
  • Previous by thread: Re: Fwd: How the heck do you get records to work?
  • Next by thread: How to Mount iDisk?
  • Index(es):
    • Date
    • Thread