Class

NSUserUnixTask

An object that executes unix applications. unixアプリケーションを実行するオブジェクト。

Declaration 宣言

@interface NSUserUnixTask : NSUserScriptTask

Overview 概要

The NSUserUnixTask class is intended to run unix applications, typically a shell script, from your application. It is intended to execute user-supplied scripts, and will execute them outside of the application's sandbox, if any. NSUserUnixTaskクラスは、unixアプリケーション、大抵はシェルスクリプト、をあなたのアプリケーションから実行するためのものです。それはユーザ提供スクリプトそれらを実行するよう計らいます、そしてそれらをアプリケーションのサンドボックスの外側で実行するでしょう、もしあれば。

The class is not intended to execute scripts built into an application; for that, use one of the NSTask, NSAppleScript, or AMWorkflow classes. If the application is sandboxed, then the script must be in the NSApplicationScriptsDirectory folder. A sandboxed application may read from, but not write to, this folder. このクラスはアプリケーションへとビルドされるスクリプトの実行を意図されません;それに対しては、NSTaskNSAppleScript、またはAMWorkflowクラスの1つを使ってください。アプリケーションがサンドボックスであるならば、そのときスクリプトはNSApplicationScriptsDirectoryフォルダの中になければなりません。サンドボックスアプリケーションは、このフォルダから読み出します、しかしそれへと書き込むことはできません。

If you simply need to execute unix scripts without regard to input or output, use NSUserScriptTask, which can execute any of the specific types. If you need specific control over the input to, or output from, or the error stream of the script, use this class. あなたがインプットやアウトプットを考慮せずに簡単なunixスクリプトの実行を必要とするならば、NSUserScriptTaskを使ってください、それはどんな特殊な種類でも実行できます。あなたが特定の制御をスクリプトへのインプット、またはそれからのアウトプット、またはそれのエラーストリームに必要とするならば、このクラスを使ってください。

Topics 話題

Executing the Unix Script Unixスクリプトの実行

Standard Unix Streams 標準Unixストリーム

Constants 定数

Relationships 関係

Inherits From 継承元

See Also 参照

Scripts and External Tasks スクリプトと外部タスク