Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 07-20-2009, 07:16 PM   #1
mrgiedrnkr
Enthusiast
mrgiedrnkr began at the beginning.
 
Posts: 26
Karma: 42
Join Date: Dec 2008
Device: Sony PRS-505
Converting to LRF in Mac

Hi guys!
I have gotten to be a pro in formatting my purchased ereader and mobi books for my sony. However, I am now converting to a Mac. I am clueless on how to start this on a Mac. I don't even know what is comparable for a dos prompt. Do I just download python, my scripts and calibre and convert it in the same manner I do on my PC?
Thanks for your help!
Stacy
mrgiedrnkr is offline   Reply With Quote
Old 07-20-2009, 08:14 PM   #2
dgillette.rm
Connoisseur
dgillette.rm knows the difference between 'who' and 'whom'dgillette.rm knows the difference between 'who' and 'whom'dgillette.rm knows the difference between 'who' and 'whom'dgillette.rm knows the difference between 'who' and 'whom'dgillette.rm knows the difference between 'who' and 'whom'dgillette.rm knows the difference between 'who' and 'whom'dgillette.rm knows the difference between 'who' and 'whom'dgillette.rm knows the difference between 'who' and 'whom'dgillette.rm knows the difference between 'who' and 'whom'dgillette.rm knows the difference between 'who' and 'whom'dgillette.rm knows the difference between 'who' and 'whom'
 
dgillette.rm's Avatar
 
Posts: 95
Karma: 10072
Join Date: Apr 2008
Device: sony
The equivalent of a dos prompt on a mac is the program called terminal. This gives you a unix command line. Python should be installed, but might not be the latest version. Calibre runs great, not sure what your implied extra scripts do for you, but you should be able to do this with little to no trouble.
dgillette.rm is offline   Reply With Quote
Advert
Old 07-20-2009, 08:38 PM   #3
mrgiedrnkr
Enthusiast
mrgiedrnkr began at the beginning.
 
Posts: 26
Karma: 42
Join Date: Dec 2008
Device: Sony PRS-505
Thank you so much. I have lots to learn about Mac.

The scripts I normally run are mobidedrm and script1 (which is my name for my script Secure ereader drm stripper to html). I normally type something like this:

c:\books\script1.py book.prc book.prc "Name" 12345678 (last 8 digits of the credit card)

I don't even know how to do a command like that in terminal.
Stacy
mrgiedrnkr is offline   Reply With Quote
Old 07-21-2009, 01:58 PM   #4
DanielCoffey
Connoisseur
DanielCoffey began at the beginning.
 
DanielCoffey's Avatar
 
Posts: 66
Karma: 26
Join Date: Jun 2009
Location: Edinburgh, UK
Device: Sony PRS-505
As mentioned, Terminal is located in the Applications -> Utilities folder. Double-click to open it (you may want to drag a copy to the Dashboard if you use it a lot).

By default, it will be pointing to the Users - WhateverYourUsernameIs directory.

To change directory in Terminal, just use the cd command - for example

cd documents
cd ebooks

When working on a book, I made a folder under documents called work and copied some of the scripts that Calibre 0.5.14 uses (right-click on Calibre, show package contents, navigate to Contents - Resources - Loaders to find them). I made a copy of the (in my case) rtf2lrf and lrs2lrf and lrf2lrs scripts and placed them in my work directory.

From there, all you have to do is make sure a copy of your ebook file is in the same directory and away you go...

In the Terminal window, I typed...

lrf2lrs myebook.lrf

...and the book exploded and disgorged its pictures and .lrs file.

A version of Python is already on the Mac in leopard.

Now, as for de-DRMing your books, your command is good. Taking your example, move the script and the book into your work directory and type...

script1 bookwithDRMname bookwithoutDRMname "Name" 12345678

(I think the quotes are only required to enclose anything with spaces in it).

When you are done, Cmd-Q to finish with Terminal.

I hope that is useful information for you.

Last edited by DanielCoffey; 07-21-2009 at 02:00 PM.
DanielCoffey is offline   Reply With Quote
Old 07-22-2009, 09:49 AM   #5
curtw
Outside of a dog
curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.
 
curtw's Avatar
 
Posts: 863
Karma: 4457646
Join Date: Dec 2007
Location: Houston, TX
Device: Kindle Voyage
I had been meaning to pitch in on this thread, but I just haven't had the time. DanielCoffey got you the main pathway through doing it in the terminal (although, shouldn't the first word in the line to execute the command be "python?" if you just type in "scriptname... " it will be looking for "scriptname.exe." )

The main point I wanted to make was that this can all be automated through the quick and simple creation of an Applescript. If you're new to Mac, this is the tool you should really try to teach yourself. It will permit you to generate a small GUI applet onto which you can drag and drop your files for conversion without ever having to drop into terminal.

I'll upload my Applescript for the Python script I normally use when I get home tonight (no, it does not include the script itself), and you can either just use it, or open it in order to understand the power of the language. Essentially, anything you can do in the terminal, you can also do in the GUI by making a bit of Applescript code with "do shell script..."
curtw is offline   Reply With Quote
Advert
Old 07-22-2009, 11:14 PM   #6
curtw
Outside of a dog
curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.curtw ought to be getting tired of karma fortunes by now.
 
curtw's Avatar
 
Posts: 863
Karma: 4457646
Join Date: Dec 2007
Location: Houston, TX
Device: Kindle Voyage
mrgiedrnkr,

Here is the AppleScript file. Moderators, please note, this file DOES NOT INCLUDE MOBIDEDRM. Just drag and drop your Mobipocket files onto this icon. You will have to tell the program where your mobidedrm.py script is located, and give it your PID, but once you've done that the first time, it won't ask again. (If you move mobidedrm or change your PID, you'll have to delete the plist, or preferences file, to make it think it's the first time you're running it again).

You can open this file in the Script Editor, and it should be pretty intuitive how to edit it for what you need for your "script1." Double-clicking on this file won't get you anywhere.

Please note that this script *should* be robust enough to handle files located within an arbitrary number of nested folders, and/or folders with spaces in the names, BUT... while the Mac OS GUI will permit you to put a slash ("/") in the name of a file or folder, once you pass that name within UNIX, the command line interpreter will think that's a directory delimiter, and the program won't work properly. In general, it's bad idea to put slashes in the names anyway.

Drop a note if you have any problems...
Attached Files
File Type: zip MobiFree.app.zip (25.0 KB, 341 views)

Last edited by curtw; 07-24-2009 at 02:50 PM.
curtw is offline   Reply With Quote
Old 08-12-2009, 12:54 PM   #7
mrgiedrnkr
Enthusiast
mrgiedrnkr began at the beginning.
 
Posts: 26
Karma: 42
Join Date: Dec 2008
Device: Sony PRS-505
I FINALLY got the hang of my scripts on my mac. Thank the heavens and thank you guys for all of your help. I can continue buying secure ereader and mobi books without going to my pc.
Stacy
mrgiedrnkr is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting LRF ahi LRF 1 06-14-2009 01:10 AM
Converting *from* lrf ? FixB Sony Reader 19 09-12-2008 06:56 PM
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything vasbinde Calibre 6 02-14-2008 12:16 PM
Converting to LRF sminarovich Sony Reader 4 01-18-2008 01:37 PM
Converting to LRF rozie123 Sony Reader Dev Corner 13 01-17-2008 10:54 AM


All times are GMT -4. The time now is 07:28 AM.


MobileRead.com is a privately owned, operated and funded community.