• <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代碼,非常感謝!!  回復  更多評論
              

            久久精品无码av| 久久精品国产亚洲AV无码偷窥| 久久最新精品国产| 武侠古典久久婷婷狼人伊人| 久久免费大片| 亚洲αv久久久噜噜噜噜噜| 国产精品18久久久久久vr| 国产精品成人99久久久久91gav| 麻豆久久| 91精品国产综合久久香蕉| 亚洲AV无码成人网站久久精品大| 一级做a爰片久久毛片人呢| 狠狠色婷婷久久综合频道日韩| 伊人丁香狠狠色综合久久| 久久综合给合久久狠狠狠97色69 | 天堂无码久久综合东京热| 伊人久久大香线蕉av一区| 久久精品夜色噜噜亚洲A∨| 久久亚洲精品成人AV| 伊人久久大香线蕉综合热线| 国产成人综合久久精品尤物| 国产亚洲精久久久久久无码| 青青草原综合久久大伊人| 国产亚洲成人久久| 狠狠干狠狠久久| 国产精品久久一区二区三区| 无码人妻久久一区二区三区免费丨 | 久久99国产精品一区二区| 香蕉久久av一区二区三区| 国内精品久久久久影院亚洲| 久久亚洲高清综合| 国产精品欧美久久久久天天影视| 久久精品国产亚洲AV高清热 | 久久久久女人精品毛片| 精品久久久一二三区| yy6080久久| 亚洲精品乱码久久久久久按摩 | 综合久久给合久久狠狠狠97色| 久久本道久久综合伊人| 欧美日韩精品久久久免费观看| 久久久久久久综合日本|