Hello
I'm trying to place a variable within a sentence. Here's an example:
How can I have the variable fourthWord inserted in the middle of that quote? I've looked how to do it everywhere and I'm stumped
I'd greatly appreciate someone's help.
Thanks
I'm trying to place a variable within a sentence. Here's an example:
Code:
display dialog "What is your name?" default answer "" buttons {"Cancel", "Okay"} default button 2
copy the result as list to {theText, theButton}
if theText contains "My name is" then
set fourthWord to word 4 of theText
display dialog "My name is -this is where the variable should be!- too!"
end if
I'd greatly appreciate someone's help.
Thanks