dvdblk / notability-notes-converter

Easily convert all of your Notability notes to PDF.
26 stars 3 forks source link

Doesn't seem to work anymore #1

Open anmoljagetia opened 4 years ago

anmoljagetia commented 4 years ago

Hey,

Thanks for this script. I was looking for something like this that I can run as a CRON on my computer and can periodically sync notes into PDF. I get the following error when I run the script from the terminal:

notability_pdf_export.scpt:853:857: execution error: System Events got an error: Can’t get window "0-byte_deep_learning" of application process "Notability". (-1728)

Do you have any idea how to fix this? I have no idea how the AppleScript works. All help is greatly appreciated.

dvdblk commented 4 years ago

Hey, yeah, originally I wanted to run it as a CRON as well however the hardcoded delays in the script aren’t very reliable. That’s probably also the problem on your end.

Basically, the script tries to access some UI on a window that is not available yet. Try to increase the delays individually and see if it works then.

I can look into it in a few days if you’d need something more specific or if it doesn’t help.

EDIT: Delay in this subroutine.

anmoljagetia commented 4 years ago

Thank you for the prompt reply. Let me test this out and report back. Any help from your side will be great!

anmoljagetia commented 4 years ago

I changed the delay to 2, 4, 5, 9, 15. I still get the error on note number 2 which makes me wonder, can it be something else?

dvdblk commented 4 years ago

Actually, looking at the -1728 error code now this might not be due to the delays. Maybe this will help.

EDIT: maybe try to rename the file (e.g. to something that doesn’t start with a number).

anmoljagetia commented 4 years ago

Ah, it could be this. Unfortunately, I have lots of notes with numbers to make it easier to sort them :( Is there a fix for this?

DominiquePaul commented 2 years ago

I'd also be very interested in a solution :)

dvdblk commented 2 years ago

@DominiquePaul I haven't used this script in a while. What's the issue?

DominiquePaul commented 2 years ago

Hi,

I’ve gotten the same error as mentioned in the last issue on the repo. Maybe its because of a software update. Are you still maintaining the repo? :)

best Dom

— Dominique Paul Mobile: +41 76 801 7796 @. On 17. Nov 2021, 08:09 +0100, David Bielik @.>, wrote:

@DominiquePaul I haven't used this script in a while. What's the issue? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Noorts commented 2 months ago

Hi all,

It seems that a new MacOS app was launched (years ago AFAIK), changing the layout around quite a bit (much deeper in terms of nested groups (e.g., group of collection of group 1 of group 1 of group 1 of notabilityWindow)).

Using UI browser to identify the structure I was unfortunately not able to successfully fix the applescript provided in this repository. An attempt with PyXA also did not pan out.

Would love to hear if somebody else figures it out!