• 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: When to use text VS text item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: When to use text VS text item
      • From: "J. Stewart" <email@hidden>
    • Re: When to use text VS text item
      • From: "J. Stewart" <email@hidden>
References: 
 >Re: When to use text VS text item (From: "J. Stewart" <email@hidden>)

  • Prev by Date: Re: When to use text VS text item
  • Next by Date: Re: When to use text VS text item
  • Previous by thread: Re: When to use text VS text item
  • Next by thread: Re: When to use text VS text item
  • Index(es):
    • Date
    • Thread