Thanks for help with Numbers and web stock quotes

Koenig Yvan,
I want to public thank you for sharing your Applescript: InsertQuotes from 2009 that works with Numbers.
I've successfully modified and simplified it for my purposes to be able to retrieve and set values for a portfolio of U.S. mutual funds that are our investments.  I have a spreadsheet that started out years ago as an Excel spreadsheet on Windows XP and used Microsoft's ability to retrieve information from the web from finance.yahoo.com and place it in Excel spreadsheet cells. 
I converted that spreadsheet to Google spreadsheet using their GoogleFinance function.  It proved to be unreliable intermittently and now I've taken that spreadsheet into Numbers '09 and used your script, modified to use my portfolio's list of symbols and to put just the prices into a quotes sheet.  For each account I track in my Numbers spreadsheet I use the table Lookup function to search the quotes sheet for a specific symbol and have the function return the associate price.
Following your instructions I put the Applescript in the ~/Library/Scripts/Applications/Numbers/ and after opening my Numbers spreadsheet, with one mouse click in the System wide Scripts menu, execute the script which accesses finance.yahoo.com and sets the latest prices into my quotes sheet.
Thanks very much for sharing with everyone.  I appreciate having access to your work to make my work much easier.

Which structure ?
If you are wondering about the Library folder, it's a feature described thiuysands of time.
In Lion, this folder is hidden.
press Option while triggering the menu "Go to" give access to this folder.
Yvan KOENIG (VALLAURIS, France) vendredi 14 octobre 2011 20:36:13
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community

