• <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 逛奔的蝸牛 閱讀(1594) 評論(1)  編輯 收藏 引用 所屬分類: Mac

            評論

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

            99久久综合狠狠综合久久止| 久久伊人亚洲AV无码网站| 久久精品国产亚洲AV久| 老色鬼久久亚洲AV综合| 久久国产精品99久久久久久老狼 | 久久久久女人精品毛片| 久久99中文字幕久久| yy6080久久| 久久最新精品国产| 日日噜噜夜夜狠狠久久丁香五月| 亚洲国产精品久久| 久久亚洲私人国产精品vA| 国产激情久久久久影院老熟女免费| 四虎国产精品成人免费久久| 999久久久国产精品| 国产精品久久久久影院嫩草| 久久久久亚洲国产| 久久久久婷婷| 国产精品伊人久久伊人电影 | 久久国产高清字幕中文| 亚洲熟妇无码另类久久久| 久久性生大片免费观看性| 国产精品欧美久久久久无广告| 无码人妻精品一区二区三区久久| 伊人精品久久久久7777| 久久这里只有精品视频99| 国产精品欧美久久久久无广告| 精品免费tv久久久久久久| 国产成人久久精品激情| 久久久久亚洲av无码专区喷水| 无码人妻久久一区二区三区免费| 久久婷婷国产剧情内射白浆 | 国产亚洲色婷婷久久99精品| 午夜天堂av天堂久久久| 久久国产乱子伦免费精品| 久久久精品2019免费观看| 无码AV波多野结衣久久| 精品久久久久久成人AV| 一本大道久久a久久精品综合| 久久国产福利免费| 久久综合色老色|