View Full Version : Hosed My MobiDeDRM setup on Mac after Reinstall


Gideon
06-06-2009, 02:17 AM
Okay.. so I reinstalled Leopard tonight to reclaim some space from an Ubuntu install.

I copied over my Applescript 'mobi related script' from Time Machine and it didn't work, and I vaguely remembered something about Python so I looked it up and installed 2.6.

Still not working though.

I really haven't the foggiest what to do next. It's been too long since I set it up and I don't remember what else to do.

It asks for my 'special number' and then... nothin'.

Any help?

Gideon
06-06-2009, 02:52 AM
Okay... pretty sure this is all a python problem. When I type python into the Terminal I'm getting the default install info (2.5.1) instead of the newer version I installed (2.6).

So what I need help with is getting my computer to realize that I've installed this new version and allow scripts I run to get it going.

Unfortunately, I am not finding anything helpful online in fixing the problem of "the install not completing." Any help would be appreciated.

phenomshel
06-06-2009, 03:15 AM
Sorry, Gideon, I just barely got it working on Windows, much less Mac; I don't have a clue.

pdurrant
06-06-2009, 04:14 AM
After re-installing Leopard, you should also install the (free) developer tools XCode (http://developer.apple.com/technology/xcode.html). That will install a version of Python (& lots of other goodies) that will run the python script you want to run.

You might already have a disk with the developer tools on it - I can't remember if it's including on the retail DVD.



Okay.. so I reinstalled Leopard tonight to reclaim some space from an Ubuntu install.

I copied over my Applescript 'mobi related script' from Time Machine and it didn't work, and I vaguely remembered something about Python so I looked it up and installed 2.6.

Still not working though.

I really haven't the foggiest what to do next. It's been too long since I set it up and I don't remember what else to do.

It asks for my 'special number' and then... nothin'.

Any help?

Gideon
06-06-2009, 04:59 AM
It's on the DVD, I installed it and rebooted - but still no luck - same thing.

Gideon
06-06-2009, 05:41 AM
I've used different files, changed the names between prc and mobi.. same results over and over again. It's the EXACT same script that has been working for me, so my guess is it is something with Python. Something isn't set right, etc...

Looking at the event log in the script editor, it quits running at this point:

tell application "Finder"
get every file of folder (alias "Mono:Users:gideon:Desktop:") whose name extension = "prc" or name extension = "mobi" or name extension = "azw"
{}
get every folder of folder (alias "Mono:Users:gideon:Desktop:")
{}
end tell

Gideon
06-06-2009, 06:05 AM
Made one last stab...

Works on command line, so maybe not python. Tried fresh script as well as old one. No bloody clue. At least I figured out how to use it in the command line... lol

JSWolf
06-06-2009, 10:55 AM
I didn't think the script worked other then the command line.

pdurrant
06-06-2009, 04:28 PM
You seem to be dragging your whole desktop folder onto the script. Try just dragging a single file.

Looking at the event log in the script editor, it quits running at this point:

tell application "Finder"
get every file of folder (alias "Mono:Users:gideon:Desktop:") whose name extension = "prc" or name extension = "mobi" or name extension = "azw"

Gideon
06-07-2009, 02:15 AM
That was just in that example. Does the same thing (more or less) when I use just one file. Still seem to get a null response.