- appify a script
- remove app from dock by sqlite
- create shell app
- scripting launchpad
- gist mathiasbynens/appify script
- subtleGradient/Appify-UI from github
- creating-mac-applications-shell-scripts
pkg
is just a xar archieve which contains a header, a table of contents and a heap that stores actual data.
# extract pkg file
xar -xf <your-pkg-file>
# pack current folder into pkg file
xar -cf <your-pkg-file> .
here is the common folder structure:
Distribution -- xml config file
Resources -- resources that mainly used by
Distribution
xml config used
background-images
en.lproj -- language specific resources
welcome.rtf
licence.rtf
readme.rtf
Localizable.strings
conclusion.rtf -- rtfd also can be used
*.pkg --
*
means any non empty file name, apkg
file can contain multiple folder like this to achieve selective install.
Bom -- (Mac OS X bill of materials (BOM) file), contains information on the files inside that cpio archive
PackageInfo -- package specific xml config
Payload -- compressed data, probably
gzip
, it can contains package like.app
,kext
. Try to extract it using zip to see more info.
Scripts -- compressed data, probably
gzip
, it can contains scripts likepostinstall
,preinstall
. Try to extract it using zip to see more info.
In my case, SBBOD
frequently appears when I select a folder in Finder. So it's probably because hard disk has been put to sleep due to the energy saving option.
To solve it,
- Command+Option+Shift+Escape to force quit Finder
- Change the energy saving option in
Settings
- 6 ways to force quit mac apps
- very useful troubleshooting guide for The Spinning Beach Ball of Death
# lock your mac immediately
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
# add this to your .bashprofile
alias lockscreen='/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend'