27
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AppleScriptでアプリケーションの操作

Last updated at Posted at 2013-06-03

AppleScriptを使い他のアプリケーションの操作をする方法メモ。
テストした環境はMacOS 10.8。

アプリ起動

tell application "/Applications/Evernote.app"
    activate
end tell

アプリが起動中かどうかの判定

if application "Evernote" is running then
    "OK"
else
    "NG"
end if

アプリ終了

tell application "Evernote"
    quit
end tell
27
25
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?