Re: How to Do This Without Smile or Satimage
Re: How to Do This Without Smile or Satimage
- Subject: Re: How to Do This Without Smile or Satimage
- From: Rick Gordon <email@hidden>
- Date: Tue, 28 Feb 2012 22:29:53 -0800
...And this works better:
set vCommand to "sed -E 's/^(.+)indent(.*)$/\\1flush\\2/g' <<< " & quoted form of vParaStyleNameIn
Rick Gordon
------------------
At 10:25 PM -0800 2/28/12, Rick Gordon wrote:
>OK, this works -- basic regex:
>
>set vCommand to "sed 's/^\\(.*\\)indent\\(.*\\)$/\\1flush\\2/g' <<< " & quoted form of vParaStyleNameIn
>
>Rick Gordon
>
>------------------
>
>At 9:48 PM -0800 2/28/12, Rick Gordon wrote:
>
>>Good question, though I can probably manage with ASCII-aware here.
>>
>>I've got this working...
>>
>> set vCommand to "sed 's/indent/flush/g' <<< " & quoted form of vParaStyleNameIn
>>
>>...but I haven't figured out how to get regexes working in it:
>>
>> set vCommand to "sed 's/(.+?)indent(.*)/\\1flush\\2/g' <<< " & quoted form of vParaStyleNameIn
>>
>>...returns the error: "sed: 1: "s/(.+?)indent(.*)/\1flu ...": \1 not defined in the RE"
>>
>>And I'm just winging it without a proper grounding in sed syntax.
>>
>Rick Gordon
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden