on open dropped_file set file_path to quoted form of POSIX path of dropped_file set dropped_file to dropped_file as alias set file_info to info for dropped_file if kind of file_info does not contain "Document" then display dialog "This application only works on individual .lit files." buttons {"Ok"} default button 1 error number -128 end if if name of file_info does not end with ".lit" then display dialog "This application only works on Microsoft .lit files that adhere to appropriate naming conventions." buttons {"Ok"} default button 1 error number -128 end if do shell script "/bin/clit " & file_path & " " & file_path & "_Open_eBook/" end open