changesize(1) changesize(1)NAME changesize - change the fields of the SIZE resource of a file SYNOPSIS /mac/bin/changesize [-v] [-pprefsize] [-mminsize] [+option] file DESCRIPTION changesize is based on an MPW tool that prints the fields of the SIZE resource of an application and allows the user to modify any of the fields of the SIZE resource. The format of the SIZE resource contains MultiFinder flags followed by the preferred size and minimum size of the application. FLAG OPTIONS The following flag options are interpreted by changesize: -v Print the values of fields in the SIZE resource and then exit without changing anything. -pprefsize Specify an amount of memory in which the application will run effectively and which MultiFinder attempts to secure upon launch of the application. This value is expressed in units of kilobytes (K). +option Set or clear the MultiFinder flag specified by option. +option sets the MultiFinder flag, -option clears the flag. Multiple options can be specified at the same time on the command line. The MultiFinder flags that can be modified are: SaveScreen For SWITCHER compatibility. Normally, this is set to 0. SuspendResume When set, this bit signifies that the applica- tion knows how to process suspend/resume events. OptionSwitch For SWITCHER compatibility. Normally, this is set to 1. CanBackground Receive null events while in the background, if set. MultiFinderAware April, 1990 1
changesize(1) changesize(1)Take responsibility for activating and deac- tivation any windows in response to a suspend/resume event, if set. OnlyBackground Set this flag if your application does not have a user interface and will not run in the fore- ground. GetFrontClicks Set this flag is you want to receive the mouse-down and mouse-up events used to bring your application to the foreground when the user clicks in one of the windows of your ap- plication while it is suspended. ChildDiedEvents Normally, applications set this to 0. De- buggers may set this flag to 1. 32BitCompatible Set this flag if your application is 32-bit clean. EXAMPLES To print the fields of the size resource, use /mac/bin/changesize -v file To set the 32BitCompatible flag, clear the CanBackground flag, set the preferred memory size to 500 KB, using /mac/bin/changesize +32BitCompatible -CanBackground -p500 file NOTES This command is not supported in 24-bit mode and must be run from the command line while logged into the Macintosh en- vironment with the 32-bit session type. 2 April, 1990