Re: can I do this better?
Re: can I do this better?
- Subject: Re: can I do this better?
- From: Geoff Canyon <email@hidden>
- Date: Sun, 16 Jun 2002 18:36:06 -0700
At 1:48 PM +0100 6/16/02, has wrote:
>
Geoff Canyon wrote:
>
<snip>
>
>
>Assuming that you're responding to my post, I wasn't talking about using
>
>AppleScript, but Revolution (or SuperCard or HyperCard). They have a very
>
>similar syntax to AppleScript, and built-in syntax for dealing with words,
>
>as opposed to having to set delimiters in AppleScript. The result is, as
>
>far as the original poster described, exactly what was asked for, in a
>
>single line of code:
>
>
>
>put word 1 to -1 of tString into tString
>
>
Does this statement include leading/trailing punctuation? AS is quite
>
precise about what constitutes a "word" so it doesn't, but Transcript may
>
take a different approach.
It does -- leading and trailing punctuation are included.
>
has
>
>
>
[1] Though it breaks down, unfortunately, when you try to use more complex
>
references:
>
>
text (word 2 of paragraph 2) thru (word 2 of paragraph 3) of theString
>
>
This compiles, but behaves incorrectly when you run it, so I'm guessing
>
there's a bug somewhere. Anyone know?
This sort of expression would work fine in Revolution. Not to be too much of a salesman, but Revolution is free for this sort of work. There is a limit on the length of script you can write in Transcript in the free version, but the limit does not apply to AppleScripts. You get an interface toolkit that runs on OS X, a built-in language that is faster and deeper than AppleScript, and you can run AppleScripts from it easily.
www.runrev.com
--
regards,
Geoff Canyon
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.