Getting contents of indesign text frame through applescript -
i trying form applescript read contents of 1 text frame in indesign , if frame contains character "/" move text frame. figured out how make other text frame move, cannot figure out way make applescript "read" in first text frame , search character. here have far...
tell application "adobe indesign cs6" tell active document set horizontal measurement units of view preferences inches set vertical measurement units of view preferences inches repeat x 1 count pages set thispage page x tell thispage if (get text frames name of applied object style "box1") contains character "/" move (get text frames name of applied object style "box2") {-1.245, 0} --relative move x, y end if end tell end repeat end tell end tell
i either no error won't or else gives me compiler errors. please help! thank you!
try "if" test
if exists (text frames (name of applied object style "box1" , contents contains "/"))
Comments
Post a Comment