|
|
'Blogs
Read
Syndicate
Resumes
Academia
|
February 18, 2003An Answer to my Applescript ConundrumA while ago I wanted to set up a stupid xterm-like app to stick in the dock of Jaguar. I didn't know why the applescript always hung. An old-skool New Jersey high school comrade showed me The Way (weird, I didn't think any old-skool New Jersey kids knew anything about unix). Apparently an Applescript script won't terminate if something is hinging on it for stdout and/or stderror. So when you run any apps that you just want to background, you have redirect stdout and stderror somewhere else (/dev/null being one obvious place, though if you're feeling adventurous and have sufficient priveleges, you could overwrite your hard disk with the data...which makes me think that I should write a device driver called /dev/free The almighty method? do shell script "/usr/X11R6/bin/xterm -display :0.0 >/dev/null 2>&1 &" (for those un-unix types that don't know how to redirect stderror). Yeah, I think I'm going to go download one of those snazzy movable type font packages now. Posted by reid at February 18, 2003 12:51 AM | TrackBackComments
Post a comment
|
USA
Berlin
Prague
Dresden
Archives
February 2004
January 2004 December 2003 November 2003 October 2003 September 2003 August 2003 July 2003 June 2003 May 2003 April 2003 March 2003 February 2003 January 2003 December 2002 November 2002 October 2002 September 2002 August 2002 July 2002 June 2002 May 2002
Search
About
|