Getting line by line in Apple Script from Address Books Note Field
Posted
by
Axwack
on Stack Overflow
See other posts from Stack Overflow
or by Axwack
Published on 2010-12-25T02:48:41Z
Indexed on
2010/12/25
2:54 UTC
Read the original article
Hit count: 245
applescript
|automator
I have two lines in my address book's note field
Test 1 Test 2
I would like to get each line as a separate value or get the last line from the notes field.
I tried doing it this way: tell application "Address Book" set AppleScript's text item delimiters to "space" get the note of person in group "Test Group" end tell
but the result is {"Test 1 Test 2"}
I'm looking for :
{"Test1","Test2"}
What am I doing incorrect?
© Stack Overflow or respective owner