optimus1509 Posted October 3, 2020 Share Posted October 3, 2020 Hi, I am trying to find a workflow that will allow me to create and manage notes in sidenotes. Anyone using this? Any pointers to a workflow will be greatly appreciated. Cant seem to find any on packal or pacmax. Link to comment
vitor Posted October 4, 2020 Share Posted October 4, 2020 Doesn’t look like it’s possible. I looked at SideNote’s AppleScript dictionary and it seems to only be able to show and read notes, not create them. Pity, looked like an interesting app. Link to comment
optimus1509 Posted October 4, 2020 Author Share Posted October 4, 2020 Thanks for your response. I’ve been able to get around this for now by simply using the side notes create note key combo in an alfred workflow for creating a new note. Not the most ideal way but gets the job done. Link to comment
Acidham Posted October 4, 2020 Share Posted October 4, 2020 I am not using SideNotes but with AppleScript it will be relatively easy. Following AS gets all available folders: -- Get list of available folders tell application "SideNotes" set folders_object to folders set folder_list to {} repeat with f in folders_object set folder_list to folder_list & name of item 1 of f end repeat end tell And with this you can create a note "hello world": -- Use folder name from previous code set target_folder to "Showcase" -- Create note in target folder tell application "SideNotes" set n to make new note at folder target_folder set text of n to "hello world" end tell 1. WF step requires a Script Filter for choosing a target folder 2. WF step to enter the text for the note 3. WF step create note in SideNotes cands 1 Link to comment
vitor Posted October 4, 2020 Share Posted October 4, 2020 @Acidham I stand corrected! Link to comment
optimus1509 Posted October 4, 2020 Author Share Posted October 4, 2020 @Acidham @vitor Please excuse my lack of knowledge, but this is a little more complex than i thought it would be, passing the results of the SideNotes folders back to alfred etc are not my cup of tea. Any chance you can help with the exact workflow to be created? I am looking at typing a keyword--> alfred shows list of folders-->I select or specify the folder--> type the text for the note-->Alfred creates the note in the specified folder. Thanks again for all your help. Link to comment
Acidham Posted October 4, 2020 Share Posted October 4, 2020 Quick and dirty...enjoy: https://github.com/Acidham/alfred-sidenotes optimus1509 1 Link to comment
optimus1509 Posted October 5, 2020 Author Share Posted October 5, 2020 (edited) I tried out the workflow and it works perfectly. Thank you very much for your help. Edited October 5, 2020 by optimus1509 Link to comment
yarub123 Posted November 7, 2020 Share Posted November 7, 2020 Thank you very much Acidham, seriously. Was wondering if this can be modified to allow one to view notes in each folder? like just show a list of them and maybe allow us to click the shift key to use the normal preview? Take care Germany. Link to comment
optimus1509 Posted November 14, 2020 Author Share Posted November 14, 2020 @Acidham For some reason this is no longer working when i moved to macOS Big Sur and reinstalled python 3.9. The workflow debugger gives the following - ImportError: cannot import name 'readPlist' from 'plistlib' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/plistlib.py) Any suggestions please? Thanks Link to comment
Acidham Posted November 14, 2020 Share Posted November 14, 2020 (edited) Please try following workaround and let me know: Edited November 14, 2020 by Acidham Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now