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
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步