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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleEmpty 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 ArticleRe: 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 ArticleRe: Empty Folder.
Hi Vandy88, I tried with your script. and still the empty folder is not deleted..
View ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: Empty Folder.
Hi Laubender, I have seen it, and there are no files or folders hidden inside. thanks for your help on this..
View ArticleMultiple 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