Re: satimage: how to change using regexp, returning the whole string
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