Bizzare osascript/CodeWarrior behavior
Bizzare osascript/CodeWarrior behavior
- Subject: Bizzare osascript/CodeWarrior behavior
- From: Wade Williams <email@hidden>
- Date: Fri, 25 Jun 2004 11:10:29 -0500
All:
I'm trying to implement the following script through osascript:
[dreamline:tk/app/macintosh] wade% osascript
set x to false
tell application "Finder" to set x to the name of every process
contains "CodeWarrior IDE"
if x is equal to true then
tell application "CodeWarrior IDE" to quit
end if
^D
What's bizarre is that as soon as I hit Control-D to terminate input,
CodeWarrior launches and then quits (which is exactly the behavior I'm
trying to avoid).
If I try another application like TextEdit, it works fine. If I try
the same script from ScriptDebugger, it works fine (although one time
it did do the behavior of launching and quitting when it compiled the
script)
So, it seems like it's some sort of bug in CW's AppleScript handling.
I'm just curious to see if anyone has any thoughts on what might be
going on?
BTW, I also tried:
tell application "Finder" to set x to the name of every process
contains "CodeWarrior IDE"
if x contains "CodeWarrior IDE" then
tell application "CodeWarrior IDE" to quit
end if
Thanks,
Wade
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.