Re: Regex substitute/replace function in Applescript?
Re: Regex substitute/replace function in Applescript?
- Subject: Re: Regex substitute/replace function in Applescript?
- From: Randall Perry <email@hidden>
- Date: Sat, 09 Oct 2004 12:13:20 -0400
on 10/9/04 10:14 AM, Graff at email@hidden wrote:
> The easiest way to do this is the "paragraph" command and the text item
> delimiters
> ----
> set theText to "some text" & return & "more text"
> set pText to paragraphs of theText
> set theDelims to AppleScript's text item delimiters
> set AppleScript's text item delimiters to ascii character 10
> set newText to pText as text
> set AppleScript's text item delimiters to theDelims
> ----
>
That did it.
Thanks :J)
--
Randall Perry
sysTame
Xserve Web Hosting/Co-location
Website Design/Development
WebObjects Hosting
Mac Consulting/Sales
http://www.systame.com/
_______________________________________________
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