[Applescript]文字スタイルを"なし"にすると
[3616][Applescript]文字スタイルを"なし"にすると |
投稿者:shinji |
投稿日:2009/09/12(Sat) 16:57:09
MacOS10.4.11 CS3です。
tell application "Adobe InDesign CS3"
tell document 1
set ChaStyleNon to character style "[なし]"
tell every text of parent story of selection
apply character style using ChaStyleNon
end tell
end tell
end tell
text frameを選択して、これを実行すると一応なしにはなるのですが
属性がそのまま残ってしまいます
純粋に文字スタイルを解除したいときは
どうすればよいのでしょうか?
よろしくお願いします。
tell application "Adobe InDesign CS3"
tell document 1
set ChaStyleNon to character style "[なし]"
tell every text of parent story of selection
apply character style using ChaStyleNon
end tell
end tell
end tell
text frameを選択して、これを実行すると一応なしにはなるのですが
属性がそのまま残ってしまいます
純粋に文字スタイルを解除したいときは
どうすればよいのでしょうか?
よろしくお願いします。
» 1
[3617]Re: [Applescript]文字スタイルを"なし"にすると |
投稿者:小泉 |
投稿日:2009/09/12(Sat) 19:05:42
なにも属性の変更をしていない文字スタイルを作って
それをあててから[なし]を当てたりすればとりあえずOKですね。
tell document 1 of application "Adobe InDesign CS3"
set properties of selection to {applied character style:character style "なし2"}
set properties of selection to {applied character style:character style "[なし]"}
end tell
» 2
それをあててから[なし]を当てたりすればとりあえずOKですね。
tell document 1 of application "Adobe InDesign CS3"
set properties of selection to {applied character style:character style "なし2"}
set properties of selection to {applied character style:character style "[なし]"}
end tell
[3618]Re: [Applescript]文字スタイルを"なし"にすると |
投稿者:shinji |
投稿日:2009/09/12(Sat) 21:07:59
小泉さん、ありがとうございます。
本当ですね、不思議ですね。
ずーと悩んでました…一種の裏技でしょうかね
これで、先に進めます
本当ですね、不思議ですね。
ずーと悩んでました…一種の裏技でしょうかね
これで、先に進めます
この記事の書き込み元へのリンク (コメントや質問などはこちらへどうぞ)