Excel for Mac - creating files programmatically

%3CLINGO-SUB%20id%3D%22lingo-sub-1671821%22%20slang%3D%22en-US%22%3EExcel%20for%20Mac%20-%20creating%20files%20programmatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1671821%22%20slang%3D%22en-US%22%3E%3CP%3EHi.%20In%20Windows%2C%20it%20is%20very%20easy%20to%20create%20a%20file%20in%20Explorer%2C%20by%20right-clicking.%20In%20Mac%2C%20the%20standard%20OS%20does%20not%20allow%20you%20to%20create%20a%20file%20in%20the%20finder%20(I%20have%20no%20idea%20why%2C%20but%20it%20seems%20to%20be%20against%20Apple's%20design%20philosophy.%20I%20suspect%20this%20is%20one%20reason%20why%20there%20are%20so%20many%20finder%20alternatives%20on%20Mac).%20I%20get%20around%20this%20using%20an%20Alfred%20workflow%20which%20evokes%20the%20command%20line%20%2F%20Apple%20script%20(this%20is%20what%20I%20mean%20when%20I%20say%20that%20the%20file%20is%20created%20programmatically).%20This%20works%20brilliantly.%20However%2C%20when%20I%20use%20this%20method%20to%20create%20an%20Excel%20file%20(.xlsx%2C%20.xls%2C%20.csv)%2C%20Excel%20does%20not%20open%20it%20(it%20tells%20me%20that%20the%20file%20format%20%2F%20extension%20is%20not%20valid).%20I%20only%20have%20this%20problem%20with%20Excel%2C%20e.g.%20Word%20is%20able%20to%20open%20Word%20documents%20(.docx)%20which%20I%20have%20created%20programmatically.%20Is%20there%20any%20way%20to%20get%20Excel%20for%20Mac%20to%20open%20Excel%20documents%20which%20have%20been%20created%20programmatically%3F%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1671821%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Emac%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hi. In Windows, it is very easy to create a file in Explorer, by right-clicking. In Mac, the standard OS does not allow you to create a file in the finder (I have no idea why, but it seems to be against Apple's design philosophy. I suspect this is one reason why there are so many finder alternatives on Mac). I get around this using an Alfred workflow which evokes the command line / Apple script (this is what I mean when I say that the file is created programmatically). This works brilliantly. However, when I use this method to create an Excel file (.xlsx, .xls, .csv), Excel does not open it (it tells me that the file format / extension is not valid). I only have this problem with Excel, e.g. Word is able to open Word documents (.docx) which I have created programmatically. Is there any way to get Excel for Mac to open Excel documents which have been created programmatically? Thanks.

0 Replies