• 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
Run bug between 1.37 and 1.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Run bug between 1.37 and 1.6


  • Subject: Run bug between 1.37 and 1.6
  • From: "Serge Belleudy-d'Espinose" <email@hidden>
  • Date: Thu, 24 Jan 2002 13:04:53 +0100

Hi all,

We- I mean we as a collective effort, not as a replacement for the french 'on' :) - we have probably found a small bug with non-stay open apps and the implicit run command in 1.6.

The code:

-- code for the server

on test()
tell me
activate
display dialog "test()"
end tell

end test

tell me
activate
beep
beep
display dialog "run"
end tell

-- code for the client
-- to be run into Smile or any editor not breaking path to me as SE

set vPath to "" & (path to me)
set vFolderPath to vPath's text 1 thru opt-l
-(offset of ":" in ("" & (vPath's items's reverse)))
set vApp to vFolderPath & "AS server"

with timeout of 5 seconds

tell application vApp
-- display dialog "test"
test()

end tell

end timeout

(watch out for opt-l being the continuation char)

--

Try to comment/uncomment the display dialog line and run the script repeatedly.

Under 8.6/1.37, both tests produce the same result, ie the server beeps twice, displays "run" in the background, and subsequent commands sent to it fail; this is because, as mentioned in the ASLG, by using 'tell application vApp' w/o further precautions a run command is sent first to the server, which executes it and then quits, then the client doesn't have the server anymore to display "test" or execute test(). This is the correct behaviour for this weird syntax.

So the workflow is:

- implicit run sent to the server
-> server beeps twice, displays "run"

- next command fails

Under 9.1/1.6, tests show that 'display dialog' is executed _before_ the implicit run handler:

- display dialog "test" command sent to the server
-> server displays "test"

- implicit run sent to the server
-> server beeps twice, displays "run"

- next command fails

This is a bug IMHO. As anybody else seen this/can anyone confirm please?

Thanks,

Serge
--
\\//\//\// Serge Belleudy-d'Espinose Institut Jacques Monod - Jussieu
// // // http://www.ijm.jussieu.fr/ Universites Paris VI, VII - CNRS
//\//\//\\


  • Prev by Date: [OS X] accessing time of system input inactivity
  • Next by Date: RE: Applet by Function Key needs previous frontmost
  • Previous by thread: [OS X] accessing time of system input inactivity
  • Next by thread: OS 9 vrs OS X
  • Index(es):
    • Date
    • Thread