QA:AppleEvent Logging

From Camino Wiki
Revision as of 15:14, 9 September 2008 by Sardisson (talk | contribs) (add the additional debugging vars I found)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
DRAFT
This page is not complete.

If the NSScriptingDebugLogLevel logging below isn't logging what you want, you can also enable additional AppleEvent logging with the following environment variables: export AEDebugSends=1; export AEDebugReceives=1

[7:36pm] peeja: ok, first step is to turn on NSScriptingDebugLogLevel
[7:38pm] ardissone: for your fun Terminal.app 
[7:39pm] peeja: davedit: defaults write org.mozilla.camino NSScriptingDebugLogLevel
[7:39pm] peeja: er add " 1" to that
[7:39pm] davedit: defaults write org.mozilla.camino NSScriptingDebugLogLevel 1
[7:39pm] davedit: in terminal
[7:39pm] peeja: ardissone: actually, i think that works too, but this sticks better
[7:40pm] peeja: now you'll need to start Camino again to pick up the new default
[7:40pm] peeja: er wait
[7:40pm] peeja: easier to export CAMINO_PROFILE=<some directory>
[7:40pm] peeja: (is that right?)
[7:40pm] ardissone: _DIR
[7:41pm] peeja: and then we can run from terminal
[7:41pm] ardissone: export CAMINO_PROFILE_DIR=~/Desktop/TestProfile
[7:41pm] peeja: we want to see the output from the app
[7:41pm] davedit: i type that into terminal?
[7:42pm] peeja: and then drag camino to the terminal window...
[7:42pm] peeja: ...backspace the space and tab to get Contents...
[7:42pm] peeja: and then tack on /MacOS/Camino
[7:42pm] peeja: and run that
[7:43pm] peeja: sorry, '/' after the backspace, probably
[7:43pm] davedit: alright running
[7:43pm] peeja: good
[7:43pm] peeja: this is hard to do over irc 
[7:43pm] davedit: hah
[7:44pm] peeja: now you'll see debugging output every time camino gets an appleevent
[7:45pm] peeja: so if you run any applescript the tells camino to do something, you'll see it logged
[7:45pm] davedit: so do a preview in browser in dreamweaver and see what it says?
[7:45pm] peeja: yup
[7:45pm] davedit: one sec
[7:45pm] peeja: oh, you might need to close any other caminos
[7:45pm] peeja: so you're sure the right one gets the messge
[7:46pm] davedit: 2008-04-09 16:45:37.111 Camino[4486:10b] Suite NSCoreSuite, apple event code 0x3f3f3f3f
[7:46pm] davedit: 2008-04-09 16:45:37.116 Camino[4486:10b] Suite NSTextSuite, apple event code 0x3f3f3f3f
[7:46pm] davedit: 2008-04-09 16:45:37.149 Camino[4486:10b] Suite CaminoSuite, apple event code 0x4d4f5a43
[7:46pm] davedit: 2008-04-09 16:45:37.151 Camino[4486:10b] Suite InternetSuite, apple event code 0x4755524c
[7:46pm] davedit: 2008-04-09 16:45:37.153 Camino[4486:10b] Suite NSCoreSuite, apple event code 0x636f7265
[7:46pm] davedit: 2008-04-09 16:45:37.156 Camino[4486:10b] .scriptSuite warning for attribute 'boundsAsQDRect' of class 'NSWindow' in suite 'NSCoreSuite': 'NSData<QDRect>' is not a valid type name.
[7:46pm] davedit: 2008-04-09 16:45:37.156 Camino[4486:10b] .scriptSuite warning for attribute 'document' of class 'NSWindow' in suite 'NSCoreSuite': 'NSDocument' is not a valid type name.
[7:46pm] davedit: 2008-04-09 16:45:37.157 Camino[4486:10b] .scriptSuite warning for argument 'SaveOptions' of command 'Close' in suite 'NSCoreSuite': 'NSNumber<SaveOptions>' is not a valid type name.
[7:46pm] davedit: 2008-04-09 16:45:37.158 Camino[4486:10b] .scriptSuite warning for result type of command 'Open' in suite 'NSCoreSuite': 'NSDocument' is not a valid type name.
[7:46pm] davedit: 2008-04-09 16:45:37.158 Camino[4486:10b] .scriptSuite warning for argument 'SaveOptions' of command 'Quit' in suite 'NSCoreSuite': 'NSNumber<SaveOptions>' is not a valid type name.
[7:46pm] davedit: 2008-04-09 16:45:37.159 Camino[4486:10b] .scriptSuite warning for attribute 'boundsAsQDRect' of class 'NSWindow' in suite 'NSCoreSuite': 'NSData<QDRect>' is not a valid type name.
[7:46pm] peeja: those are ok
[7:46pm] sauron: yay stupid branch warnings 
[7:46pm] davedit: that's everything that showed up in terminal
[7:46pm] peeja: huh
[7:47pm] peeja: and they showed up when you tried to preview?
[7:47pm] davedit: yeah
[7:47pm] peeja: that means it's getting something
[7:47pm] peeja: but it's not logging what it gets...
[7:47pm] peeja: try running a script that tells camino to do something
[7:48pm] peeja: like "tell app "Camino" to get browser windows"
[7:48pm] davedit: i used a clone tab script
[7:48pm] peeja: that'll do
[7:48pm] davedit: paste what it says?
[7:48pm] peeja: sure
[7:48pm] davedit: ### MRJPlugin:  getPluginBundle() here. ###
[7:48pm] davedit: ### MRJPlugin:  CFBundleGetBundleWithIdentifier() succeeded. ###
[7:48pm] davedit: ### MRJPlugin:  CFURLGetFSRef() succeeded. ###
[7:48pm] davedit: 2008-04-09 16:48:14.147 Camino[4486:10b] Command: NSCoreSuite.Get
[7:48pm] davedit: Direct Parameter: <NSPropertySpecifier: currentURI of currentTab of allBrowserWindows 1>
[7:48pm] davedit: Receivers: <NSPropertySpecifier: currentURI of currentTab of allBrowserWindows 1>
[7:48pm] davedit: Arguments:    {
[7:48pm] davedit:     }
[7:48pm] davedit: 2008-04-09 16:48:14.149 Camino[4486:10b] Gotten Value: http://www.amazon.com/
[7:48pm] davedit: 2008-04-09 16:48:14.171 Camino[4486:10b] Result: <NSAppleEventDescriptor: 'utxt'("http://www.amazon.com/")>
[7:48pm] davedit: 2008-04-09 16:48:14.227 Camino[4486:10b] Command: InternetSuite.GetURLCommand
[7:48pm] davedit: Direct Parameter: about:blank
[7:48pm] davedit: Receivers: (null)
[7:49pm] davedit: Arguments:    {
[7:49pm] davedit:         "" = "about:blank";
[7:49pm] davedit:     }
[7:49pm] davedit: 2008-04-09 16:48:14.407 Camino[4486:10b] Result: (null)
[7:49pm] davedit: 2008-04-09 16:48:14.413 Camino[4486:10b] Command: NSCoreSuite.Set
[7:49pm] davedit: Direct Parameter: <NSPropertySpecifier: currentURI>
[7:49pm] davedit: Receivers: <NSPropertySpecifier: currentTab of allBrowserWindows 1>
[7:49pm] davedit: Arguments:    {
[7:49pm] davedit:         Value = "http://www.amazon.com/";
[7:49pm] davedit:     }
[7:49pm] davedit: Key Specifier: <NSPropertySpecifier: currentURI>
[7:49pm] davedit: 2008-04-09 16:48:14.426 Camino[4486:10b] Result: (null)
[7:50pm] sauron: do we want to see what 1.5.5 outputs from DW?
[7:51pm] peeja: sure
[7:51pm] davedit: when i try to do preview in browser again, nothing shows up in Terminal anymore
[7:51pm] davedit: should that be happening?
[7:52pm] davedit: for 1.6rc1
[7:52pm] peeja: well, you shouldn't see the things you saw before
[7:52pm] peeja: but you should see things you should have seen then
[7:52pm] peeja: but didn't
[7:52pm] davedit: hm
[7:52pm] davedit: so to test 1.5.5 should i drag it to the terminal and repeat?
[7:54pm] peeja: yes
[7:56pm] davedit: hm
[7:56pm] davedit: i redid the steps with 1.5.5 but dreamweaver is telling me there's another version of the browser running
[7:56pm] • davedit mumbles
[7:56pm] davedit: gonna try somethin
[7:57pm] davedit: okay that didn't work
[7:57pm] davedit: is there something i have to quit in activity monitor
[7:58pm] • sauron bbl
[7:58pm] davedit: okay i got it to work
[7:59pm] davedit: 1.5.5 says:
[7:59pm] davedit: 2008-04-09 16:58:34.534 Camino[4682:10b] Suite NSCoreSuite, apple event code 0x3f3f3f3f
[7:59pm] davedit: 2008-04-09 16:58:34.539 Camino[4682:10b] Suite NSTextSuite, apple event code 0x3f3f3f3f
[7:59pm] davedit: 2008-04-09 16:58:34.616 Camino[4682:10b] Suite Camino, apple event code 0x4d4f5a43
[7:59pm] davedit: 2008-04-09 16:58:34.628 Camino[4682:10b] Command: Camino.OpenURL
[7:59pm] davedit: Direct Parameter: file:///Mac Mini/Various/School/CSIS 133 Web Development Tools/Student Homepage/webdevtools/survey.html
[7:59pm] davedit: Receivers: (null)
[7:59pm] davedit: Arguments:    {
[7:59pm] davedit:     }
[7:59pm] davedit: 2008-04-09 16:58:34.781 Camino[4682:10b] Result: (null)
[8:03pm] peeja: yeah, that's what you want to see in the other one
[8:03pm] peeja: and the fact that you don't is bizarre
[8:03pm] • davedit nods
[8:04pm] peeja: there's no reason you shouldn't see that
[8:04pm] peeja: it's way before we touch the event
[8:04pm] davedit: i'll give 1.6rc1 a whirl one more time just in case
[8:07pm] davedit: yeah exactly the same
[8:08pm] damons left the chat room. (Quit: damons)
[8:10pm] Simon left the chat room. (Quit: Goodbye)
[8:11pm] peeja: damn
[8:11pm] peeja: I really don't know what would do that
[8:11pm] peeja: try this
[8:11pm] peeja: :
[8:12pm] peeja: 'tell app "Camino" to open location "file:///Mac Mini/Various/School/CSIS 133 Web Development Tools/Student Homepage/webdevtools/survey.html"'
[8:12pm] peeja: with the RC
[8:12pm] davedit: rc?
[8:12pm] ss: 1.6rc1!
[8:13pm] davedit: oh
[8:15pm] davedit: do i have to make an applescript to do that
[8:17pm] davedit: 2008-04-09 17:16:59.674 Camino[4927:10b] Command: InternetSuite.GetURLCommand
[8:17pm] davedit: Direct Parameter: file:///Mac Mini/Various/School/CSIS 133 Web Development Tools/Student Homepage/webdevtools/survey.html
[8:17pm] davedit: Receivers: (null)
[8:17pm] davedit: Arguments:    {
[8:17pm] davedit:         "" = "file:///Mac Mini/Various/School/CSIS 133 Web Development Tools/Student Homepage/webdevtools/survey.html";
[8:17pm] davedit:     }
[8:17pm] davedit: 2008-04-09 17:16:59.852 Camino[4927:10b] Result: (null)
[8:17pm] davedit: opened it fine
[8:18pm] curioso joined the chat room.
[8:19pm] curioso left the chat room. (Smartsoft PocketCHAT for PocketPCs - Http://www.sspocketchat.com)
[8:21pm] peeja: then I have no freaking clue what's wrong with dreamweaver
[8:22pm] davedit:                          
[8:22pm] peeja: sorry 
[8:22pm] davedit: this is a bad feature to not have working 
[8:23pm] davedit: well if you think of anything and need me to test something, send me an email or post in the bug thread with instructions and i'll do my best