• 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
Re: Clear all breakpoints
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clear all breakpoints


  • Subject: Re: Clear all breakpoints
  • From: Steve Checkoway <email@hidden>
  • Date: Thu, 18 Oct 2007 16:04:08 -0700


On Oct 18, 2007, at 11:43 AM, Jim Wrenholt wrote:

I tried this and it's not working for me. I have never created a user script before so I'm probably missing something obvious?

Yep. The first line "#! /bin/sh" is telling the OS that you want to run /bin/sh and give it the script file. Then when you have "#!/usr/ bin/osascript" it's just a comment so it gets ignored. Since the script I wrote was apple script and not bourne shell script, it chokes. You want "#!/usr/bin/osascript" as the first line so that the OS runs that.


I don't know if # are counted as comments by applescript or not so I can't predict what leaving the rest of those comments in will do.

#! /bin/sh
#
# 15-clearbreakpoints.sh - clear all breakpoints.
#
# -- PB User Script Info --
# %%%{PBXName=Clear All Breakpoints}%%%
# %%%{PBXInput=None}%%%
# %%%{PBXOutput=Discard}%%%
# %%%{PBXKeyEquivalent=@~$B}%%%

#!/usr/bin/osascript
tell application "Xcode" to delete breakpoints of front project

-- Steve Checkoway



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Clear all breakpoints
      • From: Markus Hitter <email@hidden>
References: 
 >Clear all breakpoints (From: "R.L. Grigg" <email@hidden>)
 >Re: Clear all breakpoints (From: Chris Espinosa <email@hidden>)
 >Re: Clear all breakpoints (From: Laurence Harris <email@hidden>)
 >Re: Clear all breakpoints (From: Steve Checkoway <email@hidden>)
 >Re: Clear all breakpoints (From: Steve Checkoway <email@hidden>)
 >Re: Clear all breakpoints (From: Jim Wrenholt <email@hidden>)

  • Prev by Date: Re: Clear all breakpoints
  • Next by Date: Re: Clear all breakpoints
  • Previous by thread: Re: Clear all breakpoints
  • Next by thread: Re: Clear all breakpoints
  • Index(es):
    • Date
    • Thread