Sunday, December 2, 2012

AppleScript에서 외부 텍스트에디터로 new document 만드는 법

AppleScript에서 특정 텍스트를  외부 텍스트에디터로 새 도큐먼트 만들어서 열어주는 방법

      tell application "TextWrangler"  
           activate  
           make new document  
           set documentText to text of document 1  
           set textBits to text items of documentText  
           set text of document 1 to "This is my text" as text  
      end tell  

레퍼런스 :If all you're doing is stripping quotation marks out of a CSV file..

No comments:

Post a Comment