promotion image of download ymail app
Promoted
Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 7 years ago

What is applescript error 1708?

I am creating a basic applescript which will run upon login to ichat. I want the script to send a set message to each available buddy. I figured out the coding, and it works when I test it out by pressing the "run" button in applescript editor, but once I go into ichat and set it to run this applescript on login it always says: An error occurred while executing an AppleScript event handler. Event: When I Log In

File: THIS.scpt

Error: Error -1708

Here is the code:

tell application "iChat"

repeat with myBuddy in buddies

if status of myBuddy is available then

send "MESSAGE" to myBuddy

end if

end repeat

end tell

What is wrong with it? I am just a beginner and I taught myself, so my code may be a bit sloppy.

2 Answers

Relevance
  • Anonymous
    7 years ago
    Favorite Answer

    put the "open application file" inside a "try ... on error ... end try" block. Trap the error and see what changes.

    don't scripts inside Xcode buttons need to be inside "on run ... end run" blocks

    • Commenter avatarLogin to reply the answers
  • 3 years ago

    Applescript On Error

    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.