美文网首页开发中的黑科技工具技巧AppleScript
Appscript 拿到运行的QQ的process ID

Appscript 拿到运行的QQ的process ID

作者: 十一岁的加重 | 来源:发表于2017-04-06 20:45 被阅读12364次
    
    tell application "QQ" to launch
    tell application "System Events"
        set vlc to displayed name of every process whose name is equal to "QQ"
        set vID to id of every process whose name is equal to "QQ"
    end tell
    set vlcProc to {}
    repeat with k from 1 to count vlc
        set end of vlcProc to {item k of vlc, item k of vID}
    end repeat
    vlcProc
    
    
    

    相关文章

      网友评论

      • 研磨時光:请问下,process ID是干什么用的呢
        十一岁的加重:就进程ID啊,一万个进程,怎么区分 啊就ID,跟身份证ID一样吧,ID好像就区别的意思吧

      本文标题:Appscript 拿到运行的QQ的process ID

      本文链接:https://www.haomeiwen.com/subject/pwzqattx.html