Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

turning an Applescript string into an array

Hi community,


I have a string that looks something like this "Hi,\nMy\nName\nIs\nBatman" (the \n is a paragraph identifier) and i want to turn it into the array {"Hi", "My", "Name", "Is", "Batman"}. Does anyone know how to automate the process through applescript? Thanks.

Posted on Aug 5, 2011 9:02 AM

Reply
Question marked as Best reply

Posted on Aug 5, 2011 9:24 AM

set t to "Hi,\nMy\nName\nIs\nBatman"

set tAsList to paragraphs of t

2 replies

turning an Applescript string into an array

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.