• <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Ⅴ优女AV综合久久久| 国产精品一区二区久久精品涩爱 | 久久精品国产亚洲AV麻豆网站| 亚洲精品无码久久千人斩| WWW婷婷AV久久久影片| 日本免费久久久久久久网站| 欧美国产成人久久精品| 久久精品国产亚洲AV麻豆网站 | 久久成人小视频| 国产精品久久久久久久| 欧美久久久久久午夜精品| 2021久久国自产拍精品| 久久亚洲国产成人影院| 亚洲狠狠久久综合一区77777| 伊人久久大香线蕉综合热线| 久久婷婷久久一区二区三区| 久久天天躁狠狠躁夜夜avapp| 999久久久国产精品| 久久无码人妻一区二区三区| 四虎影视久久久免费观看| 国产一级持黄大片99久久| 漂亮人妻被黑人久久精品| 久久亚洲高清综合| 国产福利电影一区二区三区久久久久成人精品综合 | 久久精品中文无码资源站| 精品久久综合1区2区3区激情| 久久精品人人做人人爽电影蜜月| 久久99这里只有精品国产| 久久99精品久久久久久齐齐| 91视频国产91久久久| 久久久噜噜噜www成人网| 东方aⅴ免费观看久久av| 国产欧美久久久精品影院| 香港aa三级久久三级老师2021国产三级精品三级在| 久久久久久国产精品无码超碰| 久久久久亚洲精品天堂| .精品久久久麻豆国产精品| 99久久精品日本一区二区免费|