Re: Stock Quotes using AppleScript
Re: Stock Quotes using AppleScript
- Subject: Re: Stock Quotes using AppleScript
- From: Bill Briggs <email@hidden>
- Date: Wed, 11 Mar 2009 17:48:00 -0300
At 12:27 PM -0700 3/11/09, Oakley Masten wrote:
>Today is my day to wonder about things.
>
>If I wanted to get hourly stock quotes using AppleScript:
>Where would I start?
>You know - to chart changes in the market.
>I actually bought a few shares of Apple.
>
>I have created a FileMaker database to store the data. [I get the quotes and enter them manually now.]
>I can do all of the FileMaker Scripting but what do I use as a source to get the quote in the first place.
>
>The Stock Widget that comes with the computer shows the current price of selected stocks.
>I don't know if that is scriptable or not.
>
>I could use some help with the direction to try for this.
>
>Thanks for the insight
>Oakley
Among the Library scripts that ship with your Mac, in the Internet Services folder, there is a Stock Quotes script (I don't know if it shipped in newer versions of OS X, but I have a lingering copy from long ago, so maybe it's not there if you just started using a Mac). It gets the stock quotes from a SOAP server, and you could use it as a starting point to do what you want. I see that it's broken now, so perhaps this SOAP server is no longer functional. But it's one way to do it if you can find a server that delivers stock quotes. I've never bothered, though I own Apple stock, and so does my daughter. Oh, and that stock widget: it also graphs the stock for the previous few days or months (user selected time window). So you can get historical data.
But why bother. You can get the same information already without having to waste time on maintaining a database yourself. Just go to <http://www.google.com/finance?q=AAPL&client=news>
and you've got the entire company stock history. It's way easier than writing an AppleScript to get a few data points, and a lot more comprehensive. And to wander totally off topic, day-trading Apple stock is a way to have a heart attack. If you bought it, you want to be in for the long haul to get a good return. It's a very healthy company. The financials are superb and when the recession is over, it's going to start the recovery in a better position than the rest of the sector.
- web
_______________________________________________
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