In BBEdit there is the command under Markup -> Check -> Document Links
shortcut cmd+control+k that checks all links. When I look at the dictionary under BBEdit > HTML Scripting -> check links
it shows:
but when I try to script against a project with:
set theResult to check links of active document of project window 1
I get an Error of item
, when I try to check based on the filename with:
set foobar to (name of active document of project window 1) as string
set theResult to check links of foobar
I still get the same error, if I try:
set projectPath to file of project document 1
set theResult to check links of projectPath
I get a returned of {}
. Thinking it was an issue with not adding with show results
I changed it to:
set theResult to check links of projectPath with show results
but I get a return of activate
When I search through Google I'm unable to find a solution on if it's possible to return a boolean on wether the links in the HTML file are valid when scripting through the content. So my question is, how can I get AppleScript to tell me the links are valid in BBEdit with check links
?