It’s very straightforward to make one variable the result returned from a dialog in applescript, but is it possible to use the first and second letter as two separate variables and the rest of the result returned from the dialog as a third? Below there’s a code example with what I want to do and approximately where I think I want to do it.
tell application "Finder"
activate
display dialog "newNameOfFolderDialogue" default answer "x"
set categoryOne to [THE FIRST LETTER OF] (text returned of result)
set categoryTwo to [THE SECOND LETTER OF] (text returned of result)
set categoryThree to [THE REMAINING LETTERS OF] (text returned of result)
end tell
Couldn’t be simpler: