Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20-09-2010
Member
 
Join Date: Sep 2010
Posts: 27
Why Aliases are in different sizes?

Hello
Recently bought an Apple Core2Duo MAC Book Pro compatible with System 9 operating system for getting better Internet service, and found Aliases were a uniform size which range is from 40k to 500k Under OS X. There is nothing to do with the customized icons. For all my ilife applications I make a folder in the dock, there the range is 40K for Garageband to 348K for iWeb. At the same time all the Aliases are created but their sizes are different , it looks peculiar. Why are they different?
Reply With Quote
  #2  
Old 20-09-2010
Member
 
Join Date: Apr 2008
Posts: 2,276
Re: Why Aliases are in different sizes?

In the resource part of the Alias file, the operating system(system 9) keeps several information?s about the original one. That is why it takes different spaces for keeping the information?s, and their sizes are different. The information?s which are kept for which is used to locate the original are:
1.Directory ID.
2.File size.
3.File ID.
4.Name of the file, and
5.Path of the file location.
Reply With Quote
  #3  
Old 20-09-2010
Member
 
Join Date: Oct 2005
Posts: 2,357
Re: Why Aliases are in different sizes?

With the custom icon the Alias has lots to do. The Alias files have a custom icon which shows the icon of the original in the resource fork. So, due to the subset of sizes can vary the original file icon size also it can vary for the nature of the image. That?s why corresponding file Alias of the file will also vary regarding this. The symbolic links finder with a kind of Alias, contains no data where they are attempting
__________________
I'm the Proud Owner of the most dangerous weapon
known to man kind: Human Brain
Reply With Quote
  #4  
Old 20-09-2010
Member
 
Join Date: Apr 2008
Posts: 2,567
Re: Why Aliases are in different sizes?

For investigating why the Aliases are in different size use the command line tool ?DeRez?. Which supplies as a part of the Apple Developers tool, known as Xcode Tools(an optional install from the OS X install DVD). The tool command is used to extract commands from the resource fork to the specific file. I am giving you the procedure for getting the textual version of the data in the resource fork of the alias file:
DeRez "/Applications/iWeb.app alias" > foo.txt
Reply With Quote
  #5  
Old 20-09-2010
Member
 
Join Date: Sep 2010
Posts: 49
Re: Why Aliases are in different sizes?

Slightly the same problem, when tried to creating to an Alias on an external Hard Disk. The size of the Alias changes repeatedly according to the machine where the external hard disk is plugged in. Have an old PPC Mac mini and a brand new MacBook Pro. And find that if I create an Alias in MAC Mini it takes 4 kb, where as in MAC Pro it takes 510 kb. Here Custom resources are not involved. Why it happens any idea?
Reply With Quote
  #6  
Old 21-09-2010
Member
 
Join Date: Aug 2008
Posts: 718
Re: Why Aliases are in different sizes?

From the post?s on investigation about 'DeRez', it is clear that the size of the Alias varies for different size of the custom icons. By using finder?s ?Gear? menu to ?show package content? on iweb application and accessible into the contents or resources of the sub folder. I found there a "iWeb.icns" of size 348 KB but for ?GarageBand? there is "GarageBandApp.icns" of size 268 KB. When I tried to make an Alias on ?Garageband?, it shows of file size 216 KB. I don?t know why it is shows smaller, but it at least the right range
Reply With Quote
  #7  
Old 22-09-2010
Member
 
Join Date: Apr 2008
Posts: 3,336
Re: Why Aliases are in different sizes?

I am giving you the, by which you could write a script to create custom icon Aliases, to check the size of the default custom icon size. This is a basic which explain how to create it on a untitled folder.Try to overcome from your problem it will really helps you,

Code:
% DeRez "untitled folder alias" > foo.txt
% edit foo.txt   # open foo.txt in TextWrangler and remove the "icns" entry
% Rez foo.txt -o foo.alias
% SetFile -a A foo.alias
% stat -f "%N %z" foo.alias/..namedfork/rsrc  # look at size of resource fork of foo.alias
foo.alias/..namedfork/rsrc 690
# compare to size of original alias:
% stat -f "%N %z" "untitled folder alias/..namedfork/rsrc"
untitled folder alias/..namedfork/rsrc 518685
Reply With Quote
  #8  
Old 23-09-2010
Member
 
Join Date: May 2008
Posts: 2,131
Re: Why Aliases are in different sizes?

An ?Alias? file contains at least an ?Alias? record along with the icon with the pointer(which helps the user if if it not targeted correctly). Keep in mind that the ?Alias? is point to some unmount volumes and the application of documents of an unmount application. The size of the Alias will vary sometimes depending on how the path is complex.
Reply With Quote
  #9  
Old 24-09-2010
Member
 
Join Date: May 2008
Posts: 3,514
Re: Why Aliases are in different sizes?

When you create an Alias, it seems that it occupies the original size of the existing icon folder. And sets the Alias with the size of the icon, and customize it. The size of the Alias will not be change if you make modification on the original size of the icon file. It indicates by a right arrow on the top of the original icon. And if the Alias will customize later than the original custom icon will change.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Why Aliases are in different sizes?"
Thread Thread Starter Forum Replies Last Post
How Mail Aliases works with iCloud Lakshmikantan Technology & Internet 4 04-02-2012 11:14 AM
Aliases offered by the hotmail to help you manage and secure your email account TonyaSingh Technology & Internet 6 16-09-2011 10:53 PM
URL Aliases and Online URL Aliases in maxthon 3.0.19.1200 Unnati Technology & Internet 4 01-07-2011 11:11 AM
DNS Forwarding and Aliases Wyvern Networking & Security 3 03-10-2009 08:11 PM
ABR sizes on photoshop to reduce Brake Fail Customize Desktop 2 05-01-2009 07:35 PM


All times are GMT +5.5. The time now is 07:07 PM.