• 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 23:40:32 -0800

>>I want a solution that allows complete regular expression capability without requiring user-maintained external resources. And I don't want to have to operate on an external file.
>
>I'm curious about what you mean exactly, especially by "operate on an external file".

What I was referring to was based on my not being aware of how to run a regular expression via a shell command that operated on a passed AppleScript variable, rather than a physical file. Now I understand the syntax for doing that -- something on the order of:

set vCommand to "perl -pe  's/^(.+?)indent(.*)$/\\1flush\\2/g' <<< " & quoted form of vParaStyleNameIn

--

>>It's a drag that AppleScript does not have regular expression management built in (or part of Standard Additions). Just about every other modern language does.
>
>But then most of them fall down rather badly when it comes to addressing applications like InDesign. Which facility would you rather have?

I want it all, of course :-) No, I want AppleScript, with it's exceptional ability to interoperate among [scriptable] applications, but with all the other goodies. Now that I see how to integrate small Perl scripts which can be configured to operate on passed AppleScript variables (rather than a physical file), I'm a happy camper again.

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


  • Follow-Ups:
    • Re: How to Do This Without Smile or Satimage
      • From: Shane Stanley <email@hidden>
References: 
 >Re: How to Do This Without Smile or Satimage (From: Rick Gordon <email@hidden>)
 >Re: How to Do This Without Smile or Satimage (From: Shane Stanley <email@hidden>)
 >Re: How to Do This Without Smile or Satimage (From: Rick Gordon <email@hidden>)
 >Re: How to Do This Without Smile or Satimage (From: Shane Stanley <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