I want use Applescript to repeat the processing of export markdown to HTML on app typora
I think it can be two-part
first: click export to HTML second: choose the target directory and click save
but I have a problem with first step
tell application "System Events"
tell application "Typora"
open "path/to/my/markdown.md"
end tell
tell process "Typora"
click (menu item "HTML" of menu "export" of menu item "export" of menu "file" of menu bar item "file" of menu bar 1)
end tell
end tell
this code doesn't work. no window popped up (ask me to choose target directory) after I run this script