Is restoring text item delimiters necessary?

前端 未结 3 1062
伪装坚强ぢ
伪装坚强ぢ 2020-12-21 11:52

The commonly recommended way to use text item delimiters is like this:

set tid to AppleScript\'s text item delimiters
set AppleScript\'s text item delimiters         


        
3条回答
  •  清歌不尽
    2020-12-21 12:12

    I found this tidbit on https://developer.apple.com/library/mac/#documentation/applescript/conceptual/applescriptlangguide/conceptual/ASLR_fundamentals.html in the section AppleScript Fundamentals > Global Constants in AppleScript > text item delimiters:


    If you change the text item delimiters property in Script Editor, it remains changed until you restore its previous value or until you quit Script Editor and launch it again. If you change text item delimiters in a script application, it remains changed in that application until you restore its previous value or until the script application quits; however, the delimiters are not changed in Script Editor or in other script applications you run.


提交回复
热议问题