An update on the experimental qNote script
Basically, this script is a floating window version of Sorter that is only focused on notes taking for those who use large 4k display/s and don’t want to look up to the top right corner of the display/s when typing their notes (that user is me).
How to use the script:
- Download “Dialog Toolkit Plus.scptd” and save it under “/Library/Script Libraries”
- Save the script as “Application”. The best way to use the script is to attach a shortcut keys by using BTT or KM or the automator>sevices.
- Saving the script as an application in MacOS script folder means that the script can be used anywhere in the system and save note into different DT groups even when the designated databases are not opened (DT or DT’s database will be opened automatically when the note is saved).
- The Dialog Toolkit Plus can be downloaded from the Late Night Software website.
DEMO
When the user selects a block of codes, they can use “Append Code” button to add fenced code.
- Append selected text is also supported by using the “Append Text” button.
- There is an internal preference to set the programming language and the header for formatting.
- The user must define the UUIDs of their own groups in the script for saving the notes .
The user can also paste the website URL address into the note. Only Safari and Chrome are supported.
The programming for this feature is the most challenging area and is still somewhat experimental ( i.e. Can be unstable).
The user can append multiple blocks of text, fenced code, and website URL in the same note.
The user can also capture multiple screenshots in the same note.
- The captured images won’t show in the note window (it’s plain text) but there is a count of Captured image in the upper right corner of the dialog box.
- The mechanisms of the above features are working in the same manner for MD and RTF note.
The created note, saved under one of the designated note groups.
For the images in MD notes will be saved under a common image assets folder.
- The image files use the naming format of DBname_Groupname_Notename_image#.
- There can only be one group for saving the images and its uuid must be defined in the script.
- For RTF notes, there is an internal preference to delete the image files after the note is created.
DEMO 2: Setting DT reminder and Apple Calendar event.
The user can set a few basic types of DT reminder and to add the event to a chosen Apple calendar with an event duration. If DT remainder and Apple calendar event are both used, the DT reminder time of alert is set at the last dropdown list.
There is a bug in Catalina and AppleScript can’t set the Apple Calendar alarm.
The user can add a reminder without adding a note. Just type in the reminder’s message field and leave the name and body fields empty.
A reminder is set, and an Apple Calendar event is set with a link to the DT note.
The Script
Note: The programming of appending text and code block, and getting the browser URL is not trivial. Some UI programming that involves keystrokes and time delay may make this script unusable on some computers. In addition, not all apps support select text method smoothly (I think).
I develop this for own use, and will unlikely to add any feature in the future, except for bug-fixes.
Cheers
qNoteV4b5.scpt.zip (53.6 KB)
Updated 2020.05.28: v4b6 is identical to v1b5 but include error reporting message.
qNoteV4b6 (w error messge).scpt.zip (56.6 KB)