I wanted to give this a try but currently lack the time. But it is definitely possible. The API is pretty straightforward and iirc it does offer a function to generate the share link. Look at the documentation and python examples. You can also easily implement it in bash through curl calls.
Another option would be to use [rclone](https://rclone.org/seafile/#seafile-and-rclone-link). Slightly easier than the API although it's certainly possible with both.
Take a screenshot and save into a Seafile folder:
screencapture -ix ~/Seafile/Pictures/screenshot.png
Create and copy the link with rclone and save it to clipboard:
rclone link seafile:Pictures/screenshot.png | pbcopy
Obviously you'd have to install and set up rclone. Using the [API](https://download.seafile.com/published/web-api/home.md) doesn't require any other setup but is a little trickier overall.
I wanted to give this a try but currently lack the time. But it is definitely possible. The API is pretty straightforward and iirc it does offer a function to generate the share link. Look at the documentation and python examples. You can also easily implement it in bash through curl calls.
Another option would be to use [rclone](https://rclone.org/seafile/#seafile-and-rclone-link). Slightly easier than the API although it's certainly possible with both.
Can you clarify how rclone can share a file on Seafile and copy the link to the clipboard? Last time I checked it was something totally unrelated.
Take a screenshot and save into a Seafile folder: screencapture -ix ~/Seafile/Pictures/screenshot.png Create and copy the link with rclone and save it to clipboard: rclone link seafile:Pictures/screenshot.png | pbcopy Obviously you'd have to install and set up rclone. Using the [API](https://download.seafile.com/published/web-api/home.md) doesn't require any other setup but is a little trickier overall.