At 3:13 PM -0700 5/12/2002, Randal L. Schwartz wrote: >Charles> system q(/usr/bin/osascript -e 'tell application "Finder" to open >application file id "CWIE"'); > >Maybe I don't quite understand AppleScript entirely yet, >but isn't that the same as: > > system "osascript", "-e", 'tell application file id "CWIE" to open';
I don't think so. I'm not that familiar with AppleScript myself. open may require an object "tell foo to open bar" - with Code Warrior, a project or source fild of some sort might be implied as the object. The same sort of thing that might be opened using the Open item from the application's file menu. 'activate' would do the trick. However, the other bit is that 'application file' is something for the Finder to refer to the application. In a tell, I'm not sure what syntax you would use to refer to an app solely by its creator code. I thought 'id "****"' by itself as in ... system "osascript", "-e", 'tell application id "CWIE" to activate'; .... would do the trick, but it doesn't - at least not for me - so we're back to: system "osascript", "-e", 'tell application "Finder" to open application file id "CWIE"'; With the Finder doing the heavy lifting. -Charles [EMAIL PROTECTED]