• 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: GoTo Specific Note in Notes.app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GoTo Specific Note in Notes.app?


  • Subject: Re: GoTo Specific Note in Notes.app?
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 01 May 2015 10:08:15 -0500

Hey Folks,

Thanks to everyone who helped with this.  And thank you Bill Cheeseman for UI Browser; it has saved me from apoplexy when dealing with UI-Scripting.

Once I started messing with System Events I got to here pretty fast:

-------------------------------------------------------------------------------------------
tell application "System Events"
  tell application process "Notes"
    set selectedRow to first row of table 1 of scroll area 1 of group 1 of splitter group 1 of window 1 whose selected is true
    tell selectedRow
      its properties
    end tell
  end tell
end tell
-------------------------------------------------------------------------------------------

Okay; this works for selecting a row:

-------------------------------------------------------------------------------------------
tell application "System Events"
tell application process "Notes"
set selected of row 1 of table 1 of scroll area 1 of group 1 of splitter group 1 of window 1 to true
end tell
end tell
-------------------------------------------------------------------------------------------

I've got to fiddle with this some more to suit the person I'm working with but am reasonably happy with my progress so far.

(Not happy that Notes' AppleScript dictionary lacks some of the most basic niceties, but that's par - and let's please not get into another angry tirade on-list.  I'll file a bug, but I bet it'll be a dupe.)

--
Take Care,
Chris

 _______________________________________________
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

  • Follow-Ups:
    • Re: GoTo Specific Note in Notes.app?
      • From: Chris Page <email@hidden>
  • Prev by Date: Re: Why can't I set sender in new outgoing Apple Mail message?
  • Next by Date: Re: Why can't I set sender in new outgoing Apple Mail message?
  • Previous by thread: Re: GoTo Specific Note in Notes.app?
  • Next by thread: Re: GoTo Specific Note in Notes.app?
  • Index(es):
    • Date
    • Thread