Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tell Grog to glog



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >RE: AS and Unicode characters (From: KOENIG Yvan <email@hidden>)
 >Re: AS and Unicode characters (From: "Mark J. Reed" <email@hidden>)
 >Re: AS and Unicode characters (From: KOENIG Yvan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.