• 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: How to Do This Without Smile or Satimage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How to Do This Without Smile or Satimage
  • Next by Date: Re: How to Do This Without Smile or Satimage
  • Previous by thread: Re: How to Do This Without Smile or Satimage
  • Next by thread: Re: How to Do This Without Smile or Satimage
  • Index(es):
    • Date
    • Thread