|
|
10.8: New Notes App Service
If the script doesn't work with rich text input, why do you need to convert the text to HTML? It makes the body use Times 12 instead of the default font. defaults -app doesn't work with Notes (or a few other applications) for me for some reason. And I didn't even have a DefaultAccount key. It would be easier to just specify the account and folder in the script. This also selects new notes: on run {input, parameters}
tell application "Notes"
tell account 1 to tell folder "Notes"
make new note with properties {body:input}
end tell
activate
end tell
tell application "System Events" to tell 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
set focused of group 1 of UI element 1 of scroll area 1 of group 2 of splitter group 1 of window 1 to true
end tell
end runEdited on Apr 13, '13 02:36:10AM by Lri
10.8: New Notes App Service
By converting to HTML you maintain line breaks, indentation, etc... Edited on Apr 13, '13 07:51:38PM by thawk9455
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|