You need to provide us more information. Your code, your charStyle settings... Em 15 de jun de 2017 2:42 PM, "D_Scout" <forums_noreply@adobe.com> escreveu: Adobe Community <https://forums.adobe.com/?et=watches.email.thread> GREP style fill color problem criado por D_Scout <https://forums.adobe.com/people/D_Scout?et=watches.email.thread> em *InDesign Scripting* - Visualize a discussão completa <https://forums.adobe.com/message/9649810?et=watches.email.thread#9649810>
... View more
Sorry. I'm not clear with what I need. I need to get rid of those missing links. In fact, there is no link, but ID running as service do the process, but shows an error pointing to the txt file used by the script that was ran...
... View more
Hello, there. I'm having troubles with some files, when ID processes them. In the last one I figured out a pattern: I ran a script that uses a txt file as reference to make find/changes searches. The error points to this file. But it's not linked, it's not showed in the links panel, nor in the structure tree. PS: ID is running as ISS (service). Any ideia? Thanks. Regards from Brazil.
... View more
var words = app.selection[0].parentStory.words; var faux = []; for (var i=0; i<words.length; i++) { if (words.horizontalScale > 100) { faux.push(words.contents); words.fillColor = app.activeDocument.colors.itemByName("Yellow"); //~ app.select(words); } } alert("Found words:\r" + faux.join("\r")); It's a good first step.
... View more
It's really related to the Win10 Creators update. I'm using a different notebook, that works fine with ID CS6. Today, it's updated to the Creators update and then... boom! The adobe_licutil.exe error is back!!! I already tried to reinstall CS6 using CC App. No success. The error remains. Any other suggestion?
... View more
I made a copy of my indk file and set it as read-only. So I made a short script to toggle between the default set and my read-only set. Until now, it's working for me...
... View more
if(usedFonts.status != FontStatus.NOT_AVAILABLE) You're checking if the usedFonts are NOT (!=) NOT_AVAILABLE I think you need to check if it's available. Right? So, just check if the usedFont are NOT_AVAILABLE. if(usedFonts.status == FontStatus.NOT_AVAILABLE)
... View more
As far as I know, the code "FontStatus.INSTALLED" will check if the font is installed in the current machine. ​If you comment this section of your code, is the PDF exported correctly?​ PS: to comment an entire section you can put "//" in front of each line or /* in the beggining and */ in the end of the section you want to comment.
... View more
Hard to find a pattern. If you want to remove the middle text, you can try to find texts between " / text / " and replace it for " / ". To use GREP find/change you must have a pattern...
... View more
It's always in this format? Language_1. / Language_2. / Language_3. (text,point,space,slash,space,text,point,space,slash,space,text,point)
... View more
So, make a check. Point your InsertionPoint into the paragraph that is setted to Spanish and run an alert code to confirm the language's name. alert(app.selection[0].appliedLanguage.name); and then, use the result in between " to your find/change code.
... View more
Yes. But the code as I sent you, will only work with one text frame selected. It'll make the find/change process to all entire parentStory in the selected text frame. I'm clear? Sorry my bad English.
... View more
Undestoor. You want to remove texts within textFrames, not just remove or change the language... So, you can run a script that selects the texts in the undesired languages and then change its contents to none (""). var mySel = app.selection[0].parentStory; app.findGrepPreferences = app.changeGrepPreferences = app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing; app.findGrepPreferences.appliedLanguage = '$ID/Spanish'; app.changeGrepPreferences.changeTo = ''; mySel.changeGrep(); app.findGrepPreferences = app.changeGrepPreferences = app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing; Try this.
... View more
I would try only the first improved lines... 1. var page1 = app.activeDocument.pages[0].name; 2. var page2 = app.activeDocument.pages[1].name; 3. with(app.pdfExportPreferences){ 4. pageRange = page1, page2; 5. } Em 29 de mai de 2017 11:10 PM, "adobe1kenobe066" <forums_noreply@adobe.com> escreveu: Adobe Community <https://forums.adobe.com/?et=watches.email.thread> Defining page range for PDF export resposta de adobe1kenobe066 <https://forums.adobe.com/people/adobe1kenobe066?et=watches.email.thread> em InDesign Scripting - Visualize a discussão completa <https://forums.adobe.com/message/9543402?et=watches.email.thread#9543402>
... View more
Don't use this script. Just save the code below as .jsx file and use it in InDesign. It'll export just pages 1 and 2 from the activeDocument to PDF. If you want to change the destination folder, just write it where I put "~/Desktop/..." You can change the PDF name to your activeDocument file name too... improving the script code. #target indesign with(app.pdfExportPreferences){ pageRange = "1,2"; } var myPDFExportPreset = app.pdfExportPresets.item("[High Quality Print]") app.activeDocument.exportFile(ExportFormat.pdfType, File("~/Desktop/myTestDocument.pdf"), false, myPDFExportPreset);
... View more