美文网首页
AppleScript - CopyPath.app

AppleScript - CopyPath.app

作者: 成江海 | 来源:发表于2017-05-31 22:43 被阅读0次

CopyPath.app


tellapplication"Finder"

setseltotheselection

if(countofsel)isgreater than1then

settheListto""

repeatwitheinsel

settheListtotheList&POSIX pathof(eastext) &return

endrepeat

set the clipboard totheList

elseif(countofsel)isequal to1then

set the clipboard toPOSIX pathof(selastext)

else

set the clipboard toPOSIX pathof(targetofwindow1asalias)

endif

endtell

相关文章

网友评论

      本文标题:AppleScript - CopyPath.app

      本文链接:https://www.haomeiwen.com/subject/tixsfxtx.html