Can't get CoverStory HTML Export working with AppleScript

66 views
Skip to first unread message

Johannes Rudolph

unread,
Jun 10, 2011, 10:34:09 AM6/10/11
to coverstory-discuss
Hi,

I can't get the sample from the wiki to work. Running:

tell application "CoverStory"
activate
set a to open "MYPATH_HERE"
tell a
export to HTML
end tell
end tell

Result:
„export to HTML“ is missing parameters. On top of that, I'd like to
supply a custom export directory. Any help on how to achieve this (the
script is meant to be run in a CI Scenario) are greatly appreciated.

Regards,
Johannes

Johannes Rudolph

unread,
Jun 11, 2011, 5:40:34 PM6/11/11
to coverstory-discuss
Okay, I just want to share my solution here, now that I've found one. This is the apple script I run from my build script via something like 

osascript coverStory.applescript $PWD $PWD/Artefacts/Coverage

on run argv

tell application "tool/CoverStory.app"

quit

activate

set x to open (item 1 of argv)

tell x to export to HTML in (item 2 of argv)

quit

end tell

return item 1 of argv & "|" & item 2 of argv

end run


It takes two arguments, the first being the directory to open the gcda and gcno's from and the second being the export path. Hope it's useful to someone else. Would be more than happy to see this in the wiki, you have my green lights for that.


Regards,

Johannes 





--
You received this message because you are subscribed to the Google Groups "coverstory-discuss" group.
To post to this group, send email to coverstor...@googlegroups.com.
To unsubscribe from this group, send email to coverstory-disc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/coverstory-discuss?hl=en.


Bob White

unread,
Aug 23, 2013, 12:50:10 PM8/23/13
to coverstor...@googlegroups.com, jojo.r...@googlemail.com
This does not work for me.

CoverStory opens, but it appears the newer AppleScript parser does not like "export to HTML" as a command.

Have you done anything with this recently?

Bob

Elvis Yang

unread,
Jul 1, 2014, 1:38:46 AM7/1/14
to coverstor...@googlegroups.com, jojo.r...@googlemail.com
The following works for me:

tell application "CoverStory"

activate

set a to open "lcda files' folder"

tell a

export to HTML in "out_final.html"

end tell

end tell

Reply all
Reply to author
Forward
0 new messages