New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Switcher Hangout The place for switchers to discuss their new machines, and how to work with OS X. General support can be had here for newbie stuff, like "How do I restart my new iMac?" :)

Application has to be transferred in a .sit


Post Reply New Thread Subscribe

 
Thread Tools
Aikinai
Guest
 
Posts: n/a

Hi, I've been trying to figure out how applications work in OS X and I can't find any information. I don't just mean how to run them or move them; I know applications in a Mac can be run from anywhere and most are just one file.

My question is how does OS X know it's an application. I use a few Macs at work and I had a .sit file with an application in it. I extracted the application and installed it on one computer (it's an application with an installer). Then I transferred the installer to another Mac and it didn't realize the file was an application and asked me how to open it.
I finally found out I had to keep it in the .sit when transferring and then extract it there, or other Macs wouldn't have any idea it was an application. Could anyone tell me how applications work on a Mac and why they have to be transferred while in an archive? Thanks a lot for your help.
QUOTE Thanks
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
A Macintosh application can only exist on a Mac-formatted disk. If you try to copy a Mac app to a disk with a Windows format (FAT32) then the file will lose the metadata needed to recognize it as a Mac application. Same thing if it is sent as an eMail attachment or sent over FTP.

To preserve the metadata, you can enclose a Mac app in a disk image (.dmg) or a Stuffit archive (.sit) before copying.
QUOTE Thanks
lil
Guest
 
Posts: n/a

Depends what version of the Mac OS the file is for, old Mac programs used to be composed of two parts, a resource and data fork. If either got messed up, so did the file, and going from mac -> fat32 -> mac is just the way to mess it up, so keep it compressed as suggested.

OS X programs are in packages (.app), if you go into the terminal you will actually find that the Mail.app program is actually a directory (you can do a cd mail.app) and then you can access all the elements that make the application package.

You can also do this from Finder, right clicking and selecting the option from the popup menu item "Show Package Contents".

These types of applications are in fact easier to transport over different file systems than the old classic OS files.

However most of the error occurs from the translation from Mac HFS/HFS+ disk format which uses those data and resource forks I was on about.

Vicky
QUOTE Thanks
Aikinai
Guest
 
Posts: n/a

Wow, thanks a lot. That's exactly what I what I was trying to find out. I'm going to get a Mac at home soon too, so I'm glad to get a better feel for how things like this work. Thanks again!
QUOTE Thanks
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
Quote:
Originally Posted by lil
OS X programs are in packages (.app), if you go into the terminal you will actually find that the Mail.app program is actually a directory (you can do a cd mail.app) and then you can access all the elements that make the application package.
Take a package off of a Mac (HFS/HFS+) disk, and it looses the bundle bit (part of the HFS metadata) and becomes as dead as any old-style with a resource fork.
QUOTE Thanks

Post Reply New Thread Subscribe


« Veiw imac on tv | no keey board 323-2-3123- »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Custom application launchers in Dock? nanoo OS X - Operating System 10 10-13-2005 03:04 PM
How to make an application full screen for Mac OS X that are called through html? yu2 Web Design and Hosting 2 08-17-2005 01:35 AM
Application launch failure flyin3d OS X - Operating System 0 10-10-2004 05:26 PM
.sit files? mac_noobie Switcher Hangout 3 09-06-2004 10:05 PM
Custom Internet Application Randomly Freezing rlecjr OS X - Development and Darwin 0 08-27-2004 09:40 AM

All times are GMT -4. The time now is 10:38 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?