Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Batch Convert .Lit files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Batch Convert .Lit files
Authored by: arderenne on Feb 27, '07 03:07:13AM
I did a little tweaking and put this togeather, let me know what you think.

property type_list : {}
property extension_list : {"lit"}
on open these_items
	repeat with i from 1 to the count of these_items
		set this_item to item i of these_items
		set the item_info to info for this_item
		if (folder of the item_info is false) and ¬
			(alias of the item_info is false) and ¬
			((the file type of the item_info is in the type_list) or ¬
				the name extension of the item_info is in the extension_list) then
			process_item(this_item)
		end if
	end repeat
end open

on process_item(this_item)
	set file_path to quoted form of POSIX path of this_item
	set this_item to this_item as alias
	set file_info to info for this_item
	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
	-- REMOVE THE DASHES BELOW THIS LINE
	do shell script "/bin/c-l-i-t " & file_path & " " & file_path & "_Open_eBook/"
	
end process_item



[ Reply to This | # ]
Batch Convert .Lit files
Authored by: sipatel on Jan 15, '10 02:36:41PM

I have taken the liberty of putting together the necessary binary and AppleScript application, with instructions, which can be downloaded here:

http://rapidshare.com/files/335907463/LIT2HTML.zip



[ Reply to This | # ]