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:
"Daniel A. Shockley" <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sat, 22 Jan 2011 01:05:27 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
On Fri, 21 Jan 2011 16:42:16 +1100, Shane Stanley
<[log in to unmask]> wrote:

> Well that would be me, but perhaps you should look at what I posted a bit
> more closely:
>
>  set bareName to text 1 through text item -2 of theName
>
> That doesn't result in a list -- and it doesn't needlessly make a list and
> then coerce it to a string.
>
> --
> Shane Stanley <[log in to unmask]>
> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

I see. My mistake - and very interesting. I don't think I've ever seen
"text #" used in a "through" range with a "text item #" of a string.
It didn't occur to me to mix and match that way - another area where
AppleScript allows quite a bit of flexibility.

Dan Shockley

ATOM RSS1 RSS2