Re: Stock Quotes using AppleScript
Re: Stock Quotes using AppleScript
- Subject: Re: Stock Quotes using AppleScript
- From: "Mr. Thomas Boardman" <email@hidden>
- Date: Sun, 15 Mar 2009 18:51:58 -0400
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)
set tta to "http://download.finance.yahoo.com/d/quotes.csv?s=" &
theTicker & ",&f=t1"
set tt to paragraphs of (do shell script "curl " & quoted form of tta)
set dra to "http://download.finance.yahoo.com/d/quotes.csv?s=" &
theTicker & ",&f=m"
set dr to paragraphs of (do shell script "curl " & quoted form of dra)
display dialog "Current Prices for: " & na & return & "Daily High: "
& hi & return & "Daily Low: " & lo & return & "Last Trade: " & l &
return & "Last Trade Time: " & tt & return & "Percent Of Change: " &
pc & return & "Daily Range: " & dr buttons {"End", "Repeat"}
set thebutton to button returned of result as string
if thebutton = "End" then exit repeat
end repeat
Thomas A. Boardman
email@hidden
Sent Via MacBook Pro
On Mar 15, 2009, at 5:42 PM, Shane Stanley wrote:
On 16/3/09 1:12 AM, "John C. Welch" <email@hidden> wrote:
And I'm not sure that the idea of having third-party additions
installed by
default, even if in a place where they're not activated by
default, is so
outrageous in a system where there are several gigabytes of print
drivers of
sometimes dubious quality installed on behalf of third parties.
Somehow, I doubt that's done for free, and as well, the use cases
for both
are *hugely* different.
I wasn't suggesting otherwise. I was merely pointing out that the
argument
that Apple couldn't ship third-party stuff without taking
responsibility for
it is demonstrably false.
--
Shane Stanley <email@hidden>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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