Skip to content

AppleScript Script Command fails with Exec format error when emoji metadata is copy-pasted into a new file (including Raycast emojis) #1018

@gakz

Description

@gakz

When creating an AppleScript Script Command by copy-pasting the official Raycast template into a newly created file, the command fails to execute with:

NSPOSIXErrorDomain 8 – Exec format error

This occurs when the script metadata contains an emoji (for example in @raycast.icon), including emojis inserted via Raycast’s own emoji picker.

The same script works correctly when:
• the template file is downloaded directly
• the emoji metadata line is removed

This suggests a Unicode encoding or normalization issue triggered by emoji metadata in combination with copy-paste file creation. The error happens before the script runs and shows up as a low-level execution error, not a metadata error. I’ve seen the same behavior with newly created scripts as well, not only when starting from the template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions