• 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 w/ text item delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem w/ text item delimiters


  • Subject: Re: problem w/ text item delimiters
  • From: "Stockly, Ed" <email@hidden>
  • Date: Wed, 7 Feb 2007 10:55:01 -0800


> What's very strange is that if you build your list using "as
> string," as in the example below, it seems to work, even though the
> class is already string.

>>>Tom>>>Perhaps the problem is because you're not dereferencing the item reference. When you use "repeat with myItem in myList" loop, any ruse of myItem within that loop is actually the reference "item n in myList", not the contents of the item itself. Simply preceding reference with "contents of" will get the contents instead of the reference.

Yes, I think that explains it, and also explains why using "myItem as string" works.

using 'contents of myItem' or 'myItem as string' are both acceptable workarounds.

What this doesn't explain is why, even if it's a reference to a value in list, it doesn't work.

It seems to be a combination of the TID and the contents of the list items, but I remained stumped.

Ed
 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: problem w/ text item delimiters
      • From: "J. Stewart" <email@hidden>
  • Prev by Date: Re: Getting started with XML?
  • Next by Date: [ANN] A new environment of widgets.
  • Previous by thread: Re: problem w/ text item delimiters
  • Next by thread: Re: problem w/ text item delimiters
  • Index(es):
    • Date
    • Thread