Has anyone used the AppleScript html export lately?

25 views
Skip to first unread message

Bob White

unread,
Aug 23, 2013, 12:46:30 PM8/23/13
to coverstor...@googlegroups.com
Last post I saw on AppleScript report is now over two years old.

Seems to me the newer AppleScript interpreter does not parse "export to html" as a single command because I get:

execution error: Can’t get HTML of "./ci_artifacts/coverage/". (-1728)

when I attempt to export via

osascript bin/coverage_report.applescript ./ci_artifacts/coverage

I get: 

tell application ((<my bin path> as string) & "CoverStory.app")
activate
set x to open <my project>
tell x to export to HTML in (item 1 of argv) 
 end

CoverStory comes up and loads all the files properly so I know it's not a path issue. 
 
If I wrap "export to HTML" in parens the error is:

execution error: The variable HTML is not defined. (-2753)

Anyone have any thoughts?

Bob 

Darren Ehlers

unread,
Dec 9, 2013, 11:52:56 PM12/9/13
to coverstor...@googlegroups.com
I finally solved this one.  The CoverStory.app must be in the ~/Applications/ directory.

There may be a way around this by dealing with permissions, but I haven't been able to get it to work otherwise.

Mike Maietta

unread,
Mar 13, 2014, 2:55:07 PM3/13/14
to coverstor...@googlegroups.com
I was able to get around the Applications directory issue by directly hardcoding a full path to the local CoverStory.app within my repo.  I'm still trying to find a way to have the path be dynamic, but it seems Export to HTML only is understood by applescript when it's set to: tell application "PATH TO APP/CoverStory.app".  If one were to replace it with a variable, the Export command is no longer recognized.
Reply all
Reply to author
Forward
0 new messages