Re: Help with find text command
Re: Help with find text command
- Subject: Re: Help with find text command
- From: Philip Aker <email@hidden>
- Date: Fri, 03 Aug 2007 09:06:32 -0700
On 2007-08-03, at 01:57:55, Ed Stockly wrote:
No need for shell scripting or RegEx on this one
I stand by that.
I already knew that it's possible to do this with "pure AppleScript"
because I made one up to test so I wouldn't ask you to do the
impossible :-)
>>philip>>The script found the two "legal" ISBN-10s in the 't'
variable.
There are four "legal" ISBN-10s in the 't' variable. Which are you
finding and which are you not finding?
There were only two legal IBSN-10s in the previous "t" variable I
posted. The other two were illegal. One had an extra "z" on the end
and the other was embedded in a larger "word" that looked like a
bizarre email address.
Still no go. I'm sure it's line breaks, but I don't know enough
about shell scripting to fix it.
Most likely it's your emailer settings. Compared to everyone else on
the list, even those not using Mail.app, your quoting is also non-
standard.
I've attached a new version of the variable "t" (and it's equivalent
in a Tcl script so you can verify that they are the same text except
for quoting conventions). Now there is a 3rd legal ISBN which is not
mapped to a new ISBN-13.
Actually your challenge didn't mention inserting them in the
original text,
That was in one of William's messages where he specified his needs.
In my script the timing starts when the user clicks "OKAY". So that
shouldn't be an issue.
Please don't use (choose file) for this test because we'll be timing
it via 'time' from Terminal to get the microsecond times. I'll help
you optimize the AppleScript if need be.
Plus, I assume we're both doing complete solutions, right?
No. We're just testing "pure AppleScript" vs pure Tcl in this test.
That is, AppleScript doesn't call 'do shell script' and Tcl doesn't
call 'AppleScript'
Output the HTML file on the user's desktop.
Philip Aker
email@hidden
_______________________________________________
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