• 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: satimage: how to change using regexp, returning the whole string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: satimage: how to change using regexp, returning the whole string


  • Subject: Re: satimage: how to change using regexp, returning the whole string
  • From: Emmanuel <email@hidden>
  • Date: Fri, 15 Jul 2005 18:54:01 +0200

At 4:53 PM +1000 7/14/05, Tim Bates wrote:
set txt to change "x" into "X" in "123x456" starting at 3 with regexp
but, txt is now set to "X456", in other words, only the string past "starting at"
is returned.

We have to apologize. We implemented the "starting at" option for only one purpose, which is related to better handling the "replace all" in a text window in Smile - in other words, mainly for Smile's internal usage.


"starting at" was not designed to work with AppleScript variables nor files. It would be a good idea, I admit, but it's not in our current plans.

So, an option could be to open the file in Smile, perform the replace and save the file, but that's not very fast (one single window in Smile allocates 1 MB ca. in Window Server.)

Emmanuel
_______________________________________________
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


References: 
 >satimage: how to change using regexp, returning the whole string (From: Tim Bates <email@hidden>)

  • Prev by Date: Re: rendering HTML on the fly with Webkit
  • Next by Date: what happened to Mail's scripts menu?
  • Previous by thread: satimage: how to change using regexp, returning the whole string
  • Next by thread: Unique ID of a Remote Computer
  • Index(es):
    • Date
    • Thread