• <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| 99久久精品国产麻豆| 久久精品国产99久久久香蕉| 亚洲日本va中文字幕久久| 99久久国产热无码精品免费| 亚洲国产成人久久综合区| 精品久久久久久亚洲| 国产AV影片久久久久久| 久久久久高潮综合影院| 国产精品久久久久久福利漫画| 91精品久久久久久无码| 精品久久久久久国产| 伊人色综合九久久天天蜜桃| 亚洲欧洲日产国码无码久久99| 亚洲人成无码网站久久99热国产| 人妻精品久久无码专区精东影业| 麻豆av久久av盛宴av| 久久99精品久久久久久秒播 | 久久亚洲国产欧洲精品一| 99精品久久久久久久婷婷| 伊人久久大香线蕉精品| 中文字幕久久波多野结衣av| 久久久青草久久久青草| 无码日韩人妻精品久久蜜桃| 婷婷国产天堂久久综合五月| 久久综合给合综合久久| 久久久久无码中| 国产激情久久久久影院| 91久久精一区二区三区大全| 天天爽天天狠久久久综合麻豆| 一级A毛片免费观看久久精品| 99热精品久久只有精品| 国产精品伊人久久伊人电影| 亚洲国产精品人久久| 国产成人香蕉久久久久| 久久亚洲天堂| 久久婷婷国产剧情内射白浆 | 色偷偷91久久综合噜噜噜噜|