I've been an Alfred user for quite some time, but never a power user. I've recently started taking Alfred more seriously as a productivity tool, and I came across a script by @senhortavares, that retrieves a title, a URL from the web, and downloads it as markdown, creating an Obsidian file. The start of the workflow starts like this with Safari, and it works flawlessly. Then, there's a curl, an html2text step, and finally everything put down in a file.
tell application "Safari" to set currentURL to the url of the front document
tell application "Safari" to set theTitle to name of front document
set bundleID to (system attribute "alfred_workflow_bundleid")
tell application id "com.runningwithcrayons.Alfred"
set configuration "url" to value currentURL in workflow bundleID
set configuration "title" to value theTitle in workflow bundleID
Any thoughts on what could be wrong to fix this first step?
Thanks in advance and Happy New Year! 😁