• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bizzare osascript/CodeWarrior behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Bizzare osascript/CodeWarrior behavior
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Introduction and procmail test
  • Next by Date: Re: Finder Error when duplicating files and folders???
  • Previous by thread: Re: extracting attachments from Apple Mail as file
  • Next by thread: Re: Bizzare osascript/CodeWarrior behavior
  • Index(es):
    • Date
    • Thread