Forum Replies Created
-
AuthorPosts
-
Kai Rübsamen
MemberChris, this seems to be possible. Since the solution depends on your needs, such a script must be written for you and the scripter should be paid for that.
Kai
March 17, 2017 at 5:36 am in reply to: How to Change table cell based on a textbox value, per page? #92912Kai Rübsamen
MemberAre, without studying your code: You are right! “myDoc.findText()” find everything in the document and not per page. The problem is: There is no “per page”-option via scripting. So you need to loop through all pages, find your labeled textframe on the current page, find one or more tables on the current page. Then you have the choice, either compare the contents of the cells or do it with fc in the whole table.
Kai
Kai Rübsamen
MemberHi Luiz,
the defaults of a textframe are based on the [Basic Text Frame] object style. If you change this style within a document, all new textframes will get the new gutter. If you change the style when no doc is open, all textframes in all new documents will get the gutter.
Kai
March 14, 2017 at 1:34 am in reply to: How to resize text frame content with margin/layout changes? #92840Kai Rübsamen
MemberHi Chris,
what does “based on my style-selected Master Pages” mean?
I would assume, that you must activate Layout Adjustment per document. Then change one document and try to sync all documents in the book with this first doc.
Kai
Kai Rübsamen
MemberWhat is wrong with Peters version?
(function () { var curDoc = app.activeDocument; // reset everything to 'A-Master' curDoc.pages.everyItem().appliedMaster = curDoc.masterSpreads.itemByName("A-Master"); var allParas = curDoc.stories.everyItem().paragraphs.everyItem().getElements(); var nParas = allParas.length; for (var i = 0; i < nParas; i++) { var curPara = allParas[i]; if (curPara.appliedParagraphStyle.name == "h1") { var parPage = curPara.parentTextFrames[0].parentPage; parPage.appliedMaster = curDoc.masterSpreads.itemByName("B-Master"); } } var allPages = curDoc.pages.everyItem().getElements(); var nPages = allPages.length; for (i = 0; i < nPages; i++) { var curPage = allPages[i]; // check, if the page is either empty or the first text frame has no contents if (curPage.pageItems.length == 0 || curPage.textFrames[0].contents == "") { curPage.appliedMaster = curDoc.masterSpreads.itemByName("B-Master"); } } }());March 13, 2017 at 3:01 am in reply to: How to resize text frame content with margin/layout changes? #92822Kai Rübsamen
MemberIt should work if the textframes are aligned at the margins and if you turn on “Enable Layout Adjustment” in the Margin and Columns panel. Then change the margins on the masterpages.
Kai
Kai Rübsamen
MemberI`ve no idea, if a script started in InDesign could rename a file on a HD while the file is open, even this is possible on a Mac in the UI? But a script could surely open a file, read the contents of a specific character style and save a copy of that file in a specific location.
Kai
Kai Rübsamen
MemberHi Tommy,
perfect post: Friendly hello and a example. Well done!
Since your parts are tagged: Why not apply a paragraph style with Garamond to the whole paragraph and a character style for the Japanese font? The character style could then applied to the tag with the mapping feature and a grep-style like \D >> everything except digits.
Kai
Kai Rübsamen
MemberInDesign-tables are fully scriptable. You can find some scripts here at indesignsecrets and in the Adobe scripting-forum.
E.g. if you want to set all cell heights in all tables in your document:app.activeDocument.stories.everyItem().tables.everyItem().rows.everyItem().height = "7mm";
Kai
Kai Rübsamen
MemberTextwrap? Screenshot?!
February 18, 2017 at 8:14 am in reply to: Find/Change single "end of paragraph" breaks but not double? #92283Kai Rübsamen
MemberHi Jeremy,
if you want to have real control, I would try it this way:
1.
Find what: (?<!~b)~b(?!~b)
Change to: \x202.
Find what: \x20{2,}
Change to: nothing3.
Find what: ^~b
Change to: nothingSome explanation: It’s always good practice to have an overview. So there are several steps needed. First remove those unwanted returns (1). Since \r will also find pagebreaks, use ~b instead. So the first one will find a return, that is not preceeded or followed by a return. Since you cannot guarantee, that there is a space already or not, insert a space and remove double space if needed (2). I assume, that you apply a para style with space after. So remove the empty return (3)
Kai
Kai Rübsamen
MemberHi Masood, I would think, this is possible. A script could collect the content and write it to a csv. A problem could be, that the para styles do not correspond with your datafields. So this need a little love.
However: This is a request for a paid script!
Kai Rübsamen
MemberMasood, it seems, that you do this without a XSLT. I’m pretty sure, the removing of the tabs could be made simpler. But your video looks interesting.
Could you provide demo-files as well? > 10 lines would be enough.
Thanks
KaiKai Rübsamen
MemberHi Dan,
maybe this is helpful: https://forums.adobe.com/message/4073579#4073579
For me this is working: curDoc.paragraphStyles[3].appliedLanguage = “$ID/[No Language]”;
Kai
Kai Rübsamen
MemberCreate the image as separate rectangle and group it with your textframe. Don’t use a separate rectangle and a textframe. The textframe can have a dark background as well ;-)
Group your 2 frames and paste into a ellipse.
Kai
-
AuthorPosts
