• 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: Help with find text command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Help with find text command
      • From: "Wallace, William" <email@hidden>
References: 
 >Re: Help with find text command (From: "Wallace, William" <email@hidden>)

  • Prev by Date: Re: Help with find text command
  • Next by Date: Re: Help with find text command
  • Previous by thread: Re: Help with find text command
  • Next by thread: Re: Help with find text command
  • Index(es):
    • Date
    • Thread