Re: scripting a doc based app problem
Re: scripting a doc based app problem
- Subject: Re: scripting a doc based app problem
- From: Christian Mittendorf <email@hidden>
- Date: Thu, 8 Jan 2004 17:44:04 +0100
Thanks for that advice! I already read that document, but I didn't test
my problem.
I ran the "make new document at the beginning of documents" against my
application
and against Textedit. The first block is the output from my
application. The second
block is from TextEdit. But I cannot see any difference. However,
TextEdit is opening
a new window as it should, but my application does not open any new
window.
Christian
2004-01-08 17:33:57.303 MySQL Shell[4043] Suite NSCoreSuite, apple
event code 0x3f3f3f3f
2004-01-08 17:33:57.306 MySQL Shell[4043] Suite NSTextSuite, apple
event code 0x3f3f3f3f
2004-01-08 17:33:57.319 MySQL Shell[4043] Suite MySQL Shell, apple
event code 0x53634441
2004-01-08 17:33:57.321 MySQL Shell[4043] Command: NSCoreSuite.Create
Direct Parameter: (null)
Receivers: (null)
Arguments: {
Location = <NSPositionalSpecifier: at the beginning of
<NSPropertySpecifier: orderedDocuments>>;
ObjectClass = 1685021557;
}
2004-01-08 17:33:57.322 MySQL Shell[4043] Result: <NSNameSpecifier:
orderedDocuments named "Untitled">
2004-01-08 17:35:40.999 TextEdit[4044] Suite NSCoreSuite, apple event
code 0x3f3f3f3f
2004-01-08 17:35:41.002 TextEdit[4044] Suite NSTextSuite, apple event
code 0x3f3f3f3f
2004-01-08 17:35:41.024 TextEdit[4044] Suite TextEdit, apple event code
0x74786474
2004-01-08 17:35:43.764 TextEdit[4044] Command: NSCoreSuite.Create
Direct Parameter: (null)
Receivers: (null)
Arguments: {
Location = <NSPositionalSpecifier: at the beginning of
<NSPropertySpecifier: orderedDocuments>>;
ObjectClass = 1685021557;
}
2004-01-08 17:35:43.873 TextEdit[4044] Result: <NSIndexSpecifier:
orderedDocuments 1>
On 08.01.2004, at 17:10, Jonathan Wight wrote:
No idea about your specific problem but make sure you have debugging
for Cocoa AppleScripting turned on:
http://developer.apple.com/documentation/Cocoa/Conceptual/
Scriptability/Tasks/ScriptabilityGuidelines.html#//apple_ref/doc/uid/
20000037
Jon.
On Jan 08, 2004, at 04:49, Christian Mittendorf wrote:
Hi,
I've got a small problem implementing an applescpript interface to my
application.
My target system is Xcode and Panther.
The script suite and the terminology are done and almost everything
works fine,
Commands and properties are implemented and working. Except one thing:
tell application "My App"
activate
make new document at the beginning of documents
end tell
This script does return that the app has created a new document.
However,
it does not open a new window. Any idea anybody? Is there something
that
I might need to implement?
Christian
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type
application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.