Re: Simple Safari/IE Script problems
Re: Simple Safari/IE Script problems
- Subject: Re: Simple Safari/IE Script problems
- From: Bill Briggs <email@hidden>
- Date: Sun, 2 Feb 2003 21:27:50 -0400
At 2:33 PM -0800 02/02/03, John Allen wrote:
In fact speed here isn't of paramount importance and I would be more than
happy to just be able to simple copy the contents of a Safari or IE webpage
and paste it into FileMaker using AS. Combined with what I have already set
up for the group within FileMaker this will already shorten what has been
until now a very tedious task by over 95%! So if you or anyone has a
suggestion as to how to do that or if one can use cookies in a shell script
as you mention and you could help me get started with that, I would be very
grateful for advice in either or both directions!
If you need to use the browser because of cookies, then you can
still do what you want easily. I've not done this in a couple of
weeks, and I'm booted in the "other" Mac OS right now so am going
from memory, but, I think it was something like this...
You load the window in Safari, then ask for properties of the
window/document (don't recall the exact syntax). What you get back is
a record that has half a dozen items in it. One of those items is the
page source, and another is the page text. You didn't specify which
you wanted to dump in FileMaker Pro, but assuming it's the text, then
you just need to get the text of the document/window and you're in
business. No "pasting" involved. You just set the cell in FileMaker
Pro to the text of the window. Safari makes it very easy. I wrote a
few scripts in San Francisco the day it was announced to take web
pages from Safari and send them to someone using Mail or Eudora. It's
easy. I'll forward one of them off list so you'll see how the text is
extracted.
- web
_______________________________________________
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.