Skip to content

Help for using UNIX scripts says Pasteboardputs not Pasteboard #2032

@Monty

Description

@Monty

Description

$ rg Pasteboardputs
CotEditor/Resources/CotEditor.help/Contents/Resources/en.lproj/pgs/script_unixscript.html
74:		<tr><th><code>Pasteboardputs</code></th><td><p>Place the output text on the Clipboard.</p></td></tr>

Couldn't get that to work, resorted to using echo | pbcopy, but then I discovered this:

$ rg -B 5 'case pasteboard'
CotEditor/Sources/Models/Scripts/UnixScript.swift
55-        case replaceSelection = "ReplaceSelection"
56-        case replaceAllText = "ReplaceAllText"
57-        case insertAfterSelection = "InsertAfterSelection"
58-        case appendToAllText = "AppendToAllText"
59-        case newDocument = "NewDocument"
60:        case pasteboard = "Pasteboard"

To Reproduce

Just look at the code. Fix is trivial.

Expected behavior

Execution is consistent with Help

CotEditor version

Version 6.2.4 (794)

macOS version

Tahoe 26.3.1 (25D2128)

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugsomethings work not correctly

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions