From: Daniel A. S. <st...@ic...> - 2001-02-28 00:20:09
|
[[ This message was both posted and mailed: see the "To," "Cc," and "Newsgroups" headers for details. ]] Dan, you'll have recover the scripts from the droplets and use the current 'D&D Tclets' app to create new ones to get them to work with a different major Tcl/Tk release (and potentially minor release) than what you originally used to create them. This is a limitation of the way the droplets are implemented (i.e. by embedding the scripts in a copy of Wish which is linked against the tcl and tk shared libs) the scripts are stored in a 'TEXT' resource named "tclshrc" in the droplet, use ResEdit, Resorcerer or similar to extract them, or write a tcl script to do so... (using the resource command) if you only want to update the droplets, you can either paste the TEXT resource in a copy of the current Wish or copy&replace all resources from the current Wish into your old droplet (more risky, be sure no resources from the old wish stay around after the operation) FYI, this is the tcl code 'D&D Tclets' uses to write the resource (it is itself a droplet BTW) file copy $stub $target set id [open $tclFile r] set rid [resource open $target w] resource write -name tclshrc -file $rid TEXT [read $id] resource close $rid close $id Cheers, Daniel In article <97gi21$ki...@ga...>, Daniel S. Katz <ds...@lu...> wrote: > I created a number of applications using the Drag-n-Drop with Wish 8.0.3. > Now, I have moved to a new Mac, and downloaded the currect Tcl package > 8.3.2. When I double-click on one of my apps, it tells me it can't run > because it can't find wish8.0. What can I do to make these apps use > wish8.3.2 instead? Unfortunately, some of the apps are relatively old, and > I do not have the text scripts that were used to create them anymore. Can I > get these back from the applications? Or, can I somehow change the > application to use the current Wish? > > Thanks, > Dan > > p.s. Please copy me (d....@ie...) on any replies. |