• 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
regexp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

regexp


  • Subject: regexp
  • From: Robert Poland <email@hidden>
  • Date: Tue, 6 Sep 2005 18:50:31 -0600

Hi,

The script;

set w to window 2 -- a text window
set bounds of w to {0, 44, 588, 517} -- this line works
change {"^[[:space:]]+", "[[:space:]]+$"} into {"", ""} in w with regexp

gives me the error"Can't make {"^[[:space:]]+",[[:space:]]+$"}into type string"

What am I doing wrong?

What is the function of the colons?

What form would text take in the find area?

I would appreciate an example of replacing "this" with "that".

Tia,
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: regexp
      • From: Emmanuel <email@hidden>
    • Re: regexp
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: NSInternalScriptError
  • Next by Date: Re: Creating a folder on the desktop
  • Previous by thread: Re: NSInternalScriptError
  • Next by thread: Re: regexp
  • Index(es):
    • Date
    • Thread