AppleScript

AppleScript

 定义:苹果公司开发的一种脚本语言,可以用来控制运行于Mac OS上的程序,也可以写成独立运行的Applet。

   用处:可用于操控其他软件。

================

 

1.

tell application "Finder"

get name of every disk

end tell

 

==> Result:

{"Mac_SSD", "Win8.1", "home", "net"}

 

2.

tell application "Finder"
set L to get every disk
my getNameof(1)
end tell
on getNameof(what)
global L
local s
set s to get name of item what of L
return s

end getNameof

 

==> Result:

"Mac_SSD"

------- 

分享:

AppleScript资料下载 |--> Download

================

PS:

[ 每日一句 ]

“每个人,都有自己的一种活法。”

 

[ 每天一首英文歌 ] 

" Whistle " - Flo Rida

================

 

|-> GitHub: SpongeBob-GitHub

|--> Copyright (c) 2015 Bing Ma.



" There's always more to learn, and there are always better ways to do what you've done before. " -- Trybst


原文地址:https://www.cnblogs.com/Trybst/p/4494210.html