Help scripting form IE to TextEdit using Cut & Paste needed!
Help scripting form IE to TextEdit using Cut & Paste needed!
- Subject: Help scripting form IE to TextEdit using Cut & Paste needed!
- From: Allen Evans <email@hidden>
- Date: Fri, 3 Jan 2003 15:40:00 -0500
Need help making a script to cut and paste out of HTML in IE to text in
TextEdit for update through Pod2Go to my iPod.
Here are what we have figured out so far in the MacAddict Forums (
http://www.macaddict.com/phpBB2/viewtopic.php?t=3047 ):
POST 1:
So I got my 5GB iPod for Christmas. I love it. I ues Pod2Go to update
news and fun stuff into my contacts list at the click of a button.
But I am wondering if I could take information off a web page and make
a custom contact.
The information I want is from www.Sugarbush.com
I want to get the snow report. Now, I realize this is a graphic page,
so could I somehow get an app to recognize and update only cirtin
sections of the HTML, for example the number of trails, number of
lifts, snow quality report, and snowmaking situation? These
informations stay in the same palce in the HTML every day, just the
numbers change. So why couldent it access only the information in those
places and update them. Like making the graphic site into a text site
(becuase the only information I want, and that I want updated is text).
Thanks dudes!
POST 2:
I just got an iPod for Christmas too, and it's awesome! I went to the
snow report page at Holiday Valley
(
http://www.holidayvalley.com/snowreport.cfm), selected all, copied and
pasted into a TextEdit document and save the file. Obviously, no
graphics make it across but I get all the information I need. Then in
Pod2go, I choose the file under the Text tab of P2G and sync. Voila,
it's there! Now we just have to find somebody who knows a little
AppleScript to get it to automatically update the file every morning...
Hope that works for you,
Later!
POST 3:
Sweet. That is just what I want to do. Automating it to update is the
problem (so that the text file updates, then when Pod2Go updates the
text file, it will be automaticaly the updated version).
Afterall, for all it takes to cut and paste that stuff into the text
file, and then to update Pod2Go, I might as well just read the
snowreport online!
We need automation. AppleScript help anyone?!??
Thanks!
POST 4:
OK...
I've created an AppleScript that opens IE and points it to the snow
report site. Here it is:
Quote:
property target_URL : "
http://www.sugarbush.com/snowreport/index.htm"
open location target_URL
Now I need (HELP!!!) to have it select some text from that page out of
the HTML. The text I need, when manualy cut from the browser window and
pasted into text edit looks like this:
Quote:
STATS
Trails Open 73 24 Hr. Snowfall 0"
Lifts Open 16 48 Hr. Snowfall 0"
Miles Open Weather Partly Cloudy
Average Base Depth: Min: 3" | Max: 60"
Hours of Operation: 8:00 AM - 4:00 PM
SURFACE CONDITIONS
Primary Surface: Hard PackLoose Granular
Secondary Surface: Frozen Granular
TODAYS REPORT
The forecast for today is calling for periods of light snow and later
in the day into tonight, a winter weather advisory is in effect with up
to 6 of accumulation and more tomorrow.
I got out on the slopes yesterday, the skiing was fast, and there was
lots of nice fluffy snow on the trails that were blasted by the snow
guns. The groomers have done a great job and were looking forward to
the snow that is forecasted for tonight and tomorrow. We will open
today with 73 trails and 16 lifts on loose granular and frozen granular
conditions.
Come on out and test-drive the latest gear from Atomic today from 8 to
3 at Lincoln Peak.
Dont forget about the Mad Bus. Enjoy free transportation around the
valley and the convenience of door-to-door service. Call 496-RIDE for
more information or a ride.
Call the Snow Phone at 802-583-SNOW for up-to-date information.
Then that info needs to be pasted into a TextEdit document in my
userfolder.
So I could run this script which would update the new snow info to this
(TextEdit) file.
Then I place that (TextEdit) file in my Pod2Go Text files to put in my
contacts. So I would just run the script, then Sync Pod2Go to have
updated snow info on my iPod.
PLEASE HELP ME WITH SCRIPTING! or at least I need to find a site with
AppleScript help info.
Nither InternetExplorer, or TextEdit are supported by AppleScript (I
figured this out at
http://www.apple.com/applescript/apps/ ) but I
think this can still work.
The main problem seems to be how to cut out of the HTML and paste into
TextEdit.
THANK YOU!
(end paste from
http://www.macaddict.com/phpBB2/viewtopic.php?t=3047 )
Thanks for your help!
I'm looking forward to a quick solution!
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.