Plain Javascript is a client-side language that can't really do anything outside the browser.
Tell us more about your project.
I want to use OSX Javascript to help me automate formatting some text and inputting it into Numbers.
I take daily notes in the Notes app. Each note is 1 day. I will have multiple entries in each note separated by client name and time and other details. I then need to copy paste this info and put it into a spreadsheet into pre formatted cells, etc
right now, I am doing this manually but I think it should be possible to use javascript, some reg expression to find "read" my notes, then paste them into the cells.
Is that possible? In my head, I think it is possible so I am trying to see how far I can get using javascript. Also thinking this will allow me to learn Javascript for use in OSX and for use in web apps too.
I will have to format my entries in a specific way.
something like this:
<entry>
<startTime></startTime>
<issue></issue>
<troubleShooting></troubleShooting>
<resolution></resolution>
<endTime></endTime>
</entry>
e.g.
<entry>
<startTime>15:00</startTime>
<issue>user cannot access network drive</issue>
<troubleShooting>
- network drive not mapped
- checked permissions and found incorrect permissions
- corrected permissions, user can access drive now
</troubleShooting>
<resolution>
- resolved issue by correct network drive permissions
</resolution>
<endTime>15:30</endTime>
</entry>
Maybe use Javascript to read this into memory and then put it into an array?
Then switch over to Numbers, and paste each piece of info into cells. The spreadsheet can be open already or the script can open it.
Is that possible or is that too much for Javascript to do?
Thanks,