Datasets:
| task_id: macos.textedit.append_ops_note | |
| platform: macos | |
| instruction: 'TextEdit is already open with `/Users/bench/Downloads/ops_note.txt`. | |
| Keep the existing three lines exactly as they are. At the very end of the file, | |
| append these six new lines in this exact order: | |
| - `Follow-up:` | |
| - `Owner: Riley` | |
| - `Status: ready` | |
| - `Badge count: 12` | |
| - `Next check: 15:30` | |
| - `Desk phone: 555-0187` | |
| Do not rewrite the whole document. Only append the requested lines, then save the file. | |
| ' | |
| init: | |
| initializer_id: initializers.macos.setup:DesktopSetupInitializer | |
| params: | |
| steps: | |
| - type: run_bash | |
| script: 'set -e | |
| killall TextEdit >/dev/null 2>&1 || true | |
| rm -f /Users/bench/Downloads/ops_note.txt | |
| ' | |
| - type: upload_file | |
| local_path: ../../files/textedit/append_ops_note/start/ops_note.txt | |
| path: /Users/bench/Downloads/ops_note.txt | |
| - type: run_bash | |
| script: 'set -e | |
| open -a TextEdit /Users/bench/Downloads/ops_note.txt | |
| ' | |
| - type: wait | |
| ms: 2500 | |
| - type: run_bash | |
| script: "set -e\nosascript <<'APPLESCRIPT'\ntell application \"System Events\"\n tell process \"TextEdit\"\n set position of window 1 to {90, 90}\n set size of window 1 to {1300, 860}\n end tell\nend tell\nAPPLESCRIPT\n" | |
| - type: wait | |
| ms: 1000 | |
| evaluation: | |
| evaluator_id: evaluators.macos.textedit:TextEditFileEvaluator | |
| params: | |
| actual_path: /Users/bench/Downloads/ops_note.txt | |
| expected_path: ../../files/textedit/append_ops_note/expected/ops_note.txt | |
| limits: | |
| max_steps: 100 | |
| step_timeout_seconds: 120 | |