Stock Quotes using ApplScript
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