#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" De-Compressor on scriptParsingError theError ErrorOccured end scriptParsingError on errorDialog theError ErrorOccured end errorDialog on errorOccured answer "an error occured, could it be that this file does not exist?" end errorOccured 3 7 E U ms sans serif cREVGeneral scriptChecksum ~KX.XtZߵ bookmarks handlerList +scriptParsingError errorDialog errorOccuredscriptSelection char 172 to 171prevHandler errorDialogtempScript script
on scriptParsingError theError
ErrorOccured
end scriptParsingError
on errorDialog theError
ErrorOccured
end errorDialog
on errorOccured
answer "an error occured, could it be that this file does not exist?"
end errorOccured
@ 7 E choose file p on mouseUp answer file "a file" if the result is empty or it is not empty then put it into field "path" else beep end if end mouseUp d cREVGeneral scriptChecksum t܌F~E2܈_Vb bookmarks revUniqueID 1043427723955handlerList mouseUpscriptSelection char 129 to 128prevHandler mouseUptempScript scripton mouseUp
answer file "a file"
if the result is empty or it is not empty then
put it into field "path"
else
beep
end if
end mouseUp
path )` 0 cREVGeneral revUniqueID 1043431139778 compress pon mouseUp set the itemDelimiter to "." put field "path" into thePath if thepath is empty then errorOccured exit mouseUp end if put compress( URL "BINFILE:" & thepath) into URL ("binfile:" & item 1 to -2 of thePath & ".gz") end mouseUp j d cREVGeneral scriptChecksum <# ݭBrevUniqueID 1043431233210 bookmarks handlerList mouseUptempScript prevHandler mouseUpscriptSelection char 114 to 113scripton mouseUp
set the itemDelimiter to "."
put field "path" into thePath
if thepath is empty then
errorOccured
exit mouseUp
end if
put compress( URL "BINFILE:" & thepath) into URL ("binfile:" & item 1 to -2 of thePath & ".gz")
end mouseUp
decompress p on mouseUp set the itemDelimiter to "." put field "path" into thePath put decompress( URL "BINFILE:" & thepath) into URL ("binfile:" & item 1 to -2 of thePath & ".rev") end mouseUp d cREVGeneral scriptChecksum I@5FhMDQrevUniqueID 1043431390243 bookmarks handlerList mouseUptempScript prevHandler errorDialogscriptSelection char 188 to 187script ]on mouseUp
set the itemDelimiter to "."
put field "path" into thePath
put decompress( URL "BINFILE:" & thepath) into URL ("binfile:" & item 1 to -2 of thePath & ".rev")
end mouseUp
New Field 1 34 Tabs false cREVGeneral revUniqueID 1043432440497 BYou can also type in a filepath instead of clicking "choose file"