• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting NoteBook
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting NoteBook


  • Subject: Re: Scripting NoteBook
  • From: email@hidden
  • Date: Tue, 12 Jan 2016 10:16:11 +0000

There is a very similar app to NoteBook, called NoteTaker which is available from the AppStore @ £18.99
 
AFAIR the makers of NoteBook and NoteTaker were once a single company, but there was a falling out and Circus Ponies began. I am sorry to hear that CP has closed its doors.
 
I find that NoteTaker is more robust than NoteBook. I hope it suits your needs.
 
 
On Tue, Jan 12, 2016, at 12:26 AM, Rob Lewis wrote:
As you may have heard, Circus Ponies has closed its doors, leaving users of its NoteBook app orphaned. 
 
I’m trying to write a script to migrate my notebooks into some other app, probably TextEdit. 
 
Can’t figure out why this handler can’t access the properties of a “cell”. Documents contain pages, which are made up of cells. However, cells can contain both cells and pages, and cells have a “text” property that is the meat of what I want to get at. 
 
(for now, I am ignoring pages that may be contained by cells)
 
The log has error messages like this: 
get identifier of «class id 4.621785744E+9 of page id 4.61591776E+9 of notebook id 4.314097664E+9
--> error number -1700 from «class id 4.621785744E+9 of page id 4.61591776E+9 of notebook id 4.314097664E+9 to reference
It appears the innermost “display dialog” can’t access the identifier property of the current cell. The statement works if I don’t try to append the identifier to the string. 
 
 
--recursively handle a page, which contains (only) cells
onhandle_page(a_page)
using terms from application "NoteBook"
--display dialog "Entering handle_page for page " & name of a_page --works
tell a_page
try
set nested_cells to its every cell
--display dialog "Found " & (count of nested_cells) & " cells in page " & name of a_page --works
repeat witha_nested_cellinnested_cells
display dialog "About to recursively handle cell " & (identifier of a_nested_cell) --works without identifier
tell me tohandle_cell(a_nested_cell) --recurse
end repeat
end try
end tell
end using terms from
endhandle_page
 
 
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
 
This email sent to email@hidden
 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Scripting NoteBook (From: Rob Lewis <email@hidden>)

  • Prev by Date: Re: UI Scripting summary (was Re: Scripting NoteBook, continued)
  • Next by Date: Re: Scripting NoteBook
  • Previous by thread: Scripting NoteBook
  • Next by thread: Re: Scripting NoteBook
  • Index(es):
    • Date
    • Thread