• <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五月综合| 性欧美丰满熟妇XXXX性久久久| 久久精品国产亚洲AV蜜臀色欲| 99久久精品国产一区二区 | 久久精品a亚洲国产v高清不卡| 久久w5ww成w人免费| 久久乐国产精品亚洲综合| 亚洲va久久久噜噜噜久久男同 | 久久露脸国产精品| 久久人妻少妇嫩草AV无码专区| 久久精品亚洲男人的天堂| 亚洲午夜久久久影院| 久久国产热这里只有精品| 99久久久精品免费观看国产| 久久99热这里只有精品国产| 99久久国产免费福利| 蜜臀久久99精品久久久久久小说| 精品久久久久久久中文字幕| 久久久久久久人妻无码中文字幕爆| 久久久久亚洲精品无码网址| 97久久综合精品久久久综合| 国内精品久久久久影院薰衣草| 精品久久久久久无码人妻蜜桃| 久久久久亚洲av无码专区导航| 国产精品99久久久精品无码| 久久艹国产| 久久精品视频91| 国产A级毛片久久久精品毛片| 国产成人综合久久综合| 久久久一本精品99久久精品88| 久久AV高潮AV无码AV| 亚洲中文字幕无码久久2017 | 韩国三级中文字幕hd久久精品| 国产精品久久自在自线观看| 久久精品中文闷骚内射| 国产美女久久精品香蕉69| 久久精品国产第一区二区三区| 久久免费的精品国产V∧| 国产精品对白刺激久久久|