Re: When to use text VS text item
Re: When to use text VS text item
- Subject: Re: When to use text VS text item
- From: Shane Stanley <email@hidden>
- Date: Sat, 06 Sep 2008 22:30:38 +1000
- Thread-topic: When to use text VS text item
On 6/9/08 7:38 PM, "J. Stewart" <email@hidden> wrote:
> Assuming I'm not completely off base here, I've not seen either
> of those constructs written as you've got them.
The archived post gives a better example. Suppose you have an HFS path to a
file and you want to get the path to the containing folder. You can set TIDs
to ":" and then get "text 1 thru text item -2 of x", rather than "(text
items 1 thru -2 of x) as text". As well as being more efficient, in
pre-Leopard systems it's a way of guaranteeing the resultant string is of
the same text class as the original, something that can sometimes be
important.
--
Shane Stanley <email@hidden>
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden