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: Wed, 01 Aug 2007 13:44:51 -0700
On 2007-08-01, at 12:44:21, Wallace, William wrote:
I will need the offset as well as the matched string. Satimage
returns a record with the offset, the length, and the matched string:
You'd have to up the regexp to a small script to get that from Tcl.
I'm not entirely sure what you want to do with the found text so it's
difficult to say whether or not you'd want to do it all in the Tcl
script or split the workload between it and AppleScript. For instance
Tcl regexp with index reporting naturally returns the starting and
ending offsets rather than the starting position and the length.
Sometimes that's a better format (like for 'text items x thru y of
someText') to work with.
However, I think "[[:digit:]X-]{13}" should produce what is needed in
the Satimage call.
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