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

            久久久久亚洲AV成人网人人软件| 久久午夜无码鲁丝片| 精品久久人人爽天天玩人人妻| 精品久久久久久久久久中文字幕 | 久久伊人中文无码| 香蕉久久av一区二区三区| 伊人丁香狠狠色综合久久| 亚洲精品国精品久久99热| AV无码久久久久不卡网站下载 | 99精品久久久久久久婷婷| 欧美一区二区久久精品| 国产精品久久久久9999| 国内精品久久久久影院亚洲| 美女写真久久影院| 久久久久久曰本AV免费免费| 国产精品无码久久四虎| 一本一本久久A久久综合精品| 亚洲成色999久久网站| 色妞色综合久久夜夜| 婷婷久久综合| 久久99精品久久久久久野外| 国产精品视频久久| 亚洲国产精品18久久久久久| 亚洲国产成人精品久久久国产成人一区二区三区综| 无码国内精品久久人妻蜜桃 | 亚洲精品无码成人片久久| 久久精品人人做人人爽电影| 热综合一本伊人久久精品 | 久久福利青草精品资源站免费| 久久精品亚洲AV久久久无码| 亚洲精品综合久久| 久久精品国产一区二区三区不卡 | 日韩精品久久久久久| 99久久中文字幕| 潮喷大喷水系列无码久久精品| 无码日韩人妻精品久久蜜桃| 国产香蕉久久精品综合网| 久久婷婷色综合一区二区| 久久久久久久波多野结衣高潮| 欧美无乱码久久久免费午夜一区二区三区中文字幕 | 午夜精品久久久久久|