• 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
Stock Quotes using ApplScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stock Quotes using ApplScript


  • Subject: Stock Quotes using ApplScript
  • From: "Mr. Thomas Boardman" <email@hidden>
  • Date: Thu, 12 Mar 2009 20:08:17 -0400

I sign up for the mailing list a while back but haven't posted anything until now. I sat down last night looking at the emails from the stock quotes issue, I haven't dealt with the on the hour thing but thought maybe you could build on this:
repeat
display dialog "Enter Ticker:" default answer ""
set theTicker to text returned of result
set nb to "http://download.finance.yahoo.com/d/quotes.csv?s="; & theTicker & "&f=n"
set na to paragraphs of (do shell script "curl " & quoted form of nb)
set la to "http://download.finance.yahoo.com/d/quotes.csv?s="; & theTicker & "&f=l1"
set l to paragraphs of (do shell script "Curl " & quoted form of la)
set loa to "http://download.finance.yahoo.com/d/quotes.csv?s="; & theTicker & ",&f=g"
set lo to paragraphs of (do shell script "curl " & quoted form of loa)
set hia to "http://download.finance.yahoo.com/d/quotes.csv?s="; & theTicker & ",&f=h"
set hi to paragraphs of (do shell script "curl " & quoted form of hia)
set pca to "http://download.finance.yahoo.com/d/quotes.csv?s="; & theTicker & ",&f=c"
set pc to paragraphs of (do shell script "curl " & quoted form of pca)
display dialog "Current Prices for: " & na & return & "Daily High: " & hi & return & "Daily Low: " & lo & return & "Last Trade: " & l & return & "Percent Of Change: " & pc
end repeat




Thomas A. Boardman
email@hidden
Sent Via MacBook Pro








_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: Stock Quotes using AppleScript
  • Next by Date: Re: Stock Quotes using AppleScript
  • Previous by thread: Automator SQL Examples
  • Next by thread: Can someone explain this?
  • Index(es):
    • Date
    • Thread