On 08-03-05, at 01:33, SVV Satyanarayana wrote:
1. I am using Mac Tiger, and I didn't find any directory "boms" on my Mac. How to move further now?
I think the "boms" sub-directory is only instituted on Leopard. That could conceivably be a branch point in your script. An easy method is to use something like:
if (system attribute "sys2") is less than 5 then -- no "boms" else -- "boms" may exist end if
However, I'm not sure if the "sys2" attribute is available in AppleScript before Tiger.
2. When I saved it as Application bundle, the icon of the bundle is some default icon. If I change it to my own icon, at the time of creating .dmg file for distribution, how the icon has to be handled?
Before Leopard, you usually have to drag-copy the applet to another location before the Finder will recognize the new icon. Other solutions are to quit the Finder by some means such as restarting or logging out. The easiest way to set up a custom icon for applets and droplets is to replace the existing icon with another but leave the original name (applet.icns or droplet.icns) intact. However a more robust method is to set the referral to the new .icns file in the application bundle's Info.plist entry. Customarily, the replacement icon will have the same name as your applet. Say the name of the applet is "BrainShareRemover" and its intended icon is "BrainShareRemover.icns". The edit the Info.plist to look like:
<?xml version="1.0" encoding="UTF-8"?> <plist version="1.0"> <dict> ... <key>CFBundleExecutable</key> <string>applet</string> <key>CFBundleIconFile</key> <string>BrainShareRemover</string> ...
You will still have to do the Finder dance to get the correct icon to show.
ยง
If you are creating your distribution as part of a build phase in Xcode, you may be interested in the following freeware tools:
|