Re: Getting error -1708 for Messages script [Solved]
Re: Getting error -1708 for Messages script [Solved]
- Subject: Re: Getting error -1708 for Messages script [Solved]
- From: Cheng-Yang Tan <email@hidden>
- Date: Mon, 26 Nov 2012 11:33:30 -0800 (PST)
Hi guys,
The problems turns out to be the applescript file not being updated when I edited it! It turns out that Messages makes a copy of the the script and puts it into ~/Library/Scripts/Messages and so edits should be done to the script file in this folder.
Once that was done. Everything worked!
cytan
From: Cheng-Yang Tan <email@hidden>
To: "email@hidden"
<email@hidden>
Sent: Sunday, November 25, 2012 6:22 PM
Subject: Getting error -1708 for Messages script
Hi guys,
First, I am an applescript beginner, so I'm sure what I did is probably wrong and I hope one of you can help me with the script.
The goal is to write an event handler for Messages which I wrote below in applescript:
*******************************************************
using terms from application "Messages"
on buddy became available myBuddy
tell application "Messages"
tell myBuddy
set buddyName to full name
end tell
end tell
end buddy became available
end using terms from
*********************************************************
The goal is to
eventually pop up a message box. However, right now I am getting and
-1708 error whenever this script is called by Messages event "Buddy becomes available" in Messages->Preferences->Alerts.
I can't find anything that is obviously wrong. Please help.
Thanks!
cytan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden