它是:如何刪除最後一個空格的文本剪貼板applescript?
「你好你好 你好 」
需要
「你好你好你好」
如果最後一個字符空格刪除 謝謝大家!
get the clipboard set the clipboard to (replacement of "1" by "2" for the result) on replacement of oldDelim by newDelim for sourceString set oldTIDs to text item delimiters of AppleScript set text item delimiters of AppleScript to oldDelim set strtoks to text items of sourceString set text item delimiters of AppleScript to newDelim set joinedString to strtoks as string set text item delimiters of AppleScript to oldTIDs joinedString end replacement
@ alexander.polomodov,我相信你的編輯改變了最初的要求,正在_how去掉尾隨空格from_「hello hello hello」,** not **如何從hello \ nhello得到'hello hello hello' \ nhello「! – user3439894