收藏本站 
网站首页 
网站地图 
>> 我们从网络和杂志上收集了近100000余篇各类电脑技术、网络技术、软件技术等方面的文章教程,我们的收录原则:不是精华拒不收录!
先飞电脑技术网技术文章
使用Automator在Terminal中打开文件夹
[ 作者:佚名    转贴自:网络转载    阅读次数:12    更新时间:2006-6-20 10:32:00   录入:刘光勇 ]        
制作完成以后的效果






制作步骤

1. 启动Automator, 从左边资源库中选择Finder, 选择"获得Finder所选项",拖动到右边

2. 从左边资源库中选择Automator, 拖动"运行AppleScript"到右边,在其中输入

on run {input, parameters}
  tell application "Terminal"
    activate
    if (the (count of the window) = 0) or (the busy of window 1  = true) then
      tell application "System Events"
        keystroke "n" using command down
      end tell
    end if
    do script "cd \"" & (POSIX path of  (input as string)) & "\"" in window 1
  end tell
  return input
end run

3. 选择菜单 文件->储存为插件,选Finder插件,输入名字CD

让后就可以出现上面的效果了

发现Automator和AppleScript挺好玩的,hehe
上一篇:Tiger上20个也许你没有听说过的酷功能  下一篇: 使用Automator在Finder中解压jar文件  

网站主页 | 收藏本页 | 联系我们 | 广告服务 | 站点地图 | 会员注册 | 招聘信息 | 内容指正

联系QQ:先飞电脑技术网站事务联系QQ,点击可以直接留言. 32933427 电话:13710542091 [世界排名] 鄂ICP备05005890号