0
我想形成一個applescript,它將讀取indesign中的一個文本框架的內容,如果該框架包含一個字符「/」,那麼它將移動另一個文本框架。我想出瞭如何讓其他文本框架移動,我找不到一種方法讓applescript「讀取」第一個文本框架中的內容並搜索一個字符。這是我到目前爲止...通過applescript獲取無限文本框架的內容
tell application "Adobe InDesign CS6"
tell active document
set horizontal measurement units of view preferences to inches
set vertical measurement units of view preferences to inches
repeat with x from 1 to count pages
set ThisPage to page x
tell ThisPage
if (get text frames whose name of applied object style is "Box1") contains character "/" then
move (get text frames whose name of applied object style is "Box2") by {-1.245, 0} --relative move x, y
end if
end tell
end repeat
end tell
end tell
我要麼沒有錯誤,但它不會做任何事情,否則它會給我編譯錯誤。請幫忙!謝謝!
謝謝你(他(名字的應用對象樣式是「盒1」和內容包含「/」)文本框)!這按預期工作! –
@MikeVolpe:評論是要求澄清問題,而不是添加「謝謝」。指出答案的正確方法有助於您接受*。請稍後閱讀介紹[遊覽]。 – usr2564301
@MikeVolpe的投票會很好 – user1754036