Tasks(タスク)概説

A task is simply a set of actions which are performed one after the other.

https://tasker.joaoapps.com/userguide/en/tasks.html

タスクとは順次実行される一連のアクションをまとめた物です。

Named / Anonymous Tasks(名前付き/無名タスク)

A task can be given a name. This allows:

  • the same task to be used in more than one profile
  • easier identification of what the task does
  • in the case of a task widget/shortcut, it provides a label for the icon on the home screen.

When creating a profile, widget or shortcut, often the associated task will consist only of one or two actions which will not be reused. For this case, Tasker allows you to create a task without a name (an Anonymous task).

https://tasker.joaoapps.com/userguide/en/tasks.html

タスクには名前を付けることが出来ます。名前を付けると以下のことが出来ます。

  • 複数のプロファイルで同じタスクを使いまわす
  • タスクの内容をわかりやすく示す
  • タスクウィジェットやショートカットとしてタスクをホーム画面に配置する場合にアイコンのラベルとして使用する

プロファイル、ウィジェットまたはショートカットを作成する際には一つか二つのアクションを含む使いまわす必要の無いタスクを紐付けることがあります。このような場合は名前を付けずにタスクを作成する事が出来ます(無名タスクと言います)。

Task Visibility(タスクの可視性)

Anonymous tasks are only visible when editing the profile that they are associated with.

Named tasks are visible on any screen that allows task editing. Any changes made to the set of tasks in any screen is reflected in all the other screens.

https://tasker.joaoapps.com/userguide/en/tasks.html

無名タスクは紐付けられたプロファイルの編集時にのみ表示することが出来ます。

名前付きタスクはタスクの編集が可能な画面であればどこからでも編集できます。このようにして行った変更は他の画面にも反映されます。

Task Icon(タスクアイコン)

Each task has an associated icon, by default a question mark. The icon is used

  • to represent the task on the home screen when it is used as a widget or shortcut
  • when the task is turned into and app
  • for easier identification of the task within the Tasker UI
https://tasker.joaoapps.com/userguide/en/tasks.html

タスクにはそれぞれ関連づけられたアイコンが設定出来ます。デフォルトではクエスチョンマークのアイコンが適用されます。アイコンは以下のように使用されます。

  • タスクをウィジェットやショートカットとしてホーム画面に配置する際に表示される
  • タスクをアプリケーションにする場合
  • TaskerのUI上での視認性を上げる

Deleting Tasks(タスクの削除)

Named tasks can only be deleted via the Delete button on the Task Edit screen. Unnamed tasks are deleted automatically when the profile they are part of is deleted, or a named task is selected for that profile.

Named tasks cannot be deleted while a profile still refers to them.

When a task is deleted that is referred to by a previously created named widget or task, the widget will stop working.

Android does not allow Tasker to automatically remove the widget from the Home Screen.

https://tasker.joaoapps.com/userguide/en/tasks.html

名前付きタスクはタスク編集画面の「削除」ボタンでのみ削除することが出来ます。無名タスクは紐づけられたプロファイルが削除されるか別の名前付きタスクが紐づけられた場合に自動的に削除されます。

紐づけられたプロファイルが存在する場合は名前付きタスクの削除は行えません。

名前付きタスクが既存の名前付きウィジェットやタスクから参照されている場合、ウィジェットは機能しなくなります。

AndroidはTaskerが自動的にホーム画面からウィジェットを削除することを認めていません。

Task Scheduling(タスクのスケジューリング)

When there is a single task waiting to be executed, it’s actions are executed one-by-one until finished.

When there are several tasks in the queue at once, it’s important to understand how they are handled:

  • only one action from the same action group can be executed at once to prevent interference
  • the task in the queue with the highest priority goes first and blocks lower priority tasks
  • tasks with the same priority take turns executing an action each, starting with the most recent addition to the queue unless one task is a child of the other (started via Perform Task), in which case the child executes first.
https://tasker.joaoapps.com/userguide/en/tasks.html

タスクが実行を終えるには、そこに含まれるアクションが順番に全て実行される必要があります。

一度に複数のタスクが実行待ちの状態にあるとき、これらタスクがどのように実行されるかを理解する必要があります。

  • 同じアクショングループに属するアクションは干渉を避けるために同時には実行されません
  • 優先度のより高いタスクが実行待ちになっている場合、より低い優先度のタスクの実行はブロックされます。
  • 優先度の同じタスクはそれぞれのアクションを交互に実行し、最も最近実行待ちに追加されたタスクのうち、他のタスクの子タスク(タスク実行アクションによって実行開始されたもの)以外のものから実行されます。子タスクの場合はこちらを先に実行します。

