Trouble opening .csv files on my Mac - csv

I am trying to open a .csv file in my Mac, using Excel 2008. Currently, every time I try opening the file, my Mac defaults to OpenOffice.org 3. I never had this problem. I always used to be able to open csv files with Excel.
Where do I go to change the default spreadsheet program for opening csv files back to Excel?
Thank you.

CTRL+Click or Right Click on the CSV file, click on "get info" option. In the popup at the bottom under "opens with", select the application you want to associate with this file e.g. excel.
This works for changing the file associations for most files.

Related

How to open a database file with no file type in SSMS?

I have a database file with no file type, I need to open it in SSMS first. When I try to open it, it says no editor for it. I tried to open it in a text editor by changing its name with a txt extension, it displayed unreadable code on the whole page. I have searched online it seems the only way is to change the file name with an extension. Is there any way to make SSMS recognize the generic extension file? Thanks
Larnu corrected me to use "Restore" instead of "Open". Thanks
New to database, need to learn everything.

Magento 2.1.1 We can't find required columns: sku

My apologies if a solution has been provided elsewhere. I have searched and could not find anything similar to what I am experiencing. I am trying to upload categories on a Magento CE 2.1.1 website. I have a file with almost 4000 categories and sub categories and the only practical way is to upload via a csv file.
I downloaded a sample file to use and when I upload the same sample file it's working fine when I click Check data" button. However, when I replace the values on the rows with my own and save the file as csv with UTF-8 text encoding, I am getting an error message below. This is also happening when I save the file as csv even without changing the values. I have tested this with a csv file saved from both Mac Numbers and Windows Excel.
I only need to upload Categories (and not products) but I am not sure if this is possible.
File links:
Importing
Not importing
Actual project sample file
The files are quite similar but strangely one is working and the other is not.
Error
We can't find required columns: sku.
Column names: "sku;store_view_code;attribute_set_code;product_type;categories;product_websites;name;description;short_description;weight;product_online;tax_class_name;visibility;price;special_price;special_price_from_date;special_price_to_date;url_key;meta_title;meta_keywords;meta_description;base_image;base_image_label;small_image;small_image_label;thumbnail_image;thumbnail_image_label;swatch_image;swatch_image_label;created_at;updated_at;new_from_date;new_to_date;display_product_options_in;map_price;msrp_price;map_enabled;gift_message_available;custom_design;custom_design_from;custom_design_to;custom_layout_update;page_layout;product_options_container;msrp_display_actual_price_type;country_of_manufacture;additional_attributes;qty;out_of_stock_qty;use_config_min_qty;is_qty_decimal;allow_backorders;use_config_backorders;min_cart_qty;use_config_min_sale_qty;max_cart_qty;use_config_max_sale_qty;is_in_stock;notify_on_stock_below;use_config_notify_stock_qty;manage_stock;use_config_manage_stock;use_config_qty_increments;qty_increments;use_config_enable_qty_inc;enable_qty_increments;is_decimal_divided;website_id;related_skus;related_position;crosssell_skus;crosssell_position;upsell_skus;upsell_position;additional_images;additional_image_labels;hide_from_product_page;bundle_price_type;bundle_sku_type;bundle_price_view;bundle_weight_type;bundle_values;bundle_shipment_type;associated_skus" are invalid
This might be because you opened the file in Excel which will add a BOM to the start of the file. When the Magento importer tries to read the file, it expects the first header/cell to say sku, but it instead sees the BOM.
Two ways to solve this:
1) Don't open it in excel - use Google sheets, or a text editor if you are feeling brave,
2) If you opened the file in excel, close it, open it in notepad++, click encoding up the top and set to "Encode in UTF-8" (NOT "Encode in UTF-8-BOM"). Then save and you are good to go.

Link to External Data using URL to CSV file

I am using OpenOffice Calc 4.1.1 on Windows 7.
I am trying to use Link to External Data to load an external CSV file from a gaming website Wowuction.com. If I open the URL in my browser I get a CSV file saved to disk. But when I use that exact same URL in the "URL of external data source" box and hit enter, there is a short pause like its loading, but then nothing happens. Nothing appears in the "Available tables/ranges" box, the OK button is still disabled.
Does OpenOffice Calc not support CSV as an external data source?
In short: Calc doesn't support loading a CSV file externally, only HTML, ODS, XLS, maybe another.
But if you are confortable writing a dos script, you can download the CSV file and convert it to HTML continuously. Then you can just direct the 'Link to External Data' to you local HTML file.
It's been done on ubuntu linux, in case you want a little reference.

Creating an html formatted file to be opened by Excel

I am trying to export a spreadsheet file from a website. The data is a bit too complex for a simple csv, so I figured the best way to do it was to format it into a file containing nothing but an HTML table. If I give it a .xls extension, it will open, but only after throwing an error and asking for confirmation. Is there a way to set up the file so that Excel knows that it is supposed to have HTML code in it, and so that the OS knows that Excel is supposed to open it?
This is going to be used by people who aren't going think to open Excel and drag the file in or open it from inside Excel. They're going to be double-clicking on the file.

convert .dat files to either .dta, .shp, .bdf, or .csv

I have downloaded spatial data from the USGS website that comes in a .dat format, which I can't read in textedit either - it just says "../ofr041189it03/vat.adf". I am familiar with STATA, ArcGIS, and GeoDA, so I was hoping to convert it into a type that can be read by any of these programs (preferably STATA), but don't know how. Any ideas?
Open a New Blank Excel file
In Excel
Go to Data tab
Select From Text
Select the .dat file which you want to open(Note: Select "All files" in dropdown box)
Click Import
Check Delimited and click next
Deselect the tab and select Other and give "|"(Tab symbol) then click next
Click finish and Ok