Re: get contents from clipboard

2003-12-11 Thread Robin
late in on this one but you can treat the clipboard as a filehandle if you pipe to pbpaste and pbcopy : open (FROM_CLIPBOARD, pbpaste|); open (TO_CLIPBOARD, |pbcopy); you can then do as you normally would for moving data to and from fle handles. See the typically

Re: AE Monitor

2003-12-11 Thread Peter N Lewis
At 10:50 PM -0800 10/12/03, Chris Nandor wrote: Anyone used this? http://www.apple.com/downloads/macosx/development_tools/aemonitor.html Downloading now, will be trying out laterish. It looks pretty cool, please tell us all what you think. Personally, I just recently used the AEDebug stuff in

Re: AE Monitor

2003-12-11 Thread Chris Nandor
At 16:09 +0800 2003.12.11, Peter N Lewis wrote: Personally, I just recently used the AEDebug stuff in the Terminal: setenv AEDebug 1 setenv AEDebugSends 1 setenv AEDebugReceives 1 /Applications/AppleScript/Script\ Editor.app/Contents/MacOS/Script\ Editor and then you can see all the events going

Re: AE Monitor

2003-12-11 Thread Chris Nandor
At 16:09 +0800 2003.12.11, Peter N Lewis wrote: The thing that scares me is having every Apple event run with those env vars on ... I wonder if it would hurt performance of the entire system. That's the way this works, it puts those vars (and others) in your .MacOSX/environment.plist and then

Re: searching complex datastructures

2003-12-11 Thread wren argetlahm
--- Charlie Garrison [EMAIL PROTECTED] wrote: I'm no expert ( I'd love to hear from one). But when I need to do something similar I use a second data structure for doing the 'reverse lookup'. I thought about that, but was put off by the fact that it's a complex structure-- of course I'm only

Re: searching complex datastructures

2003-12-11 Thread Charlie Garrison
Good afternoon, On 11/12/03 at 4:55 PM -0800, wren argetlahm [EMAIL PROTECTED] wrote: --- Charlie Garrison [EMAIL PROTECTED] wrote: I'm no expert ( I'd love to hear from one). But when I need to do something similar I use a second data structure for doing the 'reverse lookup'. I thought

Re: searching complex datastructures

2003-12-11 Thread Joel Rees
Can anyone offer an elegant solution for a data structure that maintains sorted order as well as access to data for a (primary) key? Is everyone thinking too hard or am I not thinking hard enough? If you have a database and you need to search it on an alternate key, you either linear search on