I am trying to make an application apple scriptable. I have created a scripting definition by copying mail.sdef and modifying it to suit my needs as the documentation recommends. My app suite at this point only has one command in it. Here is the definition:
I am not sure what is wrong with my definition above, but AppleScript Editor keeps complaining: "Expected end of line but found identifier." at the statement where command is invoked. Here is how my test sript looks like:
tell application "NAZone"
launch
try
accountlogin loginName "test@mail.com" passwordStr "abcdef12345"
on error errStr number errNum
display dialog errStr & errNum
end try
end tell
AppleScript Editor complains anything following the command name. I don't think my command is somehow recognized.
I new to making applications scriptable as well as apple scripting.
0 comments:
Post a Comment