i did not post the error that i got earlier because i thought you
would be able to reproduce it and also the error did no seem to make
sense.
this is the error when i run the script from Applescript or when i run
mdfind r | qs directly from terminal
2008-10-30 09:09:46.059 qs[618:10b] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '[NOTE: this
exception originated in the server.]
*** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value
(key: NSStringPboardType)'
2008-10-30 09:09:46.081 qs[618:10b] Stack: (
2418475627,
2528878747,
2418474385,
2457741414,
2457739273,
2418498250,
2418498354,
11601,
10958,
10741
)
sh: line 1: 617 Done mdfind r
618 Trace/BPT trap | qs