获取applescript中字符串中的字符后的文本

时间:2013-03-03 17:18:17

标签: string macos text applescript character

我有一些文件有一些文字,50个换行符(不要问),然后还有一些文字。如何获取换行后的文字? Shell脚本很好。任何答案都会受到赞赏,因为我已经坚持了一段时间。谢谢!

1 个答案:

答案 0 :(得分:1)

set input to read POSIX file "/tmp/test" as «class utf8»
set d to ""
repeat 50 times
    set d to d & linefeed
end repeat
set text item delimiters to d
text item 2 of input