Applescript how to get part of the text and set it as variable?
Hello! I'm very newbie for Applescript. Please help.
Example.
display
dialog "" default answer "" buttons {"OK"}
default button 1
-->>Result
is something like {button returned:"OK", text
returned:"AAABBBCCCFFF111BBB222AAADDR"}
How
to get from result only part of the text (for example) "AAA" and
"BBB" and set both as variable?
Script
has to find "AAA" and set it as variable1
than
find BBB and set it to variable2
than
again search for the next "AAA" and set variable3
MacBook Pro 15", 10.12