• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            逛奔的蝸牛

            我不聰明,但我會很努力

               ::  :: 新隨筆 ::  ::  :: 管理 ::

            1. 放到/Library/Scripts里,例如用Spark設置快捷鍵全局啟動

            2. 把這些代碼放到spark里面,讓spark來執行速度會非常快,比放在系統里會快很多

            Move Window Left.scpt:

            tell application "System Events"

            set _everyProcess to every process

            repeat with n from 1 to count of _everyProcess

            set _frontMost to frontmost of item n of _everyProcess

            if _frontMost is true then set _frontMostApp to process n

            end repeat

            set _windowOne to window 1 of _frontMostApp

            set pos to position of _windowOne

            set y to item 2 of pos

            set position of _windowOne to {0, y}

            end tell


            Move Window Right.scpt:

            --set _screenWidth to 1440 -- Change this number to your screen width


            tell application "Finder"

            set _b to bounds of window of desktop

            set _screenWidth to item 3 of _b

            end tell


            tell application "System Events"

            set _everyProcess to every process

            repeat with n from 1 to count of _everyProcess

            set _frontMost to frontmost of item n of _everyProcess

            if _frontMost is true then set _frontMostApp to process n

            end repeat

            set _windowOne to window 1 of _frontMostApp

            set pos to position of _windowOne

            set y to item 2 of pos

            set _size to size of _windowOne

            set _width to item 1 of _size

            set position of _windowOne to {_screenWidth - _width, y}

            end tell

             

            posted on 2011-01-10 21:06 逛奔的蝸牛 閱讀(1579) 評論(1)  編輯 收藏 引用 所屬分類: Mac

            評論

            # re: Mac:利用AppleScript移動窗口 2013-05-20 23:49 豬一頭
            您好高手!我最近遇到一個問題:每個30s,監測文件夾1里面的.txt文檔,然后移進2文件夾,若2文件夾已經存在每個.txt文檔,則不移動該文件,把剩余的文件都移進去,如何用AppleScript實現該操作,請給出AppleScirpt代碼,非常感謝!!  回復  更多評論
              

            国产亚洲综合久久系列| 伊人久久亚洲综合影院| 国产一区二区三精品久久久无广告| 办公室久久精品| 亚洲人成网亚洲欧洲无码久久| 国产韩国精品一区二区三区久久 | 亚洲精品国产第一综合99久久| 一本久久a久久精品vr综合| 91精品国产综合久久香蕉| 亚洲综合精品香蕉久久网| 国产99久久久久久免费看| 少妇人妻88久久中文字幕| 日韩美女18网站久久精品| 久久香蕉国产线看观看乱码| 色欲综合久久躁天天躁蜜桃| 香蕉久久AⅤ一区二区三区| 久久亚洲高清观看| www.久久热| 久久久久99精品成人片欧美| 亚洲精品午夜国产va久久| 久久激情亚洲精品无码?V| 久久夜色tv网站| 国产精品99久久久久久人| 久久久无码人妻精品无码| 99久久精品免费看国产一区二区三区 | 国内精品久久人妻互换| 一本色道久久88精品综合| 色狠狠久久综合网| 大香伊人久久精品一区二区| 久久一区二区免费播放| 久久久久无码中| 久久无码国产| 久久久国产打桩机| 精品国产乱码久久久久软件| 亚洲欧美一区二区三区久久| 久久久久久国产精品美女| 一本久久知道综合久久| 久久青青草原亚洲av无码app| 久久精品中文騷妇女内射| 精品亚洲综合久久中文字幕| 中文字幕一区二区三区久久网站|