Re: can I do this better?
Re: can I do this better?
- Subject: Re: can I do this better?
- From: Nigel Garvey <email@hidden>
- Date: Mon, 17 Jun 2002 11:11:32 +0100
has wrote on Sun, 16 Jun 2002 13:48:49 +0100:
>
In AS, it would be:
>
>
set tString to text (word 1) thru (word -1) of tString
That's good! I didn't think it was possible to use 'thru' when the first
parameter was an expression like 'word 1' or 'paragraph 4'. But it seems
you can if you parenthesize it. I may switch to that from 'from ... to'.
Its one character more to type, but it looks nice. :-)
>
[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?
Extended parameters like that would be great! :-)
NG
_______________________________________________
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.