Problems with splitting String variable into other variables

Hi all …

I’ve got 4 lines of text In a variable. I need to split up each line of text and put each line into its own variable.

For example the source variable looks like this:

Source Variable

And the result should be:

( Bare in mind, the values of the above can change in the app and is not static data! )

My guess would be parsing using a line break? But I don’t know the syntax for parsing text… Any help would be much appreciated!

Thanks a lot guys!


Model: PowerMac G4
AppleScript: Xcode 3.1
Browser: Safari 526.11.2
Operating System: Mac OS X (10.5)


if there is a specified number of variables / lines, the syntax is quite esay

set source to "[PRESET]
Name=The Name Of Something
Code=The Code Here"

set {var1, var2, var3, var4} to paragraphs of source

Thanks a lot! :wink: