• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
tell Grog to glog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: tell Grog to glog
      • From: Axel Luttgens <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>)

  • Prev by Date: Re: AS and Unicode characters
  • Next by Date: Re: tell Grog to glog
  • Previous by thread: Re: AS and Unicode characters
  • Next by thread: Re: tell Grog to glog
  • Index(es):
    • Date
    • Thread