zoukankan      html  css  js  c++  java
  • 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


  • 相关阅读:
    SQL Server如何固定执行计划
    领导修炼
    content management system
    npm和bower
    web开发workflow
    偏执狂
    website project team member 角色及开发过程概念图
    website architecture
    王道霸道
    design pattern及其使用
  • 原文地址:https://www.cnblogs.com/Trybst/p/4494210.html
Copyright © 2011-2022 走看看