Similar Messages

  • Moving to OSX - thanks for help with OS9

    Sadly the time has come to forego the comfort of the traditional Mac interface which I've been using since System 1 and move to the childish, space-wasting look of OSX.
    Since I have been a member of Discussions I have usually found answers to my problems in the OS9 forums and I would thank all those members who have taken the time and trouble to reply to my questions. Many have helped, but I must make special mention of Don Archibald whose replies have always been prompt, courteous, concise, full and clear.
    Many thanks to all.
    Michael

    Hi, Michael -
    You're quite welcome - glad to have been able to help.
    Good luck on becoming accustomed to OSX.
    Sadly the time has come to forego the comfort of the traditional Mac interface which I've been using since System 1 and move to the childish, space-wasting look of OSX.
    I fully agree with the sentiments; fortunately for me, I have not yet had to make the move to OSX.
    My best hammer, screwdriver set, and other preferred tools are at least 10 years old, some over 40 years old - they still do the job, so I haven't replaced them.

  • (newbie and technophobe here) Help with speakers and web camera ...

    Hello, everyone!
    I've had my G-5 since I ordered new in November of 2005, and only now am I geting around to purchasing speakers and musing about a web camera.
    On speakers, the kid at Best Buy yesterday told me that speakers aren't really operating system specific. That is, that they plug and play into any computer and don't require any software; like speakers do to a stereo. However, I just noticed the speakers I bought (Logitech Z-10) for $120.00 do not have "Macintosh" listed on the box as it does for a PC on the Requirements listing. Before I open this box and find out they don't work properly, do I really need Mac specific speakers?
    I also went to the Mac store here in Fashion Valley and they no longer carried any web cameras. After visiting three other computer retailers such as Best Buy, and Frys, I came up dry on cameras for a Mac. I do however have an Ebay merchant selling a MacAlly iceCam Web Camera Mac right here in town who I can drive over and purchase one if I want to. However, after going on Ebay, I noticed that the $300.00 Mac iSight camera is there for sale, so I was wondering what the difference was. The MacAlly one is around $27.00, whereas the iSight is close to $300.00. Is the iSight worth the price in other words? What can it do that the MacAlly can't? Would the MacAlly suffice just to talk to another across the country?
    Thank you.
    G-5 Imac Mac OS X (10.3.9)

    Martin, Rod:
    Thank you for your responses. I think I have Panther(10.3.9), so will iChatAV be in that system, or will I have to upgrade to Tiger in order to make full use of an iSight camera ? Can I web camera with AOL subscribers, or am I pretty much limited as to who I can conference with?
    Thank you for clearing up the speaker thing. It looks like I'll be returning them to Best Buy tomorrow, and then start a search for Apple specific speakers. Thanks again.
    iSight question: It looks like I'm going to have to purchase an iSight web camera at an overinflated price at a site such as Ebay since Apple no longer produces them, so my question is, Does anyone know whether the camera came with software or manuals (In case the seller doesn't have any) ... or does one actually need any?
    Keychain Question: What's this annoying keychain box that pops up everytime I use Safari? How do I get rid of it? What's it for? What am I supposedly unlocking? I don't think I have a keychain password.
    Thank you all for your assistance,
    Frank
    G-5 Imac   Mac OS X (10.3.9)  
    G-5 Imac   Mac OS X (10.3.9)  
    G-5 Imac   Mac OS X (10.3.9)  

  • Hi nid help with database and web

    hi to all! i wanted to get some help on how to connect to a database in a web... i dont know if its javascript,java applet,or jsp... could some1 pls give me a code on how to make a simple login database connection in a web through java.. i really nid it guys... we have our contest next week... pls.. i really nid your help... tnx!

    hi to all! i wanted to get some help on how to
    connect to a database in a web... what do you know about databases and the web today?
    i dont know if its
    javascript,java applet,or jsp... yes.
    could some1 pls give
    me a code on how to make a simple login database
    connection in a web through java.. (1) create a table USER in your favorite relational
    database - id, username, and password should be
    enough.
    (2) Use HTML to create a login form - username and
    password text fields and a submit button will be
    good.
    (3) Write a JSP using JSTL <sql> tags to query the
    database and put the result into request scope.
    (4) Redirect to a success JSP to demonstrate a
    successful login, or back to the login if it fails.
    i really nid itI hope this helps.
    guys... we have our contest next week... pls.. i
    really nid your help... tnx!What do "we" win? Will you be listing me as the sole
    developer if I write this for you?
    My rate is $120 USD per hour. Give a credit card
    number and I'll get right on it.<Actually its just a contest for our intramurals.. i was just hoping if u guys could help me ... thnx!

  • Need scanner App for Dock. I have Maverick 10.9.5 and Epson Perfection V500 photo. My present app 3.7.1 won't work. Otherwise I have to go into System Preferences every time I scan to Select to switch from the Printer. Thanks for help.

    Need scanner App for Dock. I have Maverick 10.9.5 and Epson Perfection V500 photo. My present app 3.7.1 won't work. Otherwise I have to go into System Preferences every time I scan to Select to switch from the Printer. Thanks for help.

    You might give VueScan a try. It should work with your scanner. There's a demo version that you can use initially.

  • Export data to excel with EPPlus and Web Api - HELP!

    I am trying to do a simple excel file export with EPPlus and Web Api. In the html client I have a button that calls the web api and opens a new window. No error is thrown, but the result is always "file could not be downloaded".  I get the
    save file dialog but the file name is Order/ instead of the expected Orders.xls or Orders.xlsx.  Can anyone help? I'm surprised this is so difficult.
    using System.Linq;
    using System.Net.Http;
    using System.Web.Http;
    using OfficeOpenXml;
    using System.Collections.Generic;
    using System.IO;
    using System.Net.Http.Headers;
    using System.Net;
    using System.ComponentModel.DataAnnotations;
    namespace LightSwitchApplication
    public class OrdersController : ApiController
    // GET: api/Orders
    [HttpGet]
    public HttpResponseMessage Get()
    HttpResponseMessage response;
    response = Request.CreateResponse(HttpStatusCode.OK);
    MediaTypeHeaderValue mediaType = new MediaTypeHeaderValue("application/octet-stream");
    response.Content = new StreamContent(GetExcelSheet());
    response.Content.Headers.ContentType = mediaType;
    response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment");
    response.Content.Headers.ContentDisposition.FileName = "Orders.xls";
    return response;
    public List<Order> GetOrders()
    List<Order> colOrders = new List<Order>();
    using (ServerApplicationContext ctx = ServerApplicationContext.Current ??
    ServerApplicationContext.CreateContext())
    colOrders = ctx.DataWorkspace.Data.Orders.GetQuery().Execute().ToList();
    return colOrders;
    public MemoryStream GetExcelSheet()
    using (var package = new ExcelPackage())
    var worksheet = package.Workbook.Worksheets.Add("Orders");
    worksheet.Cells["A1"].LoadFromCollection(GetOrders(), false);
    package.Save();
    var stream = new MemoryStream(package.GetAsByteArray());
    return stream;
    This has been driving me crazy for two days!

    Making some progress.  I got the spreadsheet into a byte[] and used code from Paul Van
    Bladel's blog to make the HttpResponseMessage.  If I comment out the LightSwitch data access code, this works to export a spreadsheet from a static list to the browser from Web Api.
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Net.Http;
    using System.Net.Http.Headers;
    using System.Web.Http;
    using Microsoft.LightSwitch;
    using Microsoft.LightSwitch.Details;
    using OfficeOpenXml;
    using System.ComponentModel.DataAnnotations;
    namespace LightSwitchApplication
    public class Order
    [Key]
    public int Id { get; set; }
    public string OrderNumber { get; set; }
    public class OrdersController : ApiController
    // GET: api/Orders
    [HttpGet]
    public HttpResponseMessage Download()
    MediaTypeHeaderValue mediaType =
    MediaTypeHeaderValue.Parse("application/octet-stream");
    byte[] excelFile = ExcelSheet();
    string fileName = "Orders.xlsx";
    MemoryStream memoryStream = new MemoryStream(excelFile);
    HttpResponseMessage response =
    response = Request.CreateResponse(HttpStatusCode.OK);
    response.Content = new StreamContent(memoryStream);
    response.Content.Headers.ContentType = mediaType;
    response.Content.Headers.ContentDisposition =
    new ContentDispositionHeaderValue("fileName") { FileName = fileName };
    return response;
    public List<Order> Orders()
    List<Order> orders = new List<Order>();
    orders.Add(new Order { Id = 1, OrderNumber = "123456789" });
    orders.Add(new Order { Id = 2, OrderNumber = "987654321" });
    return orders;
    // this doesn't work
    //public List<Order> Orders()
    // List<Order> colOrders = new List<Order>();
    // using (ServerApplicationContext ctx = ServerApplicationContext.Current ??
    // ServerApplicationContext.CreateContext())
    // colOrders = ctx.DataWorkspace.Data.Orders.GetQuery().Execute().ToList();
    // return colOrders;
    public byte[] ExcelSheet()
    using (var package = new ExcelPackage())
    var worksheet = package.Workbook.Worksheets.Add("Orders");
    worksheet.Cells["A1"].LoadFromCollection(Orders(), false);
    byte[] bytes = package.GetAsByteArray();
    return bytes;
    The problem is that the LightSwitch query (commented out in the code above) is trying to load navigation properties for the orders.  Error: "It is not valid to access this object on the current thread."  How do I solve this? 

  • Hi, is it possible to print also A2 with adobe illustrator ? Thanks for help.

    hi, is it possible to print also A2 with adobe illustrator ? Thanks for help.

    pandron,
    One simple way would be to save as/print to PDF, then print from Acrobat/Reader.
    You could also make a copy of the file, then change the Artboard size and scale up the artwork and print from that (presuming you still wish to work in A4 or something).

  • How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    Any image can only be as large as the Original. With a program like Photoshop you can UpRes an image and get it to a bigger size, larger files size as well, but the actual quality of the image will be degraded, depending on the UpRes system and the original quality of the image.
    iPhoto is not the program to be doing that in and I don't think it even has that option.
    So I suspect the image you are trying to send isn't much bigger than what you are getting. You can also try Exporting it from iPhoto to yopur desktop and see what size you end up with. If it is still that 209KB +/- file size then that is the size of the original image.

  • When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    Hi,
    I would suggest you to uninstall Adobe Reader using the cleaner tool and then re-install the latest version.
    Adobe Cleaner Tool:- Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs.
    Latest version of Adobe Reader:- http://get.adobe.com/reader/
    If you still experience the same issue, please share the following information:-
    - Screenshot of Adobe Reader showing printer options
    - Screenshot of Microsoft Word showing printer options
    - Screenshot of control panel- Control Panel\All Control Panel Items\Devices and Printers
    Regards,
    Nakul 

  • Even I cant believe this is happening again! i'm once again asking for help with my account.  Since im very sick I ask that u look into my account and read the hell verizon has put me through and assist ending the hell once and for all even if that means

    Even I cant believe this is happening again! i'm once again asking for help with my account.  Since im very sick I ask that u look into my account and read the hell verizon has put me through and assist ending the hell once and for all even if that means ending my contract, i just want the hell over. I went into my bill tonight and the mess was still there I paid $110. that's what I owe

    I guess I spoke too soon!  I really can't believe this nightmare is not over yet! My account is still wrong.  The credit that I was due totaled $63.00  I am looking at a message on my phone saying that $21.01 was credited which makes my balance $219.72.  I received a text the following day that says, I processed your credit of $30.00 and your new balance $216.73 how is that possible?  None of the late fees were credited and the amount due for my monthly charges are wrong.  Before any changes were made to my data plan back in Nov. My monthly charges were $140.00, I needed my hot spot back and i was told that the hot spot will increase my bill $10 for each phone that totals $20.  The customer rep that change my data plan at that time also gave me a credit of $20 to compensate for the increase until I had time to talk with customer service about the mix-up with my Hot spot. I originally had the hot spot, but the rep that change my plan almost a year prior told me nothing was changing except I was getting more for less money.  I explained to that rep that I need my hot spot 4 times a year...and I don't want my plan to have any changes. To verify what I'm telling u check my account and see that I called from Albany New York wanting to know where my hot spot was and I was told I didn't have the hot spot on my account since the last data change!  I lost money once again due to the verizon rep's.  so my current data plan the rep promised would increase $20 which makes my monthly charges that were $140 prior to the change $160 after the hot spot was returned to my account.  Then I was given a $12 credit per month for 12 months because of so many mistakes made to my account so with that $12 credit my monthly charges should $148 + surcharges + taxes and that's not what I see. I do know this much right now my account is in such a shambles I can hardly see the light at the end if there is an end!  I need real help!
    >> Personal information removed by Verizon Moderator to comply with the Verizon Wireless Terms of Service <<

  • I got the iphone 5, got some pics and msgs and contacts on it, and when i connected to my PC to restore my previous info from the old iphone, all the new stuff are gone, how can i get it back, thanks for help.

    i got the iphone 5, got some pics and msgs and contacts on it, and when i connected to my PC to restore my previous info from the old iphone, all the new stuff are gone, how can i get it back, thanks for help.

    The voicemail system used for the iPhone is different from the voicemail system used on the rest of the Verizon Wireless network. When you activate the iPhone, you lose your saved voicemails from the other system. When you activate a non-iphone, you lose any saved voicemails from the iPhone voicemail system too.

  • I am running Lightroom 6 in conjunction with 64 bit Photoshop CS6. I need to install Camera Raw 9 plus other relevan updates for the Adobe Design and Web Premium CS6 package. Running Adobe Application manager finds the relevant updates but won't download

    I am running Lightroom 6 in conjunction with 64 bit Photoshop CS6. I need to install Camera Raw 9 plus other relevan updates for the Adobe Design and Web Premium CS6 package. Running Adobe Application manager finds the relevant updates but won't download / install them. Clicking the update button results in an error message "Application Manager has stopped working". This is a windows system running 64 bit Windows 7

    update manually:
    pre cc updates:  http://www.adobe.com/downloads/updates/
    cc updates:  http://prodesigntools.com/adobe-cc-updates-direct-links-windows.html
    cc 2014 updates:  win (http://prodesigntools.com/adobe-cc-2014-updates-links-windows.html) / mac (http://prodesigntools.com/adobe-cc-2014-updates-links-mac.html)

  • Hi ERROR U41M1C212 for Update Elements 9 and PS CS5. Any Idea what it is? Thanks for Help.

    hi ERROR U41M1C212 for Update Elements 9 and PS CS5. Any Idea what it is? Thanks for Help.

    If you look at the bottom/right of this screen you have a list of links in 'More information like this'.
    Have a look at them.

  • Hi, I have 5 locked fonts on my desktop, G5 PPC, and cannot move to trash and delete. Anyone know how to delete these font icons? Thanks for helping.

    Hi, I have 5 locked fonts on my desktop, G5 PPC, and cannot move to trash and delete. Anyone know how to delete these font icons? Thanks for helping.

    Select them in the Finder, choose Get Info from the File menu, and clear the Locked box.
    (59958)

  • What's the phone number I should call for help with my iPhone and ihome dock?

    What's the phone number I should call for help with my iPhone and ihome dock?

    http://www.ihomeaudio.com/support/

Maybe you are looking for