• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simple Safari/IE Script question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Safari/IE Script question


  • Subject: Re: Simple Safari/IE Script question
  • From: Andrew Oliver <email@hidden>
  • Date: Sat, 01 Feb 2003 14:08:12 -0800

First of all, don't use Safari.

This code snippet will fetch the source of Apple's home page and put it into
an AppleScript variable, from where you can put the data into FileMaker.

set theSource to do shell script "curl -url http://www.apple.com/";

It's way faster than using Safari since a) the browser doesn't need to be
open, and b) you don't need to wait for the page rendering to finish.

Also, by working in the background you don't interrupt the user's web
browsing experience (if you used the browser code, you'd pop up a new
browser window in front of whatever the user was looking at).

Andrew
:)

On 2/1/03 1:47 PM, "John Allen" <email@hidden> wrote:

> Apologies in advance for a very simple AS question that I somehow can't
> handle.
>
> I am trying within FileMaker to go to web page, copy that web page's
> contents and paste that back into a FileMaker field where I will parse out
> the data I want. Within FileMaker everything works fine including opening
> the web browser and going to the desired web page and running the desired
> search there (all of this using FileMaker's Open URL script step). Once I
> have the web page (in Safari or IE) though I can't figure out a script in AS
> to copy the contents of the page and then delete the web page. I did a
> little AppleScript a few years ago but all of my efforts are coming up
> empty. I could also save the page to a file on disk and import it into
> FileMaker if I had to but I would rather just paste it straight into the
> FMP file. Any help for this would be greatly appreciated...
>
> Yours,
>
>
> John Allen
> Division of Oncology
> Stanford University
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >Simple Safari/IE Script question (From: John Allen <email@hidden>)

  • Prev by Date: Re: Stuck and no where to go... Please read..
  • Next by Date: introspection questions
  • Previous by thread: Simple Safari/IE Script question
  • Next by thread: Re: Simple Safari/IE Script question
  • Index(es):
    • Date
    • Thread