Re: problem w/ text item delimiters
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