Save to Apple Notes or OneNote? #746
Replies: 1 comment 1 reply
-
I wanted something similar for the Apple eco-system so I created an Apple "Shortcuts" shortcut to apply fabric patterns to YouTube transcripts and generate them into a PDF and then automatically open them in Apple's Preview app. All from the comfort of my Mac laptop. Here is a link to the shortcut. https://www.icloud.com/shortcuts/03b67c7ef0d1419780d734fb41a2919b Clicking the above link will download my shortcut and put it into your shortcuts list of available shortcuts. The Shortcut is called "FabricYouTube". Just open the Shortcuts app and you should see it listed. Pre-requisites:
II. You will need to download the "/fabric/patterns" folder that has all the unique patterns and put that in the location referenced by the "shortcuts_patterns_path" note above. This file location is RELATIVE to where the Shortcuts app keeps all shortcuts. On my Mac that is located in "iCloud Drive / Shortcuts". So, for the example above you would want to download that folder to "iCloud Drive / Shortcuts / fabric / patterns". At some point I will modify the shortcut so it reaches out to the patterns folder in this GitHub repo to save this step and also to ensure you also have access to the latest and greatest patterns. IMPORTANT: I'm assuming your default web-browser is Safari so that the Shortcuts script can talk to it behind the scenes to get at the Youtube transcript. But...for the script to work, you will need to relax the security of your web browser by going into Safari, go to the "Develop" menu item, select the "Developer Settings" menu sub-item, and check the "Allow Javascript from Apple events" item. Your Mac should warn you about this setting that it is potentially insecure and you should remember to UN-check this after using this shortcut. I'm hoping that I or someone playing with this shortcut can figure out a way to NOT have to check this item, but for now, I haven't figured out a work-around. Before running this shortcut, I encourage you to EDIT the shortcut via the Shortcuts app and to examine what it does so you feel comfortable with what it is doing. If you have questions, just post questions in this discussion and I'll try to explain what the shortcut is doing. Usage: In Safari, go to YouTube.com and find some video that has a transcript you are interested in. You will then need to expand the "...more" button on the description to expose the transcript button. If a transcript exists, there will be a Transcript button you can click which will open and show the transcript of the video. At this point you will leave all of that up and switch over to the Shortcuts app, find the "FabricYouTube" shortcut and run it (look for a little "play" triangle in the upper right hand corner of the shortcut). The script will prompt you to enter in a "name" for this analysis of this transcript. It uses this later as a file name to store your fabric output results from the OpenAI model. It then will look at the list of patterns in the patterns folder (pointed to by the 'shortcuts_patterns_path') and present that to you in a choose-able list. Pick a pattern and then the shortcut will send that pattern along with the YouTube transcript to OpenAI and the returned results will be saved to a local file under relative to where your patterns are, convert that to a PDF and open Preview and show it to you. WHEW! A lot of information but since you said you were not a coder, I wanted to be as detailed as possible. To anyone else reading all of this, I would LOVE for someone to improve on this. Once you get it working, it is really friction-less to point to a YouTube video transcript and get it into a nice PDF format for use later. Enjoy! |
Beta Was this translation helpful? Give feedback.
-
I should start by mentioning that I'm not an experienced coder and I'm relatively new to AI tools, so pardon any ignorance on my part.
I have seen that Fabric has the capability to save generated text to Obsidian and other PKMs. Does this include Apple Notes or OneNote? If so, would anyone be able and willing to explain how to do that?
Beta Was this translation helpful? Give feedback.
All reactions