Anyone know a better way to return to shortcuts app that the one shown in this script:
let file = args.shortcutParameter
let name = args.plainTexts
let fm = FileManager.iCloud()
let path = fm.bookmarkedPath(“Documents_VLC”)
let final = path+"/"+name+".mp4"
My script receive a video from a shortcut and copy it to a bookmarked folder. It’s works but there is two issues that bother me:
The first issue is that, even if the script works and returns me to the shortcut, I cannot pass any variable/data back to the shortcut.
The second issue is that the script only works to return to the shortcut if the shortcut is run from the shortcuts app. If I try to work it from the “share sheet” its return to the shortcuts main page but not the running shortcut. I manage to make it work modifying the last line of my script to:
Which make me return to the app where all begun (Safari) I prefer to return to a blank tab or similar but my newbie knowledge just lead me to that.
Any ideas? I ask the same thing in reddit but no solution yet
Thanks in advance