Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

FindChangeByList.jsx italics issue

New Here ,
Jun 28, 2018 Jun 28, 2018

Hello all,

I have begun using the FindChangeByList script recently and it has really streamlined my workload. But there is one aspect that I cannot figure out, how to change local style italics to a character style. This is the line that I found on the forum and people say it works, but not for me.... Any suggestions? Please and thank you all in advance.

grep {findWhat:".",fontStyle:"Italic"} {changeTo:"$0",appliedCharacterStyle:"italic"}{includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, wholeWord:false, caseSensitive:false, kanaSensitive:true, widthSensitive:true, ignoreKashidas:true, ignoreDiacritics:false}

TOPICS
Scripting
629
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 29, 2018 Jun 29, 2018

Is the italic style of your font actually called "Italic", and not something like "56 Italic" (Frutiger), "Oblique" (Helvetica), or "Book Italic" (countless others)?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 29, 2018 Jun 29, 2018

Thank you for the reply.

The font style (the findWhat entry) is called 'Italic' (per using the find/replace feature searching basic character formats) and my character style (the changeTo entry) is called 'italic'. The character style is not is a subgroup (I mention this because it is brought up in other threads as a possible problem).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 03, 2018 Jul 03, 2018

Hi tom,

have you checked if the separating character in the line is a TAB (s. screenshot).

Bildschirmfoto 2018-07-03 um 13.09.50.png

Thanks Stefan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 03, 2018 Jul 03, 2018
LATEST

Here is the info from the FindChangeTxt:

//This data file is tab-delimited, with carriage returns separating records.

//

//The format of each record in the file is:

//findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description

//

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines