by viraptor · 14y ago · 0 comments
But here? Really?
for f in $* ; do
(echo ${f/.txt//} ; cat $f) | pbcopy
osascript < the_copy_script
done
And let's move to doing some useful things instead. I'm not even sure why he picked on python in this case, since it's the notes application that has issues with interoperability (is it really the easiest way to interact with it? by simulating clicks?)"Today I want to talk about a script that appeared in a post on Mac OS X Hints a couple of days ago. What the script does isn’t of great interest to me, but the technique the programmer used to combine Python and AppleScript is."
I just get the feeling this was only considered "clumsy" because there is not enough other code to complain about anything else.