8 lines
204 B
AppleScript
8 lines
204 B
AppleScript
on getName(x) -- x assumed to be a record for this demo.
|
|
set x to x & {firstName:"?", lastName:"?"}
|
|
|
|
return x's firstName & ", " & x's lastName
|
|
end getName
|
|
|
|
getName({lastName:"Doe"})
|
|
--> "?, Doe"
|