wesk 0 Posted May 12, 2016 Share Posted May 12, 2016 I'm looking to create an indexed notebook for a host of notes that will be accessed through a note link page. I have the names for the notebooks in a text list. Is there a way that I can create all the notes with the titles that I have in the text file as a bulk process? Link to comment
Level 5* DTLow 5,735 Posted May 12, 2016 Level 5* Share Posted May 12, 2016 52 minutes ago, wesk said: I'm looking to create an indexed notebook for a host of notes that will be accessed through a note link page. I have the names for the notebooks in a text list. Is there a way that I can create all the notes with the titles that I have in the text file as a bulk process? >>create all the notes with the titles that I have in the text file as a bulk process? I do this on my Mac using Applescript (monthly bank transaction files) but you would end up with empty notes. Wouldn't it make more sense to work the other way; - Create the notes first - Retrieve the note titles (and optionally urls) - If this is to be replicated, as in a "template notebook"; you could create the notes, and then export them as an .enex file Importing the .enex file would create a new notebook Link to comment
wesk 0 Posted May 12, 2016 Author Share Posted May 12, 2016 Thanks for the input. Actually, I want the notes to be empty to start. I want to create a notebook that will have notes for all the processes of my business and then be able to visit any of the topics through links. Each of the topics will be populated over time with new and revised information. I'm looking to build the structure before inserting content. The list has roughly 150 notes and providing titles to that many notes seems like something that could be automated. I'm on Apple as well. Link to comment
Level 5* DTLow 5,735 Posted May 12, 2016 Level 5* Share Posted May 12, 2016 Heres a sample of my Applescript code to process a text file and create notes from each entry on Process_File_csv(new_File) --Sample --2016-03-22,"COCA COLA VICTORIA BC VICTORIA, BC ",1.00, --2016-03-21,"APL* ITUNES.COM/BILL 800-676-2775, ON ",10.02, -- Read File Contents ----------------------- set file_Ref to open for access new_File set file_Contents to (read file_Ref) close access new_File Process_Rows(file_Contents) end Process_File_csv -- Process Rows ------------------------------- ------------------------------------------------- on Process_Rows(file_Contents) set old_Delims to AppleScript's text item delimiters set AppleScript's text item delimiters to {(ASCII character 10)} set record_Lines to every text item of file_Contents set AppleScript's text item delimiters to old_Delims repeat with record_Line in record_Lines if record_Line > {} then set record_Line to my find_Escaped(record_Line) set note_Title to Process_Columns(record_Line) set note_Title to Replace_Comma(note_Title, "&#" & "44;", ",") set note_Tags to Process_Tags(note_Title) tell application "Evernote" -- Create the note -------------------------------- set new_Note to (create note with text file_Name title note_Title notebook "Filing?") assign note_Tags to new_Note end tell end if end repeat end Process_Rows Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.