Re: How to adapt a Jongware's script for page numbers?
Hi, Looks like you need to modify this line:...app.findGrepPreferences.findWhat = "(\\b\\d+\\b)|(?<=-)\\d+";... Jarek
View ArticleRe: How to adapt a Jongware's script for page numbers?
My godness, is perfect.This Grep formulae is a piece of cake! The fake example attached is nonsense but the solution is real. Thanks a lot.My monday will begin benignly happy.
View ArticleRe: It is possible to script a decimal approximation in Indesign?
Trevor, Thanks again for the whole script skeleton!(I must confess that my programming skills are just for minor grep holydays tasks)It is a precious piece!Not to mention free of charge, Vat, taxes,...
View ArticleRe: I'm looking for a GREP solution for superscripting a Service Mark
This one seems to be working, restricting to word boundaries: • Search for:SPACE \b(sm)\b • Change to:$1 • Change format to supscripted Character Style
View ArticleRe: How to show/say top level group/directory
Awesome thank you that worked a treat... just wondering how would i go about showing multilevel groups? Do i just add a '/' or '\'? Also, and i know this is going a beyond the scope a little, how would...
View ArticleRun multiple scripts on a book file
Hi all,So through the help of this forum and online articles i've slowly managed to put my script together, well actually for them to work it's 2 scripts (3 soon hopefully). There are two parts to my...
View ArticleRemove all character styles unless in group 'X'
Hi again everyone First a massive thanks to everyone who has helped me so far... now onto what i'm trying to do I'm trying to put together a script that will delete all character styles that are not in...
View ArticleHow can traverse the xpath attribute name having namespace?
tell application "Adobe InDesign CS5" set Xpath to {"//*/ext-link[@xlink:href !='']"} set myXPath to {Xpath} set myRuleProcessor to make XML rule processor with properties {rule paths:Xpath}...
View ArticleRe: Run multiple scripts on a book file
Both of your questions depend a lot on the scripts themsefls. for the first one, the simplest thing would be to make another script like this:function main(){ app.doScript(myFirstScript.jsx,...
View ArticleApplescript to add indesign cs6 docs to a book
Hi All. Please help. I need the applescript code to add indesign cs6 documents to an indesign book.
View ArticleRe: Remove all character styles unless in group 'X'
try this...var myDoc = app.activeDocument;var myStyleGroup = myDoc.characterStyleGroupsfor (var i = myStyleGroup.length-1;i>=0;i--){ alert (myStyleGroup[i].name) if...
View Articleapp.changeGrepPreferences.appliedParagraphStyle
Why does this work: function changeBoldToCharacterStyleBold(){ app.findGrepPreferences = NothingEnum.nothing; app.changeGrepPreferences = NothingEnum.nothing;...
View ArticleRe: app.changeGrepPreferences.appliedParagraphStyle
Possible answers:1) check for typos in the paragraph style name (maby space at the start or the end of the style's name?)2) is "Su_Para_*" in the root of the document, or in a style group?
View ArticleRe: app.changeGrepPreferences.appliedParagraphStyle
Hi, change it to:app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyles.item('Su_Para_*'); app.change...() should work across whole app (every opened docs). It need a...
View ArticleRe: app.changeGrepPreferences.appliedParagraphStyle
It is created inside a group, yes, if this means that the style appears in a folder inside the Paragraph Styles panel. The name of the group is Summary, how would I then put that into the line of code?...
View ArticleRe: app.changeGrepPreferences.appliedParagraphStyle
app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStylesGroups.item('Summary').paragraphSty les.item('Su_Para_*');
View ArticleRe: app.changeGrepPreferences.appliedParagraphStyle
I get the following error message: "Error Number: 55 Error String: Object does not support the property or method 'paragraphStylesGroups'"
View ArticleRe: app.changeGrepPreferences.appliedParagraphStyle
Use paragraphStyleGroups (one s too many).
View ArticleRe: app.changeGrepPreferences.appliedParagraphStyle
Hi, Typo: 'paragraphStyleGroups' Jarek
View Article