Skip to content

Why the new version of Raycast script cannot send text to clipboard? #842

@baker221

Description

@baker221

I write a Python script of OCR.
The beginning part of script:

#!/usr/bin/env python3

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title ocr
# @raycast.mode silent

# Optional parameters:
# @raycast.icon 

The clipboard operation part:

    import pyperclip
    pyperclip.copy(content)
    print("Success!")

In the old version, this works well. But now (version 1.51.3) after running it, the clipboard is still empty.

But when I run it in console, this works well.

The bash command of pbcopy or something cannot operate correctly now

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions