Created
July 19, 2011 08:43
-
-
Save moluapple/1091740 to your computer and use it in GitHub Desktop.
Extend width of TextFrames with the same geometricBounds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "doEx.jsx" | |
var s = app.selection[0].geometricBounds.toString().replace(/\.\d+/g, ''); | |
doEx('textFrames').each(function () { | |
if (this.geometricBounds.toString().replace(/\.\d+/g, '') == s) { | |
this.geometricBounds = [ | |
this.geometricBounds[0], this.geometricBounds[1] - 50, this.geometricBounds[2], this.geometricBounds[3]] | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
扩展如下:
逐一找出与(多个)所选对象相同位置及类别的对象,执行某种操作,比如:一同移动位置