Task priority, 0 to 50 inclusive with 0 being lowest, is determined according to whatever causes the task to run.

  • enter tasks run by profiles have the priority specified in Profile Properties, the default is 5.
  • exit tasks run by profiles have the priority specified in Profile Properties plus 1001, the default is therefore 1016
  • tasks run by widgets or shortcuts can be set in Task Properties when the widget/shortcut is created, the default is 7
  • tasks run from scene elements have priority one more than the task which showed the scene
  • tasks run from the Test button in the task edit screen have priority 100 by default, long-click the play buttin to choose a different one.
https://tasker.joaoapps.com/userguide/en/tasks.html

0を最低として0~50で表されるタスクの優先度は、タスクがどのように実行されるかによって決定されます。

  • プロファイルのプロパティ―で優先度が指定されているプロファイルのエンタータスクの優先度はデフォルトで5です。
  • プロファイルのプロパティ―で優先度が指定されているプロファイルのイグジットタスクの優先度には1001が加えられ、デフォルトで1016です。
  • ウィジェットやショートカットから実行されるタスクにはこれらが作成されるときにタスクプロパティ―を設定することができ、デフォルトでは7です。
  • シーンエレメントから実行されるタスクの優先度はそのシーンを表示させたタスクの優先度より一つ高くなります。
  • タスク編集画面のテスト実行ボタンから実行されたタスクの優先度はデフォルトで100ですが、ボタンを長押しすることで値を変更できます。

A couple of guidelines are:

  • if you want a particular task to always interrupt other tasks that may be executing, give it a high priority
  • if you have a task that lasts for a while, you probably want to give it a low priority so it doesn’t block other tasks from being executed.
https://tasker.joaoapps.com/userguide/en/tasks.html

タスク実行の優先度に関するガイドラインが二つあります。

  • 特定のタスクを実行が予想される他のタスクよりも常に優先的に実行させるには、高い優先度を設定してください。
  • 実行に時間を要するタスクの優先度は低く設定することで他のタスクの実行を妨げないようにできます。

Action Groups(アクショングループ)

https://tasker.joaoapps.com/userguide/en/tasks.html

アクションは実行にかかる時間とそれが何に干渉するかに基づいてグループ分けされています。

  • スピーチ:読み上げ、読み上げてファイルに保存
  • Javascript:Javascript
  • 位置情報:現在地の取得
  • 音声:音声認識
  • 代理:画面の明るさ、クエリアクション、写真、連写、 連写時間
  • 代理シーン:キー入力、メニュー、ポップアップ、ポップアップタスクボタン、変数を要求
  • 他のシーン:表示されているシーンの名前
  • 普通:その他のアクション全て

Wait Actions(待機アクション)

Wait and Wait Until are special cases. The rules for handling them are complicated and try to do the ‘best thing’ dependent on the situation.

https://tasker.joaoapps.com/userguide/en/tasks.html

待機待機終了アクションは特別なケースです。これらを制御するルールは複雑で状況に合わせて「最も良い」使い方を試してください。

Same-Profile Tasks

Tasks launched by the same profile by default always execute in the order in which they are launched. Other tasks from the same profile remain completely inactive until any previous task from the same profile is complete. The main purpose of this rule is to correctly handle rapid changes in a profile’s activation state.

This behaviour can be disabled by deselecting Enforce Task Order in the Profile Properties dialog.

https://tasker.joaoapps.com/userguide/en/tasks.html

同じプロファイルによって呼び出されたタスクはデフォルトでは呼び出された順に実行されます。先に実行されたタスクが終了するまで次のタスクが実行されることはありません。このルールは急速に変化するプロファイルのアクティベーションの状態を正しく制御するためのものです。

このルールはプロファイルのプロパティーダイアログにあるタスクの実行順序を強制を無効にすることで解除することが出来ます。

Example(例)

This example demonstrates the effect of Enforce Task Order and shows also how sub-tasks launched by Perform Task are handled.

Profile: Example
 Enter Task: Enter1
  Perform Task, Enter2
 Exit Task: Exit1
  Perform Task, Exit2

With Enforce Task Order:

Enter1 and Enter2 are both guaranteed to finish before either of Exit1 or Exit2. Whether Enter1 or Enter2 finishes first depends on their relative priority. Same for Exit1 and Exit2. All 4 tasks compete based on priority against tasks from other profiles. Exit tasks have a higher base priority so will finish before Enter tasks.

Without Enforce Task Order:

If the profile goes active and inactive quickly, Enter1, Enter2, Exit1 and Exit2 will all compete purely on priority. Since Exit tasks have higher base priority, Exit1 and Exit2 will probably finish first.

https://tasker.joaoapps.com/userguide/en/tasks.html

ここではタスクの実行順序の強制の効果とタスク実行アクションによる子タスクの起動がどのように制御されるかを見ていきます。

プロファイル:Example
 エンタータスク:エンター1
  タスクの実行アクション エンター2
 イグジットタスク:イグジット1
  タスクの実行アクション イグジット2

タスクの実行順序を強制した場合:

エンター1とエンター2はいずれもそれぞれイグジット1イグジット2よりも前に終了することが保証されます。エンター1とエンター2のいずれが先に終了するかは関連する優先順位によります。イグジット1とイグジット2についても同様です。これら4つのタスクは他のプロファイルにより実行されたタスクに対し優先度を基に実行順序を競います。

タスクの事項順序を強制しない場合:

プロファイルが瞬間的にアクティブになり再び非アクティブになった場合は、エンター1、エンター2イグジット1およびイグジット2は純粋に優先度だけを基に実行順序を競います。イグジットタスクはより高い優先度を持っているのでイグジット1とイグジット2がまず終了するでしょう。

Collisions(競合)

Sometimes a task needs to be executed of which a copy is already executing. This can happen quite often e.g. when a task widget button is pressed twice quickly, or a task contains a Wait action or shows a dialog.

The way in which a collision is resolved is specified by the user. There are 3 options:

  • the new task is ignored (the default)
  • the existing task is aborted and the new one starts from its first action. The current action of the previous task is finished if it is already being carried out.
  • both tasks run simultaneously

Note that the last option can lead to several copies of a task all running at once.

https://tasker.joaoapps.com/userguide/en/tasks.html

タスクが実行されるとき既に同じタスクのコピーが実行されているということが起こります。これはタスクウィジェットの実行ボタンが素早く2度押されたり、タスクに待機アクションあるいはダイアログを表示アクションが含まれていたりする場合に頻繁に起こります。

このような競合の解消方法はユーザーが指定します。次の3つの方法があります。

  • 新しく実行されたタスクを無視する。(デフォルト)
  • 先に実行されていたタスクを中断し、新しいタスクを最初のアクションから実行する。前のタスクの現在のアクションの実行が既に開始されていた場合には終了します。
  • 両方のタスクを同時に実行する。

最後の方法ではいくつもの同一タスクが一度に実行されることに注意してください。

Behaviour When Device Off(電源オフ時の挙動)

By default, after a few seconds of the screen being off Android will power down the device and thus running tasks will be paused.

In the Task Properties dialog, it can be specified that a task should keep running.

https://tasker.joaoapps.com/userguide/en/tasks.html

デフォルトでは画面がオフになった数秒後にアンドロイドは端末の電源を落とします。これによって実行中のタスクは中断します。

タスクプロパティ―ダイアログではタスクが中断されないように設定することが出来ます。

Dialogs(ダイアログ)

An action that shows some kind of dialog (such as a lock screen, popup, menu) blocks execution of any other action, even one of higher priority, until it is completed.

https://tasker.joaoapps.com/userguide/en/tasks.html

ダイアログを表示するアクションは(ロック画面、ポップアップ、メニューなど)、より高い優先度のものも含め、その実行が終了するまで他のアクションの実行をブロックします。

Wait / Wait Until(待機/待機終了)

These are exceptions. A wait action can be interrupted by another task’s action and will resume (if necessary) when the other task’s action is finished.

https://tasker.joaoapps.com/userguide/en/tasks.html

例外があります。待機アクションは他のタスクのアクションによって「割り込み」をされることがあります。また、必要であれば他のタスクが終了したのち再開します。

Killing Tasks(タスクの強制終了)

If you have a problem with a task that never ends, you can manually end tasks with the Kill button in the Task Edit screen.

https://tasker.joaoapps.com/userguide/en/tasks.html

もしタスクが終了しなくなる状態になった場合には、タスク編集画面の強制終了ボタンで手動でタスクを終了させることが出来ます。