• 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: "Wallace, William" <email@hidden>
  • Date: Wed, 01 Aug 2007 16:14:27 -0500
  • Thread-topic: Help with find text command

The overview of what I'm doing is:

Search through all the text flows in a bunch of InDesign layouts and
wherever I find a 10 digit ISBN, look it up in a spreadsheet and find the
current price, convert the 10 digit ISBN to a 13 digit ISBN and add both the
new price and the 13 digit ISBN to the text flow immediately after the
original ISBN.

As for offset start and stop vs offset start and length, well you can always
do text items x thru (x + length) of someText.

--
B!ll

> From: Philip Aker <email@hidden>
> Date: Wed, 01 Aug 2007 13:44:51 -0700
> To: "Wallace, William" <email@hidden>
> Cc: Geekosaurus Applescriptus <email@hidden>
> Subject: Re: Help with find text command
>
> 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: Philip Aker <email@hidden>
References: 
 >Re: Help with find text command (From: Philip Aker <email@hidden>)

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