2014-04-16 2 views
0
set mytexts to make new text frame with properties {contents:"Annonation " & g & ":" & param_Text, kind:area text, position:{(-150), (new_Var)}, width:(checkValue3 - checkValue1), name:"notes"} 

위 코드는 AppleScript로 Illustrator에서 텍스트를 만드는 데 사용됩니다. 생성 된 텍스트 프레임에 선이나 테두리를 추가하는 방법. 모든 참고 또는 조언은 높게 평가된다.AppleScript를 사용하여 Illustrator에서 텍스트 프레임에 획을 추가하는 방법은 무엇입니까?

+0

질문에 더 많은 코드를 포함 시키십시오. 일러스트 레이터를 대상으로하는 작업 조각으로 코드를 단순화하는 것이 가장 좋습니다 (모든 변수를 하드 코드). 가능한 한 쉽게 코드를 테스트하여 답변을 얻을 수 있습니다. – adamh

+0

@adamh 텍스트 프레임을 만드는 데 더 많은 코드가 없습니다. 다른 것은'If'와'Else' 조건입니다. 위 코드는 Illustrator에서 텍스트 프레임을 작성할 수 있습니다. –

답변

0

텍스트 경로를 사용하려는 AppleScript로.

set properties of text path of mytexts to {stroked:true, stroke width:0.1} 
0

그래서 당신이 무엇을 요구하는지 말할 수 없습니다.

외양 패널에서와 같이 텍스트 프레임 외부에 획을 추가하려고합니까? 이 같은?

enter image description here

그렇다면, 당신은 운입니다. 스크립팅 내에서 추가 스트로크 및 채우기에 액세스 할 수 없습니다 (source).

하지만 텍스트에 획을 적용하여 윤곽을 나타낼 수도 있습니다. 이 같은. 이 경우

enter image description here

, 이것은 당신이

tell application "Adobe Illustrator" 
      -- customize this as needed for your app 
    set theFrame to (make new text frame in current document with properties ¬ 
     {contents:"My text", kind:area text, name:¬ 
      "notes"}) 
    set theRange to text range of theFrame 
    set stroke color of theRange to {red:45, green:20, blue:128} 
end tell 
관련 문제