AppleScript
Inline supports scripting on macOS via AppleScript. Here's a guide with some examples that are useful for asking your LLM to create any scripts you may want for making shortcuts, local integrations, etc.
Account and Spaces
Return the current account and cached spaces:
tell application "Inline"
return {current account, list spaces}
end tellCurrent Conversation
Return the open reply thread or primary conversation:
tell application "Inline"
set selectedChat to current selection
if selectedChat is missing value then error "Open a conversation first." number -1728
return {id of selectedChat, name of selectedChat, URL of selectedChat}
end tellcurrent selection: open reply thread, otherwise the primary conversation.current thread: alias forcurrent selection.current chat: primary conversation only.
Find a Person
Search cached users in a space:
tell application "Inline"
return find users "@maya" in space "7" maximum count 20
end tellSearch public usernames when the person is not cached:
tell application "Inline"
return search public users "@maya" maximum count 20
end tellIDs
Keep IDs as quoted decimal text, such as "42".
Create a Thread and Send
Replace the space ID and username before running:
tell application "Inline"
set people to find users "@maya" in space "7"
if (count of people) is not 1 then error "Choose exactly one participant."
set recipient to user id of item 1 of people
set newThread to create thread "Release review" in space "7" participant ids {recipient}
set destination to chat id of newThread
set body to "**Ready for review** — [@Maya](inline://user/" & recipient & ")"
return send message body to chat destination
end tellCreate a public space thread with publicly visible true and no participant list. Home threads cannot be public.
Send and Retry
Send Markdown to a known chat:
tell application "Inline"
return send message "**Build passed**" to chat "123"
end tellReuse the same positive Int64 request ID only when retrying the same logical send:
tell application "Inline"
return send message "Build passed" to chat "123" request id "456"
end tell- Markdown mentions:
[@Maya](inline://user/42) - Success returns
chat id,message id, andsend request id.
Open a Chat and Copy Its Link
Find one cached chat, open it, and copy its link:
tell application "Inline"
set matches to find chats "Design" maximum count 20
if (count of matches) is not 1 then error "Choose a more specific name."
set destination to chat id of item 1 of matches
open chat destination
set the clipboard to chat link destination
end tellShell Script
Save this as notify-inline.applescript:
on run argv
if (count of argv) is not 2 then error "Usage: notify-inline.applescript CHAT_ID MARKDOWN"
set destination to item 1 of argv
set body to item 2 of argv
tell application "Inline"
set receipt to send message body to chat destination
return message id of receipt
end tell
end runRun it with a chat ID and Markdown body:
osascript ./notify-inline.applescript "123" "**Build passed**"Command Syntax
show inlinecurrent accountlist spaceslist users [in space "7"] [maximum count 20]find users "Maya" [in space "7"] [maximum count 20]user info "42"search public users "@maya" [maximum count 20]list chats [in space "7"] [maximum count 20]find chats "Design" [in space "7"] [maximum count 20]current chat/current thread/current selectionopen chat "123"create thread "Review" [in space "7"] [participant ids {"42"}] [publicly visible true]recent messages "123" [before message "789"] [maximum count 20]send message "Hello" to chat "123" [request id "456"]chat link "123"
Lists use cached data. Counts accept 1–100; public search returns at most 20 results. Titles are limited to 150 UTF-16 units. Commands have a 30-second deadline and at most 16 may be in flight.
macOS Automation permission is required. Errors: -1743 permission, -10004 account unavailable, -1728 item unavailable, -1712 timeout, -10000 operation failed.