2017-11-12 11 views
0

크기가 다른 (m2)로 표시된 집 목록 (타격 참조)이 있으며, 그 모든 인스턴스를 m2로 바꾸고 "2"를 위 첨자로 바꾸고 싶습니다.applescript 및 quarkxpress를 사용하여 문자를 위 첨자로 변경하십시오.

주택의 목록 :

  • R45m HOUSE. 탁 트인 전망을 갖춘 랜드 마크 건물, 2000m2에 8 이상 200m2. 웹 참조 : 3036011
  • R27.5m HOUSE. 6 친선 사절 5,000m2 이상의 웹 심판에 집 bedroomed : 3137592.

내 스크립트를

tell application "QuarkXPress" 
tell document 1 
    tell story 1 of current box 
     set xx to 2 
     set character style of xx to superscript 
     set text of every paragraph where it is "m2" to "m" & xx 
    end tell 
end tell 
end tell 

나는 다음과 같은 오류 얻을 :

Can’t set «class CHSS» of 2 to superscript.

을 제발 도와주세요, 확실하지 않습니다. 내가 잘못된 길을 가고 있다면. 많은 감사를드립니다.

답변

0

머리카락을 잡아 당기면 나는 다른 사람을 도울 수 있기를 바랍니다.

tell application "QuarkXPress" 
tell document 1 
tell story 1 of current box 

set xx to («data utxt006D» as Unicode text) & «data utxt00B2» as Unicode text 
set text of every paragraph where it is "m2" to xx 

end tell 
end tell 
end tell 
: 아래의 스크립트에

수선