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 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