I am starting to learn AppleScript. I am running into a couple issues that I could not find document for.
script gt
to sms to someone about m
"sms to " & someone & " about " & m
end
to move pix to pos
"moving " & pix & " to " & pos
end
to resize in pix to size
"resize " & pix & " to " & size
end
end
- for the to sms handler, I have to add the "to" after the sms. but I did not see any document mention the to as part of the directParamName
- for the to move handler, it does not seem like the directParameter need either of, in or even "to"
- for the to resize handler, I have to add either "in" or "of", or it won't work. if I add "to", it will complain "to" is used twice.
my question is why the "to sms" handler can have the "to", "to resize" handler must have either "in or of" while the "to move" handler needs none of these?
Thanks!
Here is the document I read a couple times but could not find any reference to any of this