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
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
What is wrong with it? I am just a beginner and I taught myself, so my code may be a bit sloppy.
- Anonymous7 years agoFavorite 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