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


Click here to return to the 'An AppleScript droplet to ease .lit conversion' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript droplet to ease .lit conversion
Authored by: 6502 on Jul 17, '06 03:48:43PM
Robg seems to have cut out the code when he edited my hint to avoid using that evil word.

Here's the code with this important note: When you see "do shell script "/bin/c-l-i-t " in the code, change it to remove the dashes.

There's no other easy way to get it past the censor on this site.

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
        -- REMOVE THE DASHES BELOW THIS LINE
	do shell script "/bin/c-l-i-t " & file_path & " " & file_path & "_Open_eBook/"
	
end open
I get asked about converting .lit files for the Mac every couple of months. I think this applet is likely to be very handy for some people.

[ Reply to This | # ]
An AppleScript droplet to ease .lit conversion
Authored by: wallybear on Jul 18, '06 07:06:46AM

other easy way to get it past the censor on this site is to substitute the line:

do shell script "/bin/c-l-i-t " & file_path & " " & file_path & "_Open_eBook/"

with

do shell script "/bin/cl" & "it " & file_path & " " & file_path & "_Open_eBook/"

this way the line will work with no need to re-edit it



[ Reply to This | # ]