Let me introduceone of myProjects - DialogBuilder for ExtendScript.
Designerfocused onautolayout dialogs and generates code as ScriptUI-resources strings.
small video on YouTube
probably it will be interesting to someone...
sorryfor my english : )
Let me introduceone of myProjects - DialogBuilder for ExtendScript.
Designerfocused onautolayout dialogs and generates code as ScriptUI-resources strings.
small video on YouTube
probably it will be interesting to someone...
sorryfor my english : )
Hello
I made a 'mistake' today, wondering if there is anything to do about it
Is there a way to rethread all text frames?
I.e., break the current threading, and then rethread each page's frame to the next?
Any help and guidance will be appreciated
Thanks
Davey
When I do some alteration in the financial document, I have to underline it aim to show what I have amend, those underline was called “markup“. And then print (hard copy) and gen (PDF) the amendment, which mean I have to print and gen the underline text (or called markup text) after alteration.
sample pic:
If:
Client request a new version of markup which mean I have change the last markup color (last amendments’ underline color) into “back” and then make new markup to “red” like this:
What I want:
is that possible to write a script for print and gen the markup text only in the all open document
and I want two versions
1) gen all the markup text no matter what the underline color
2) gen the red color of markup text
thanks!
I have a dialog have 2 button, when I click button 2 can't response the action "print", why?
below is my Script
var w1 = new Window ('dialog', 'Test', undefined, {resizeable: true});
var myText = w1.add('edittext', undefined, 'TEST', {multiline: true});
myText.alignment = ['fill', 'fill']
myText.minimumSize = [300, 30]
w1.location = [55, 140]
var myButton1 = w1.add('button', undefined, 'Button 1')
var w2 = new Window ('dialog');
var panel1 = w2.add ('panel');
var panel2 = w2.add ('Group');
var myButton2 = panel2.add('button', undefined, 'myButton2');
panel2.alignChildren ='right';
myButton1.onClick = function() {
w2.show();
}
myButton2.onClick = function() {
app.activeDocument.print();
}
w1.show();
Hi,
I have a large document with lots of telephone numbers as a dps folio for smartphones. Is there a way that indesign can convert telephone numbers to hyperlinks automatically like you can with email adresses.
Now i have to do this one by one copy & paste the telephone nummbers in the hyperlink box with tel: in front of the telephone number.
If anyone knows it will help me alot.
Thank you in advance for any help you can provide.
Ron
I would like to know the event listener method to catch if user add/delete elements from the existing file.
Hello all indesign script Members
where I work we use a permanent folder structure for an example
a jobnumber called "123123"
I have wrote a little interface called interface.jsx, this file is saved and located in
123123/scripts/interface
I want my interface to navigate two folders up
to 123123/source/ creates a folder called "hej" so result is "123123/source/hej"
then I can pick from a little dialog box the folder 123123/source/a/ copy all .indd files to the folder hej (or any other folder I choose from the dialog box)
I want the script to know the active path instead of whole locations because, we have different project numbers all the time.
then run an extern script called hej.jsx
the best should be also if the script could chose 123123 as default jobnumber too.
Please could someone help me to script this?
/get started I am very newbie
Thank you so much in advance
All Adobe Members
Hi
Please refer below screen shot.
In my Indesign file text box, tables figures are in separate sections. I created library item Box and Table. Every time I picked my library item Box and flow the text by manually.
Now I would like to flow the Box text in the Box library item and table text flow the table library item by script.
In this file contains 15 tables and 20 boxes. Totally 30 chapters in a Book.
Thanks in advance
ASHRAM
Hi there, I wrote a batch-processing script for find change queries and thought I share it with you. You can get it over here
You can process GREP, TEXT, GLYPH and OBJECT searches.
While creating books in InDesign with several documents we always come across some find change queries that need to be used again, and again, and again. To make this process easier you can just grab their names and put them into a list. The script will than try to process all your queries in one click.
text.files = []
, grep search goes into grep.files = []
and so on. Make shure to remove the .xml from the filename. You can find these files on:Tom's Obvious, Minimal Language is a simple markup language that makes settings human readable. It is still in development and may change a lot. But still. It is a pretty easy language and can be learned by anyone.
The basic toml filer looks like this:
# these are the basic settings
# the MUST be there
do_text = true
do_grep = true
do_glyph = true
do_object = false
# now the file names
# they have to be in one line
# the toml specs say you can break lines in arrays
# but the toml.js does not allow that at the moment
[text]
files = ["my_first_text_find_and_change","another one"]
[grep]
files = ["somegrepsearch", "find tabs", "something else"]
[glyph]
files = []
[objects]
files = []
With the do_text
, do_object
, do_grep
and do_glyph
you can define if the script should do the corresponding find and replace. Set them to true
or false
.
In the [text]
,[grep]
,[glyph]
and [objects]
areas you can define the filenames that should be processed. Make sure the filenames are written right. If there is a file mentioned that does not exist the script will throw an error. It will try to process all the .xml files it can find.
!IMPORTANT! you MUST remove the .xml from the filename in the list as shown above.
The Script is here --> https://raw.github.com/...find-and-replace.jsx
The basic .toml file here --> https://raw.github.com/...ind-and-replace.toml
The Readme here --> https://github.com/...lob/master/README.md
And the whole package here --> https://github.com/...e/archive/master.zip
Hello guys I have no idea why my script doesn't work the way I want,
I want my script to work this way, when I pick a folder from the dialog my script choose all the .indd files
and put them in a specific location
See code below
var myFolder = Folder.selectDialog ('Choose a Folder'); $.writeln('-------------------------------\r' + myFolder.displayName + '\r-------------------------------\r'); if(myFolder != null){ var myFiles = myFolder.getFiles('*.indd'); for (i = 0; i < myFiles.length; i++) { var myFile = myFiles[i]; // myTargetFolder = "/Kommuni/LaRe/LareAUTO/341542" // put files here myFiles[i].copy ("/Kommuni/LaRe/LareAUTO/341542/"); // $.writeln(myFile.displayName); // just for write the data in console } }
Can someone help me to put a correct code here
Thank you in advance
Cheers all members
Hello,
I found the thread that contains the Applescript for this, but would love to have a Javascript that works the same. Anyone have or know of one for ID CS5 that will apply all clipping paths for a group of objects at once?
Thanks in advance, as always
Andy
Hi,
My goal is to insert all the pages from an illustrator file (javascript) into an Indesign document and get a handle on them (so I can spread them on different pages, etc). That needs to happen without user intervention.
I am looking at the API documentation was trying use the place() method from Page, but that one only places the first page it seems (i.e. the Array returned has size 1). I noticed the actual Indesign client prompts you to insert every AI page.
So, I repeat the question, how do I get (in javascript) a handle on all the pages from the illustrator file?
thank you!
Cristian
Hello All!
I've been setting up a FindChangeByList query file with a couple dozen grep searches. It works well, but I'd like to rearrange the paragraph styles in my template using style groups within style groups.
The reason for this is that we won't be actively applying most these automatically applied styles later in our workflow. I'll be handing the file over to some other people who are a little slow navigating Indesign. If I can bury everything but the vital styles, it would be easier and faster for my co-workers to find the styles they need to finish up their work.
So my question is this: How do I reference style groups within style groups in a FindChangeByList query?
Here's an example what I'm using for a style in a style group:
appliedParagraphStyle:app.activeDocument.paragraphStyleGroups.item("Introduction").paragraphStyles.item("y - Intro Title - Preface, Foreword")
Which works when I insert it into my query:
grep {findWhat:"^Introducción al curso(?=\\r)"} {changeTo:"Introducción", appliedParagraphStyle:app.activeDocument.paragraphStyleGroups.item("Introduction").paragraphStyles.item("y - Intro Title - Preface, Foreword")} {} //Introduccion change and apply style
What would I do if I put that style group inside a new style group named "Technical"?
Like this:
Thanks for your help!
Amy
Hey guys,
I am trying to create a keyline around the document instead of using the crop mark. I would like to automate this task for each documents for any size I create. Does somebody tried to set up a applescript for that?
I found a bunch of script about how to create a stroke for text frame but I don't know how to create a black stroke in the size of my artboard.... Help me please!
Thanks
Hi,
If i trying to get my .indd path, it is giving the path with %20 and / backslash and ":" also missing.
How can i get my path with exact format because i need to pass the path as a argument to a bat file.
Please let me know if any idea u have.
I am trying the following code
var myMenuAction = app.menuActions.item("$ID/Untag Text");
alert(myMenuAction.isValid)
This gives an alert of "false" if its executed after the preferences are trashed, however if i select some tagged text and right click so that the context sensitive menu containing the "Untag Text" is visible then the above code snippet gives "true" as an alert and remains so that way unless the preferences are again trashed. I am not sure why this is happening and how is this implemented in InDesign, somehow clicking once to show the menu creates that object of MenuAction and then it's accessible. Does preferences somehow preserve this information, are these objects serialised in preferences?
It will be very helpful if the august members of this forum could shed some light on this query and how best to make sure that the above line of code works independent of the preferences state.
Thanks,
MJ
Hello all good Adobe Members!
I have wrote a function in a script called "interface.jsx"
Our project and folderstructure is always the same.
my "interface.jsx" is saved in "/kommuni/LaRe/LareAUTO/341542/scripts/interface/interface.jsx"
here is my code for interface.jsx
See code below
function CopyStep1() { var myFolder = Folder.selectDialog ('Choose a Folder'); if(myFolder != null) { var myFiles = myFolder.getFiles('*.indd'); for (i = 0; i < myFiles.length; i++) { var myFile = myFiles[i]; destFile1= new File("/Kommuni/LaRe/LareAUTO/341542/source/batch1/" + myFile.name);// to create an object destFile2= new File("/Kommuni/LaRe/LareAUTO/Backup/341542/batch1/" + myFile.name);// to create an object myFiles[i].copy (destFile1); myFiles[i].copy (destFile2); } } }
How do I make my script always know my folderstructure?
I have got a Filedialog,
if you see on the line 10 and 11, I have written the full paths, but I want to filter the filepath
so my script just goes some steps up to root(341542)
when I run the script it opens a dialog window and
I want my dialog window shall be on /kommuni/LaRe/LareAUTO/341542/ as default.
we know the interface is in "/kommuni/LaRe/LareAUTO/341542/scripts/interface/interface.jsx"
so just go back to "/kommuni/LaRe/LareAUTO/341542/"
how do I make this?
Thank you in advance
all Adobe Members
Hi, every one,
I am looking for a script can do this:
If a slection a range of cell, the script can:
(1) let the even number of column apply to character style “Color+Bold”
(2) fill with colour of “\d% of PANTONE .+”
before modify:
after modify:
SOMETIMES NEED TO
(3) fill with boundary line colour of “PANTONE .+”
John
Hi All,
I need to pull out the following marginal tags in XML jobs.
I hope problem is in coding 18th line.
Screenshot:
Coding is below:
var myDoc = app.activeDocument; var myLib = app.libraries[0]; var myXMLElement = app.activeDocument.xmlElements[0].evaluateXPathExpression("//marginalnote"); alert(myXMLElement.length); for(i=myXMLElement.length-1; i>0; i--) { var myText = myXMLElement[i].texts[0]; alert(myText.contents) var myLibraryAsset = app.libraries[0].assets.item("box").placeAsset(myXMLElement[i].insertionPoints[-1])[0]; var myTextMove = myXMLElement[i].texts[0].move(LocationOptions.AT_END, myLibraryAsset.insertionPoints[0]) //Problem in this only myLibraryAsset.appliedObjectStyle = myDoc.objectStyles.item("Box") myLibraryAsset.fit(FitOptions.frameToContent) }
Thanks in advance
Siraj
Hi All,
New to XML workflow, just for learning only.
How can we get the values by using xml attributes.
Got error by using "//emphasis[@aid:cstyle = ITAL]"
Now the myXMLItal.length comes 0.
Coding is below:
var myXMLItal = app.activeDocument.xmlElements[0].evaluateXPathExpression("//emphasis[@aid:cstyle = ITAL]")
alert(myXMLItal.length)
Screenshot:
Thanks in advance
Siraj