MACSCRPT Archives

January 2011

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Emmett Gray <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 20 Jan 2011 22:18:13 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (11 lines)
At 10:00 PM -0500 1/20/11,  Mark Lively <[log in to unmask]> wrote :

>set aString to "this.   is..a.test"
>set AppleScript's text item delimiters to "."
>set outstring to text items 1 through -2 of aString as text
>--"this.   is..a."
>
>The only problem is the case where there is no period in the string.

No problem here, returns a period-shy string without error.

ATOM RSS1 RSS2