• 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: Accessing lasts characters of a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing lasts characters of a string


  • Subject: Re: Accessing lasts characters of a string
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 12 Mar 2008 16:02:47 -0500

On Mar 12, 2008, at 3:51 PM, Luther Fuller wrote:
On Mar 12, 2008, at 3:34 PM, Jean Létourneau wrote:
I am trying to find the way to access all characters of a string but the 1st
one. This is a lesser known feature that was included without much
announcements. It would be the equivalent of


text 2 thru (TheString's length) of TheString

I know it exists since I have used it once, but my memory failsŠ

Use the list command 'rest of', like this ...

property strA : "abcdefghijklmnopqrstuvwxyz"
set strB to (rest of characters of strA) as text
set strC to (rest of characters of strB) as text
log strC

No, like this ...

property strA : "abcdefghijklmnopqrstuvwxyz"
set AppleScript's text item delimiters to {""}
set strB to (rest of characters of strA) as text
set strC to (rest of characters of strB) as text
log strC

Setting TIDs to null is NOT optional!

_______________________________________________
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: Accessing lasts characters of a string
      • From: Michelle Steiner <email@hidden>
References: 
 >Accessing lasts characters of a string (From: Jean Létourneau <email@hidden>)
 >Re: Accessing lasts characters of a string (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Accessing lasts characters of a string
  • Next by Date: Re: Accessing lasts characters of a string
  • Previous by thread: Re: Accessing lasts characters of a string
  • Next by thread: Re: Accessing lasts characters of a string
  • Index(es):
    • Date
    • Thread