Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Browsing all 37788 articles
Browse latest View live

Re: Create textFrame along side Rectangle

Hi, I think there is no 1-line code solution.I suggest to calculate a textFrame geometricBounds regarding to rectangle geometricBounds and create it with [y,x,Y,X] or move existing one to [x,y]. So it...

View Article


Re: Folder.getFiles Multiple Filters Mask

@Gonterman1201 – for me on Mac OSX 10.6.8 it is working like that: Presume there is a folder named "Test" in the top folder of my internal harddisk and one or some files with suffix "jpg" in it. var...

View Article


Re: Replace existing files.

Well!, How do i add the below piesces in my first blog to replace existing files. Files.copy(Paths.get(tempFileName),Paths.get(fileName),...

View Article

Re: CS5.5 AnchoredObjectSettings not working like it did under CS2

I cannot say if your value for "anchoredPosition" is resolved to "AnchorPosition.ANCHORED" or not. Maybe you get into trouble with the rest of your properties because the actual "anchoredPosition" of...

View Article

Re: Export Tagging

Here is an example: Main();  function Main() {    var i, parStyle, map,    doc = app.activeDocument,    parStyles = doc.allParagraphStyles;        for (i = 2; i < parStyles.length; i++) {// i = 2 to...

View Article


Empty Folder.

Hi Forum. Can i get help to remove empty folder. I used this one, but nothing been deleted.  var myFolder = Folder("/Users/Wander5/Desktop/ID Links/").getFiles("*");for(i=0; i>myFolder.length; i++)...

View Article

Re: Empty Folder.

Try this, var folder = Folder("/Users/Wander5/Desktop/ID Links/")var myFolder = Folder("/Users/Wander5/Desktop/ID Links/").getFiles("*");if(myFolder.length ==0){folder.remove();}  Vandy

View Article

Re: Empty Folder.

Hi Vandy88, I tried with your script. and still the empty folder is not deleted..

View Article


Re: Empty Folder.

Try like this… #target indesign  var folder = Folder( Folder.desktop + '/ID Links' );  var myFiles = folder.getFiles( '*' ); //$.writeln( myFiles.length ); if ( myFiles.length == 0 ) { folder.remove(); }

View Article


Re: Empty Folder.

Hi Vanday88 Instead renaming is working fine, but i can t able to delete the empty folder. Would be a great help to remove empty folder. var myFolder = Folder("/Users/Wander5/Desktop/ID...

View Article

Re: Empty Folder.

I tried in windows, but it is working fine. var folder = Folder("/c/test/")var myFolder = Folder("/c/test/").getFiles("*");if(myFolder.length ==0){folder.remove();}

View Article

Re: Empty Folder.

Hi Muppet Mark, Execution finished, but no result. Acually i have an empty folder inside '/ID Links', while running your script the empty folder still sits there and not removed. thanks Muppet Mark.

View Article

Re: CS5.5 AnchoredObjectSettings not working like it did under CS2

You got your capitalisation wrong: for AnchorXoffset use anchorXoffset, and for AnchorYoffset use anchorYoffset. Peter

View Article


Re: Empty Folder.

A blank get files returns both files and folders… You need to test the type… Your folder is NOT empty it contains a folder… Try with an empty one and it should work…?

View Article

Re: error with function in indesign cc 64bit

I'm admin, it din't change anything.

View Article


Image may be NSFW.
Clik here to view.

Re: Empty Folder.

Hi Muppet Mark & Vandy88, I'm working in Mac. Also please see the screen shot attached. ID Links folder lies in the Desktop and all the files and folder inside in it are removed and tested without...

View Article

Re: CS5.5 AnchoredObjectSettings not working like it did under CS2

@Peter – maybe. But maybe not. This could be VB Script. See the place() method in line one written with a capital P… On the other hand, it seems to be a mix out of JavaScript and VB.Cannot tell, 'cause...

View Article


Re: Empty Folder.

Did you check for hidden files? Uwe

View Article

Re: Empty Folder.

Hi Laubender, I have seen it, and there are no files or folders hidden inside. thanks for your help on this..

View Article

Multiple files not saved and close

Hi Forum, I am trying to save and close multiple files (IDML to INDD), my script is doing only opening multiple fileshere is my script, can any one help me on this...

View Article
Browsing all 37788 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>