• 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: can I do this better?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: getting my IP on OS x
  • Next by Date: Re: BUG: Where's Application Support?
  • Previous by thread: Re: can I do this better?
  • Next by thread: AS2Java and Java2AS ... JDirect?
  • Index(es):
    • Date
    • Thread