List Info

Thread: Re: catching quit from Wish menu




Re: catching quit from Wish menu
user name
2007-02-27 14:42:16
Kevin Walzer wrote:
> Jeff Hobbs wrote:
> > ::tk::mac::PrintDocument
> 
> What does this command do? I'm not familiar with it.
> 
> D'oh, I realize it probably prints a document--what I'm
curious about is 
> how it works, what mechanism it calls, etc. The only
way I know of to 
> print a document from Tk Aqua is to use
maccarbonprint.

It is invoked when the kAEPrintDocuments Apple event is
received.  Your guess
is as good as mine on how that might get invoked ... docs
seems sparse on that
one.

Jeff


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-mac mailing list
tcl-maclists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: catching quit from Wish menu
country flaguser name
United States
2007-02-27 14:46:45
On Feb 27, 2007, at 3:42 PM, Jeff Hobbs wrote:

> It is invoked when the kAEPrintDocuments Apple event is
received.   
> Your guess
> is as good as mine on how that might get invoked ...
docs seems  
> sparse on that
> one.

tell application "wish"
   print
end tell



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-mac mailing list
tcl-maclists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: catching quit from Wish menu
user name
2007-02-27 15:28:51
Jon Guyer wrote:
> On Feb 27, 2007, at 3:42 PM, Jeff Hobbs wrote:
> 
>> It is invoked when the kAEPrintDocuments Apple
event is received.   
>> Your guess
>> is as good as mine on how that might get invoked
... docs seems  
>> sparse on that
>> one.
> 
> tell application "wish"
>    print
> end tell


Running this command in Script Editor causes Wish to fire
up, but 
nothing happens/prints.

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-mac mailing list
tcl-maclists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: catching quit from Wish menu
country flaguser name
United States
2007-02-27 15:34:46
If you had a Wish application that did:

proc tk::mac::PrintDocument  {
    puts $args
}

then your "tell" applescript would print the
documents you told it to  
print to the console.  OTOH, if you had a PrintDocument
command that  
actually PRINTED something, then it would print...  These
are just  
hooks into the associated events, they don't by themselves
do anything.

Jim

On Feb 27, 2007, at 1:28 PM, Kevin Walzer wrote:

> Jon Guyer wrote:
>> On Feb 27, 2007, at 3:42 PM, Jeff Hobbs wrote:
>>
>>
>>> It is invoked when the kAEPrintDocuments Apple
event is received.
>>
>>> Your guess
>>
>>> is as good as mine on how that might get
invoked ... docs seems
>>
>>> sparse on that
>>
>>> one.
>>
>> tell application "wish"
>>   print
>> end tell
>
>
> Running this command in Script Editor causes Wish to
fire up, but
> nothing happens/prints.
>
> -- 
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com

>
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
chance to  
> share your
> opinions on IT & business topics through brief
surveys-and earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Tcl-mac mailing list
> tcl-maclists.sourceforge.net
> 
https://lists.sourceforge.net/lists/listinfo/tcl-mac


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-mac mailing list
tcl-maclists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/tcl-mac

changing icon for tkaqua BI
country flaguser name
United States
2007-02-28 14:48:15
I downloaded tcltkaqua BI 8.4.5, renamed it both in Finder
and in the
Wish.app/Contents/Info.plist. Then in that same file, I
changed the
icon to my own, but Finder still looks for it as Wish.icns
(even after
relaunching Finder). It only works if I rename my icon file
to Wish.icns.
Why? Thanks for any explanation.

RK

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-mac mailing list
tcl-maclists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: changing icon for tkaqua BI
country flaguser name
United States
2007-02-28 14:38:40
On Feb 28, 2007, at 3:48 PM, Robert Karen wrote:

> I downloaded tcltkaqua BI 8.4.5, renamed it both in
Finder and in the
> Wish.app/Contents/Info.plist. Then in that same file, I
changed the
> icon to my own, but Finder still looks for it as
Wish.icns (even after
> relaunching Finder). It only works if I rename my icon
file to  
> Wish.icns.
> Why? Thanks for any explanation.

Did you change CFBundleIconFile in the Info.plist?


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tcl-mac mailing list
tcl-maclists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/tcl-mac

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )