Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 92406

Re: Change Center position by Indesign script

$
0
0

Hi Hasvi,

 

Try this.

 

var path = Folder.selectDialog ("Select folder");

var files = path.getFiles("*.indd");

for(var i =0;i<files.length;i++)

{

    var doc = app.open(files[i],false)

    var myLpage = doc.pages[-1].pageItems.everyItem();

    //doc.align(myLpage, AlignOptions.VERTICAL_CENTERS, AlignDistributeBounds.MARGIN_BOUNDS);

    doc.align(myLpage, AlignOptions.HORIZONTAL_CENTERS, AlignDistributeBounds.MARGIN_BOUNDS);

    doc.save();

    doc.close();

    }

 

Regards,

Chinna


Viewing all articles
Browse latest Browse all 92406

Trending Articles



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