Get current html
source of an hs.webview object?
#3075
Unanswered
luckman212
asked this question in
Q&A
Replies: 4 comments 2 replies
-
Use JavaScript to communicate between your web content and Lua: |
Beta Was this translation helpful? Give feedback.
0 replies
-
@latenitefilms Any small examples of this that you know of? I'm not sure where to begin. Sorry. |
Beta Was this translation helpful? Give feedback.
2 replies
-
@latenitefilms Took me the better part of the day but -- got it working! Thanks a million for the nudge in the right direction. |
Beta Was this translation helpful? Give feedback.
0 replies
-
To anyone stumbling onto this randomly, this gist also helped get me to the finish line. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to make a "scratchpad" type function in Hammerspoon, and have a skeleton working (see here)
What I want to be able to do is save/restore the contents of this
<textarea>
-- but thehs.webview:html()
method only sets, it doesn't seem to get.Anyone know a way around this?
Beta Was this translation helpful? Give feedback.
All reactions