Saturday, March 27, 2010

AppleScript로 스트링 다루기

AppleScript Essentials Working With Text
by Benjamin S. Waldie
http://www.mactech.com/articles/mactech/Vol.21/21.07/WorkingWithText/index.html
이것이 string 다루는데 관련된 가장 좋은 튜토리얼로 보임.

본문중에서 :
The offset command is included in the String Commands suite in the Standard Additions scripting addition that is installed with Mac OS X.
set theFileName to "filename.jpg"
offset of "." in theFileName
--> 9
레퍼런스 :
last offset of 함수 구현한 것
http://www.alecjacobson.com/weblog/?p=49

No comments:

Post a Comment