在终端下执行AppleScript

| | Comments (0) | TrackBacks (0)

AppleScript是一种OSA语言,偶然发现在Mac下有这样一组工具

osacompile 编译OSA文件
osadecompile  反编译OSA文件
osalang   列出已经安装的OSA语言
osascript 执行OSA语言

他们默认的是执行AppleScript,下面这句将打开iTunes并播放音乐:

osascript -e 'tell app "iTunes" to play'

0 TrackBacks

Listed below are links to blogs that reference this entry: 在终端下执行AppleScript.

TrackBack URL for this entry: http://blog.khsing.net/cgi-bin/mt-tb.cgi/19

Leave a comment

About this Entry

This page contains a single entry by Guixing published on May 11, 2008 12:54 AM.

Mac OS X中改变文件默认打开程序 was the previous entry in this blog.

四川汶川地震 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.