Simon Willison on Nostr: Yet another example of AppleScript as a read-only programming language - the recipe ...
Yet another example of AppleScript as a read-only programming language - the recipe for converting the content of the clipboard to a PNG really is this:
```
'set theImage to the clipboard as «class PNGf»'
```
I don't even know how to type a « and a »!
Published at
2024-04-05 00:33:03Event JSON
{
"id": "6be43555a7dca82acee0e3c380db31e384ea0359c1a585ce962608d71ac921cd",
"pubkey": "8b0be93ed69c30e9a68159fd384fd8308ce4bbf16c39e840e0803dcb6c08720e",
"created_at": 1712277183,
"kind": 1,
"tags": [
[
"e",
"54933499efc57131d1113f51f650a1ba4cde2f6a0abad6381b0e4beeb8806090",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fedi.simonwillison.net/users/simon/statuses/112215797495713807",
"activitypub"
]
],
"content": "Yet another example of AppleScript as a read-only programming language - the recipe for converting the content of the clipboard to a PNG really is this:\n\n```\n'set theImage to the clipboard as «class PNGf»'\n```\nI don't even know how to type a « and a »!",
"sig": "de7ee405f5247ca013dcd8f3419569e43f7188f0b93e957d5be5a7fa885e90b4239624e45b553b7a2e58754815da415dadf0db67e57fa61807d54f7abc1b2654"
}