All Features
developer

URL Scheme - Media Attachment from URLs

Attach local files or remote URLs via URL scheme parameters

Attach media automatically using URL scheme. Local file paths, file:// URLs, or http/https URLs all work. Automate posting with images from anywhere - local disk, web, or generated content. Perfect for scripted posting workflows.

How to Use

  1. 1Create script with local file path
  2. 2URL: statuz://compose?media=/Users/name/image.jpg
  3. 3Execute URL
  4. 4Show composer with image attached
  5. 5Try remote URL: statuz://compose?media=https://example.com/photo.jpg
  6. 6Show Statuz downloading and attaching
  7. 7Try multiple media: media=file1.jpg,file2.jpg,video.mp4
  8. 8Show all three items in media grid
  9. 9Combine with text: statuz://compose?text=Check%20this&media=/path/to/image.jpg
  10. 10Show post with text and media
  11. 11Demonstrate automation: screenshot script → attach → post
  12. 12Show complex workflow with generated content
  13. 13Verify media from any source works

Key Features

  • Local File Paths - Attach files from Mac disk
  • File:// URLs - Standard file URL format
  • Remote URLs - http/https automatic download
  • Multiple Media - Comma-separated paths
  • Any Format - All supported formats work
  • Text Combination - text= and media= together
  • Automation Perfect - Scripts attach media automatically
  • Generated Content - Attach programmatically created media
  • Screenshot Workflows - Attach latest screenshot
  • Download Handling - Remote media downloaded automatically
  • Path Flexibility - Absolute or relative paths
  • Security Bookmarks - Created automatically
  • Error Handling - Clear messages for invalid paths

Why Developers Love It

Automating social media means attaching media programmatically. URL scheme media= parameter makes it trivial - generate image, attach via URL, post. Complete automation.

Pro Tips

  • Absolute paths most reliable
  • file:// URLs work for local files
  • Remote URLs download automatically
  • Multiple media: Separate with commas (no spaces)
  • Screenshot automation: Get latest screenshot path → attach
  • Generated charts: Create graph → attach → post
  • Photo processing: Edit → export → attach → schedule
  • Template images: Programmatically generate → attach
  • URL encode: Spaces and special characters need encoding
  • Error handling: Check file exists before URL scheme

Example Automations

Post Latest Screenshot:

file=$(ls -t ~/Desktop/Screen*.png | head -1)
open "statuz://compose?media=$file"

Daily Chart Post:

chart_path = generate_chart()
url = f"statuz://compose?text=Daily%20Stats&media={chart_path}"
os.system(f"open '{url}'")

Remote Image Post:

open "statuz://compose?media=https://example.com/photo.jpg&text=Check%20this%20out"

Try Statuz today,
it's free.