tell Grog to glog
tell Grog to glog
- Subject: tell Grog to glog
- From: Gil Dawson <email@hidden>
- Date: Sat, 6 Jan 2007 17:22:46 -0800
Title: tell Grog to glog
Hi--
Can someone please help me understand why this doesn't do what I
think it should?
I wrote the following little app using Smile 2.6.9 and MacOS
10.4.8...
global StartTime
set StartTime to (current date)
tell me to activate
display dialog "Grog launched."
on glog(s)
display dialog "Grog
called with " & ¬
s & ¬
"
as a parameter."
end glog
on idle
if
(current date) > (StartTime + 10) then quit
return 5 -- check again in five seconds
end idle
...saving it to my desktop as a Stay-Open Application under the
name "Grog".
Then, in a new Smile window, I wrote the following...
tell application "Grog"
glog("xxx")
end tell
...and pressed command-R to run it.
The dialog appeared, "Grog launched."
Grog was the active application. I clicked
"OK".
Next appeared the spinning rainbow pizza. After several
(perhaps 5) seconds, an error dialog appeared, "Grog got an
error: Connection is invalid."
I tried this same thing with Script Editor Version 2.1.1(81)
AppleScript 1.10.7, and got the same result.
Can someone please help me interpret this message?
--Gil
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden