Skip to main content
karthikS
Inspiring
July 9, 2016
Question

How to find out the web address bad breaking

  • July 9, 2016
  • 1 reply
  • 394 views

Dear Friends,

I need to script for find and highligth the web address bad breaking words only (last line). I have place the screenshot below

Please suggest friend. How to find?.

Thanks in Advance.

This topic has been closed for replies.

1 reply

Jump_Over
Legend
July 9, 2016

Hi,

karthiks94217840 napisał(-a):

... How to find?...

I can advice how to create:

1. set app.findGrepPreferences.findWhat to any 'url-oriented' string find by Google

2. use mFound = app.activeDocument.findGrep() to collect all matches into array

3. iterate through mFound to check its 'lines' property ==> if higher than 1

Jarek

karthikS
karthikSAuthor
Inspiring
July 9, 2016

Hi Jump,

Thanks for your replay.

@sorry: I can not't understand in the first step.

Please give one example code Jump.

Thanks in Advance.

Jump_Over
Legend
July 9, 2016

I ment to use a string in 'findWhat' property which best match your target. (Google is a good tool to find)

I.e. does

Find What: https?://.+?\s

find all your url occurences?

Jarek