home *** CD-ROM | disk | FTP | other *** search
- global gPlatForm, gObj5, gDialogPresent
-
- on exitFrame me
- if gDialogPresent then
- go(the frame)
- else
- if gPlatForm then
- changePalette("Mac")
- else
- if not gPlatForm then
- changePalette("Win")
- set commandStartString to baCommandArgs()
- if commandStartString starts QUOTE then
- delete char 1 of commandStartString
- end if
- set lastChar to length(commandStartString)
- if char lastChar of commandStartString = QUOTE then
- delete char -30000 of commandStartString
- end if
- set lastChar to length(commandStartString)
- if char lastChar - 3 to lastChar of commandStartString = (".CB" & the pCharacterCode of gObj5) then
- startProgram()
- go("CBA2")
- cursor(0)
- openFile(gObj5, 1, 1, char 1 to lastChar - 4 of commandStartString)
- end if
- end if
- end if
- end if
- end
-