Mac os executable file extension

File format for executable on Mac OS X

I am attempting to (one step at a time) build my own copy of Forth to run on Mac OS X.

I currently have a version of Forth running on Apache and localhost in PHP, Ruby, and Python.

I want to make a version of Forth in C that will create a native executable version of Forth that can make its own native executable files of any compiled Forth code. Sorry about the semi-recursive sentence. My goal is to start in C and end up with my own Forth compiler (no longer running in any C code).

My starting point is to attempt to get a minimal test program to run as a binary executable for Terminal. Once I can understand what the existing C compiler is doing, I can modify its methods for my own purposes.

I created a small «hello world» program in C and ended up with an executable file of 8,497 bytes, which consisted mostly of 0x00 arrays (presumably buffers). My guess is that the entire stdio library was included.

Next, I created the smallest possible C program I could think of (other than a completely null program — I wanted to be able to find my code in the resulting hex):

That should have given me the barest possible overhead with the storage of the ASCII A and the return value of all ones being easy to find.

Instead, I ended up with a file of 4,313 bytes. There were four locations with the 0x41 (ASCII ‘A’), but none were part of a MOV immediate byte instruction. Presumably the 0x41 was stored as constant data and loaded with a different MOV instruction.

Again there were a lot of 0x00 arrays (3,731 bytes, or all but 402 bytes). Presumably there is some kind of header data in the object file (which does run correctly in Terminal and does signal -1) and who knows what else.

At the moment I am not concerned with having an application bundle — running in Terminal is my short term goal. Once I have this first step working, I can move on to a full application.

Any suggestions on how to determine what I need to have in the object file for it to correctly work as a Terminal tool?

Источник

How do I make this file.sh executable via double click?

First off I’m using Mac.

Next, I need to execute this «file.sh» we will call it. Everytime I need to execute it I have to open Terminal and type:

This is okay, but I feel like it would be a lot quicker if I make the file execute on double click, don’t you think?

So my question is, how do I make this file executable via double click?

My ideas were either:

a) type something like chmod into terminal and change permissions?

Читайте также:  Почтовые агенты для mac os

b) make a file, put code I wrote above in it ^ and then make that file executable?

c) make an automation somehow to do this?

Which way is best, or is there an even better way? Also please explain as much as you can, I’m new to Terminal. Thanks.

5 Answers 5

By default, *.sh files are opened in a text editor (Xcode or TextEdit). To create a shell script that will execute in Terminal when you open it, name it with the “command” extension, e.g., file.command . By default, these are sent to Terminal, which will execute the file as a shell script.

You will also need to ensure the file is executable, e.g.:

Without this, Terminal will refuse to execute it.

Note that the script does not have to begin with a #! prefix in this specific scenario, because Terminal specifically arranges to execute it with your default shell. (Of course, you can add a #! line if you want to customize which shell is used or if you want to ensure that you can execute it from the command line while using a different shell.)

Also note that Terminal executes the shell script without changing the working directory. You’ll need to begin your script with a cd command if you actually need it to run with a particular working directory.

Источник

Расширение файла OSX

PowerPC Executable Format

Что такое файл OSX?

OSX суффикс имени файла в основном используется для PowerPC Executable Format файлов. OSX файлы поддерживаются программными приложениями, доступными для устройств под управлением Mac OS. Файлы с расширением OSX классифицируются как Исполняемые файлы файлы. Подмножество Исполняемые файлы содержит #NUMEXTENSIONS # различных форматов файлов. Mac OS X является наиболее используемой программой для работы с OSX файлами. На официальном сайте разработчика Apple, Inc. вы найдете не только подробную информацию о программном обеспечении Mac OS X, но также о OSX и других поддерживаемых форматах файлов.

Программы, которые поддерживают OSX расширение файла

Ниже приведена таблица со списком программ, которые поддерживают OSX файлы. OSX файлы можно встретить на всех системных платформах, включая мобильные, но нет гарантии, что каждый из них будет должным образом поддерживать такие файлы.

Программы, обслуживающие файл OSX

Как открыть файл OSX?

Причин, по которым у вас возникают проблемы с открытием файлов OSX в данной системе, может быть несколько. Что важно, все распространенные проблемы, связанные с файлами с расширением OSX, могут решать сами пользователи. Процесс быстрый и не требует участия ИТ-специалиста. Мы подготовили список, который поможет вам решить ваши проблемы с файлами OSX.

Шаг 1. Скачайте и установите Mac OS X

Проблемы с открытием и работой с файлами OSX, скорее всего, связаны с отсутствием надлежащего программного обеспечения, совместимого с файлами OSX на вашем компьютере. Чтобы решить эту проблему, перейдите на веб-сайт разработчика Mac OS X, загрузите инструмент и установите его. Это так просто Полный список программ, сгруппированных по операционным системам, можно найти выше. Самый безопасный способ загрузки Mac OS X установлен — для этого зайдите на сайт разработчика (Apple, Inc.) и загрузите программное обеспечение, используя предоставленные ссылки.

Шаг 2. Обновите Mac OS X до последней версии

Если у вас уже установлен Mac OS X в ваших системах и файлы OSX по-прежнему не открываются должным образом, проверьте, установлена ли у вас последняя версия программного обеспечения. Может также случиться, что создатели программного обеспечения, обновляя свои приложения, добавляют совместимость с другими, более новыми форматами файлов. Это может быть одной из причин, по которой OSX файлы не совместимы с Mac OS X. Все форматы файлов, которые прекрасно обрабатывались предыдущими версиями данной программы, также должны быть открыты с помощью Mac OS X.

Читайте также:  Windows multiplayer free download

Шаг 3. Свяжите файлы PowerPC Executable Format с Mac OS X

