Here’s what I’m trying to have happen:
- Share YouTube link from iOS share sheet (via shortcuts) creates a file in an iCloud directory.
- Hazel is watching that directory and when a file is added runs an apple script that takes the url from the text file and opens it in Downie
- Downie is configured to save videos directly into my Plex library.
I have 1 & 3 solved. I’m stuck on 2. Here’s the AppleScript that works:
tell application "Downie" open location "https://www.youtube.com/watch?v=leymqM3a8ho" end tell
But I can’t figure out a way to have Hazel replace that YouTube url with the text contents of the file that triggers the rule.
Thanks for any help you can provide!