I've got some old .as files from a project I was working on on a different mac a long time ago. I was trying to open one of them just to try and remember something. But for some reason my mac thinks they're zip files (even though I've used these same files on another mac before).
If I double click one of the .as files, Archive Utility opens, thinks for a second, then disappears and nothing happens. If I right click -> open with Text Edit, it opens and displays the correct file, but I don't want to use Text Edit. I want to view the file in XCode. When I right click -> open with XCode, it doesn't display the code in the file; it shows a little zip image with AS on it, and no text.
I just noticed it's showing the file type as "AppleSingle archive". The only thing I can think is that that could be abbreviated ".as" too. But why would it have worked on another computer (and presumably many other people's computers) and what can I do to fix it?
file
command makes of one of the ActionScript documents. It sounds like an Xcode bug from BoltClock's answer, but perhaps the confusion is more deep than just the file extension.file
command isUTF-8 Unicode (with BOM) C++ program text, with CR line terminators
. 2) When Ils
the directory the file is in, it showsFileName.as
, as I would expect, but alsoFileName.as.cpgz
andFileName.as 2.cpgz
(yes that space is accurate), and these files do not show up in the finder. Strange! These other files only show up for the .as file I've tried to open, not the other .as files in the directory.