После установки Mac OS X (самой последней версии) убедитесь, что он установлен в качестве приложения по умолчанию для открытия OSX файлов. Метод довольно прост и мало меняется в разных операционных системах.

Изменить приложение по умолчанию в Windows

  • Щелкните правой кнопкой мыши на файле OSX и выберите « Открыть с помощью опцией».
  • Нажмите Выбрать другое приложение и затем выберите опцию Еще приложения
  • Чтобы завершить процесс, выберите Найти другое приложение на этом. и с помощью проводника выберите папку Mac OS X. Подтвердите, Всегда использовать это приложение для открытия OSX файлы и нажав кнопку OK .

Изменить приложение по умолчанию в Mac OS

  • Щелкните правой кнопкой мыши на файле OSX и выберите Информация.
  • Найдите опцию Открыть с помощью — щелкните заголовок, если он скрыт
  • Выберите из списка соответствующую программу и подтвердите, нажав « Изменить для всех» .
  • Должно появиться окно с сообщением, что это изменение будет применено ко всем файлам с расширением OSX. Нажимая Вперед , вы подтверждаете свой выбор.

Шаг 4. Проверьте OSX на наличие ошибок

Если проблема по-прежнему возникает после выполнения шагов 1-3, проверьте, является ли файл OSX действительным. Отсутствие доступа к файлу может быть связано с различными проблемами.

1. Убедитесь, что OSX не заражен компьютерным вирусом

Если OSX действительно заражен, возможно, вредоносное ПО блокирует его открытие. Немедленно просканируйте файл с помощью антивирусного инструмента или просмотрите всю систему, чтобы убедиться, что вся система безопасна. Если сканер обнаружил, что файл OSX небезопасен, действуйте в соответствии с инструкциями антивирусной программы для нейтрализации угрозы.

2. Убедитесь, что файл с расширением OSX завершен и не содержит ошибок

Если вы получили проблемный файл OSX от третьего лица, попросите его предоставить вам еще одну копию. Возможно, файл был ошибочно скопирован, а данные потеряли целостность, что исключает доступ к файлу. Если файл OSX был загружен из Интернета только частично, попробуйте загрузить его заново.

3. Убедитесь, что у вас есть соответствующие права доступа

Некоторые файлы требуют повышенных прав доступа для их открытия. Войдите в систему, используя учетную запись администратора, и посмотрите, решит ли это проблему.

4. Проверьте, может ли ваша система обрабатывать Mac OS X

Если система перегружена, она может не справиться с программой, которую вы используете для открытия файлов с расширением OSX. В этом случае закройте другие приложения.

5. Убедитесь, что ваша операционная система и драйверы обновлены

Регулярно обновляемая система, драйверы и программы обеспечивают безопасность вашего компьютера. Это также может предотвратить проблемы с файлами PowerPC Executable Format. Возможно, что одно из доступных обновлений системы или драйверов может решить проблемы с файлами OSX, влияющими на более старые версии данного программного обеспечения.

Вы хотите помочь?

Если у Вас есть дополнительная информация о расширение файла OSX мы будем признательны, если Вы поделитесь ею с пользователями нашего сайта. Воспользуйтесь формуляром, находящимся здесь и отправьте нам свою информацию о файле OSX.

Источник

Executable files in Mac OS X vs Windows

I have seen that every executable file in Windows has an extension of .exe. But Mac OS X doesn’t have the same.

Читайте также:  Установка windows ошибка отсутствует файл

Windows executes .exe files. Then what kind of files does Mac OS X execute?

What is the difference between both operating system’s execution of applications?

Even I found that windows setups has the same extension .exe but on a Mac setups have extension of .dmg

Would you please share your knowledge with me about .dmg & executables on Macs vs. Windows?

4 Answers 4

Extensions don’t actually change what type of file something is, although they often do hint to the system what do do with a particular item.

DMGs are not executables, they are disc images. They are files that act as discs, which often contain the executables and other files for applications. When you double-click on one, the system mounts it and you then have access to the files inside.

Both Windows and OS X execute binary executable files, although they are in different formats. The big difference in what a user sees if using the GUI is that on Windows, you usually see the .exe executable file, which resides in a folder that contains other files and information that the program uses. On OS X, all those other files, along with the primary executable, are contained in a «bundle» (really a folder) with the extension .app. Double clicking on a .app bundle will execute the internal executable and load your application.

Outside of the GUI, in the actual file structure, Mac and Windows systems are really quite similar; these differences are mostly a question of how the system presents things to the user for manipulation in the GUI.

Источник

Question: Q: How to open a Unix Executable File

dg5dual2.7, Mac OS X (10.4.10)

Posted on May 3, 2010 12:17 AM

Helpful answers

The mac will take any file of an unknown type that has the execute bit and identify them as UNIX executable files. That doesn’t mean that they are UNIX executables. If they were, you «open» them (run the program) by double-clicking on the icon for them.

Presumably, they are data. If you want OS to assign a type to them, give them a suffix. If you want them to be treated as HDV files, give them the suffix ‘.hdv’ or simply control-clikc them and select the application to open them with.

Generally speaking, it’s not worth the effort to attempt recover things like HDV files. Chances are pretty good that they are unreadable.

May 3, 2010 6:33 AM

There’s more to the conversation

Loading page content

Page content loaded

The mac will take any file of an unknown type that has the execute bit and identify them as UNIX executable files. That doesn’t mean that they are UNIX executables. If they were, you «open» them (run the program) by double-clicking on the icon for them.

Presumably, they are data. If you want OS to assign a type to them, give them a suffix. If you want them to be treated as HDV files, give them the suffix ‘.hdv’ or simply control-clikc them and select the application to open them with.

Generally speaking, it’s not worth the effort to attempt recover things like HDV files. Chances are pretty good that they are unreadable.

Источник

Оцените статью