I have two Macs, and a shared folder on a third Windows computer. If I do something like this:
- Copy an executable console application (not a .app file – a single file which is executable) from Mac 1 to Windows machine
- Zip executable on Windows machine
- Copy new zip file to Mac 2 and unzip
The file that comes out of the zip file is still executable. How is the “executable-ness” nature of that file preserved, given that windows permissions system is totally different and doesn’t really have the concept of executable files?
OSX Apps are folders, not files. When copying folders to a file system, that doesn’t have executable bit representation, OSX creates hidden files for the missing attributes. Zipping the App is zipping a folder, including its hidden subfolders. On copy back, OSX will recreate the missing properties from the hidden files.
These hidden folders are called ._.OriginalName
EDIT
After quite extensive discussion in the comments sections, here is a bit of info about simple executable files (execute permission set) as opposed to *.app folders (native OSX applications)
._.OriginalNamemetadata store is decoupled from the file by the rename