Re: NoteTaker script - help needed
Re: NoteTaker script - help needed
- Subject: Re: NoteTaker script - help needed
- From: email@hidden
- Date: Fri, 23 Jul 2010 03:39:58 -0700
Thanks Mark, good questions. I have (amazingly) figured out the
solution, which is very simple:
tell application "NoteTaker"
tell notebook 1
set myText to selected text of selected entry of current
page
set the name of current page to myText
end tell
end tell
On Fri, 23 Jul 2010 06:27 -0400, "Mark J. Reed" <email@hidden>
wrote:
> 1. Where is the "parseText" handler defined, and what does it do?
> 2. Don't you need "current page" instead of "the page" in the "set
> name" statement?
>
>
> On Friday, July 23, 2010, <email@hidden> wrote:
> > I have this script to set the name of the current page in NoteTaker
> > which partly works:
> >
> > tell application "NoteTaker"
> > tell notebook 1
> > try
> > set myText to selected text of selected entry of
> > current page
> > parseString(myText) of me
> > set newText to result
> > set the name of the page to newText
> > end try
> > end tell
> > end tell
> >
> >
> >
> > This script copies the selection but I get no result after that. How do
> > I change the script to get the current page renamed?
> >
> > Thanks for any help.
> > _______________________________________________
> > 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
> >
>
> --
> Mark J. Reed <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