On Nov 02, 2015, at 00:05, DaveC <email@hidden> wrote:
I want to collect some text (either in text format or screenshot) of web pages on one web site.
______________________________________________________________________
Hey Dave,
It's probably doable, but I can't say for sure without seeing the site.
I’d like to input this data into a spreadsheet, preferably into specific fields of an existing sheet.
Impossible to speculate. What spreadsheet app?
Excel is doable. Numbers? Maybe. OpenOffice. Nope. LibreOffice? Nope.
Here's a little code to get you started.
------------------------------------------------------------------------- tell application "Finder" to set desktopBounds to bounds of window of desktop set item 2 of desktopBounds to 23
tell application "Safari" tell front document set pageText to its text set pageSource to its source end tell end tell
tell application "BBEdit" make new text window with properties {text:pageText, bounds:desktopBounds} make new text window with properties {text:pageSource, bounds:desktopBounds} end tell -------------------------------------------------------------------------
If you don't have BBEdit then download its freeware sibling TextWrangler and change BBEdit in the script to TextWrangler.
What version of OSX are you using?
|